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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
179f0d5c914890ae0c841f1ae2b4d1953b12537a
| 4,589
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1910.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_1910.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_1910.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:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_A+0x1ad68, %rdi
nop
nop
nop
nop
nop
xor $33399, %rbp
mov $0x5152535455565758, %rax
movq %rax, %xmm6
movups %xmm6, (%rdi)
// Exception!!!
nop
nop
nop
mov (0), %rbp
nop
nop
nop
nop
cmp $55896, %r8
// Store
lea addresses_US+0x1b188, %rsi
nop
nop
nop
xor %rbp, %rbp
mov $0x5152535455565758, %rdi
movq %rdi, (%rsi)
nop
nop
nop
nop
inc %rsi
// Store
lea addresses_A+0xe988, %rbp
clflush (%rbp)
nop
nop
nop
nop
nop
and $15801, %r12
movl $0x51525354, (%rbp)
nop
nop
nop
nop
nop
sub %r12, %r12
// Faulty Load
lea addresses_RW+0x14388, %r12
nop
nop
nop
nop
xor %rcx, %rcx
movb (%r12), %r8b
lea oracles, %r12
and $0xff, %r8
shlq $12, %r8
mov (%r12,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'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
*/
| 44.553398
| 2,999
| 0.658749
|
4d93adceac3ebd2bec2a488f2b54bf237c52479b
| 10,649
|
asm
|
Assembly
|
assembler/tests/t_mic51/makro1.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
assembler/tests/t_mic51/makro1.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
assembler/tests/t_mic51/makro1.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
; Aufgabe Nr.: Speichermodul fuer uP- Praktikum II
; Autor: Joerg Vollandt
; erstellt am : 21.05.1994
; letzte Aenderung am : 01.08.1994
; Bemerkung : Makros
;
; Dateiname : makro1.asm
;
;---------------------------------------------------------------------
; Funktion : Direkter Bitmove- Befehl
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register : PSW
; Stackbedarf :
; Zeitbedarf :
;
MOVB MACRO ZIEL,QUELLE
MOV C,QUELLE
MOV ZIEL,C
ENDM
;---------------------------------------------------------------------
; Funktion : String auf LCD ausgaben.
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
LCD MACRO POS,STRG
PUSH ACC
PUSH DPH
PUSH DPL
MOV A,#POS
LCALL LCD_SET_DD_RAM_ADDRESS
MOV DPTR,#STR_ADR
LCALL LCD_WRITE_STRING
LJMP WEITER
STR_ADR DB STRG,0
WEITER: POP DPL
POP DPH
POP ACC
ENDM
;---------------------------------------------------------------------
; Funktion : A, B, PSW, DPTR, R0 - R7 auf Stack retten
; Aufrufparameter : PUSH_ALL
; Ruechgabeparameter : -
; Veraenderte Register : -
; Stackbedarf : 2
; Zeitbedarf :
;
PUSH_ALL MACRO
PUSH ACC
PUSH B
PUSH PSW
PUSH_DPTR
PUSH AR0
PUSH AR1
PUSH AR2
PUSH AR3
PUSH AR4
PUSH AR5
PUSH AR6
PUSH AR7
ENDM
;---------------------------------------------------------------------
; Funktion : A, B, PSW, DPTR, R0 - R7 von Stack holen
; Aufrufparameter : POP_ALL
; Ruechgabeparameter : -
; Veraenderte Register : -
; Stackbedarf : 2
; Zeitbedarf :
;
POP_ALL MACRO
POP AR7
POP AR6
POP AR5
POP AR4
POP AR3
POP AR2
POP AR1
POP AR0
POP_DPTR
POP PSW
POP B
POP ACC
ENDM
;---------------------------------------------------------------------
; Funktion : DPTR pushen und popen.
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
PUSH_DPTR MACRO
PUSH DPL
PUSH DPH
ENDM
POP_DPTR MACRO
POP DPH
POP DPL
ENDM
;---------------------------------------------------------------------
; Funktion : DPTR decreminieren.
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
ifdef joerg
DEC_DPTR MACRO
INC DPL
DJNZ DPL,DEC_DPTR1
DEC DPH
DEC_DPTR1:
DEC DPL
ENDM
endif
;---------------------------------------------------------------------
; Funktion : Addieren und subtraieren mit DPTR.
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
ADD_DPTR MACRO WERT
PUSH PSW
PUSH ACC
MOV A,#(WERT#256)
ADD A,DPL
MOV DPL,A
MOV A,#(WERT/256)
ADDC A,DPH
MOV DPH,A
POP ACC
POP PSW
ENDM
SUBB_DPTR MACRO WERT
PUSH PSW
PUSH ACC
MOV A,DPL
CLR C
SUBB A,#(WERT#256)
MOV DPL,A
MOV A,DPH
SUBB A,#(WERT/256)
MOV DPH,A
POP ACC
POP PSW
ENDM
;---------------------------------------------------------------------
; Funktion : Rechnen mit 16- Bit- Werten im ext. RAM (L,H).
; Aufrufparameter : DPTR = Wert
; Ruechgabeparameter : DPTR = Wert
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
SET_16 MACRO NAME
PUSH ACC
PUSH_DPTR
PUSH DPH
PUSH DPL
MOV DPTR,#NAME
POP ACC
MOVX @DPTR,A
INC DPTR
POP ACC
MOVX @DPTR,A
POP_DPTR
POP ACC
ENDM
GET_16 MACRO NAME
PUSH ACC
MOV DPTR,#NAME
MOVX A,@DPTR
PUSH ACC
INC DPTR
MOVX A,@DPTR
MOV DPH,A
POP DPL
POP ACC
ENDM
;---------------------------------------------------------------------
; Funktion : Scheduler.
; Aufrufparameter : ACC = Zeichen
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
IFCALL MACRO CONST,ROUTINE
CJNE A,#CONST,IFCALL1
LCALL ROUTINE
IFCALL1:
ENDM
IFMAKE MACRO CONST,CODE
CJNE A,#CONST,IFMAKE1
CODE
IFMAKE1:
ENDM
;---------------------------------------------------------------------
; Funktion : Warten bis Netzwerk freiund Message senden.
; Aufrufparameter : ACC = Zeichen
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
SEND_NET MACRO
push acc
SEND_NET1: LCALL READ_STATUS
JB ACC.1,SEND_NET1
pop acc
LCALL SEND_MESSAGE
ENDM
;---------------------------------------------------------------------
; Funktion : Message senden.
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register : -
; Stackbedarf :
; Zeitbedarf :
;
post_Message1 macro Modul,Msg
; if MY_SLAVE_ADR = uC_Modul
; call ADR_Msg ; interne Message
; elseif
PUSH ACC
WAIT_NET: LCALL READ_STATUS
JB ACC.1,WAIT_NET
PUSH DPL
PUSH DPH
MOV DPTR,#ModulNetAdr_Tab
MOV A,#Modul
MOVC A,@A+DPTR
POP DPH
POP DPL
MOV R0,#Modul
MOV R1,#Msg
LCALL SEND_MESSAGE ; Message ins Netz
POP ACC
; endif
endm
;---------------------------------------------------------------------
; Funktion : Message senden, alle Parameter im Mkroaufruf, B automatisch.
; Aufrufparameter : -
; Ruechgabeparameter : -
; Veraenderte Register : R0- R7
; Stackbedarf :
; Zeitbedarf :
;
post_Message2 macro Modul,Msg,PARA1,PARA2,PARA3,PARA4,PARA5,PARA6
Parameteranzahl SET 2 ; min. Modulnr. und Msg.-Nr.
PUSH ACC
PUSH B
IF "PARA1"<>""
MOV R2,PARA1
Parameteranzahl SET Parameteranzahl+1
ENDIF
IF "PARA2"<>""
MOV R3,PARA2
Parameteranzahl SET Parameteranzahl+1
ENDIF
IF "PARA3"<>""
MOV R4,PARA3
Parameteranzahl SET Parameteranzahl+1
ENDIF
IF "PARA4"<>""
MOV R5,PARA4
Parameteranzahl SET Parameteranzahl+1
ENDIF
IF "PARA5"<>""
MOV R6,PARA5
Parameteranzahl SET Parameteranzahl+1
ENDIF
IF "PARA6"<>""
MOV R7,PARA6
Parameteranzahl SET Parameteranzahl+1
ENDIF
PUSH DPL
PUSH DPH
MOV DPTR,#ModulNetAdr_Tab
MOV A,Modul
MOVC A,@A+DPTR
POP DPH
POP DPL
MOV R0,Modul
MOV R1,Msg
MOV B,#Parameteranzahl
PUSH ACC
WAIT_NET: LCALL READ_STATUS
JB ACC.1,WAIT_NET
POP ACC
LCALL SEND_MESSAGE ; Message ins Netz
POP B
POP ACC
endm
;---------------------------------------------------------------------
; Funktion : Message ausgeben
; Aufrufparameter : wie definiert
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
TEST_MESSAGE_HEX MACRO POS
PUSH ACC
MOV A,#POS
LCALL LCD_SET_DD_RAM_ADDRESS
POP ACC
PUSH ACC
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,B
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R0
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R1
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R2
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R3
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R4
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R5
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R6
LCALL A_LCD
MOV A,#' '
LCALL LCD_WRITE_CHAR
MOV A,R7
LCALL A_LCD
POP ACC
ENDM
;---------------------------------------------------------------------
; Funktion : Fehlerbehandlung
; Aufrufparameter : Fehlernr.
; Ruechgabeparameter : -
; Veraenderte Register :
; Stackbedarf :
; Zeitbedarf :
;
ERROR MACRO NR
ENDM
;---------------------------------------------------------------------
;---------------------------------------------------------------------
TEST_MESSAGE MACRO POS,SCHALTER
IF SCHALTER<=TEST_LEVEL
PUSH ACC
MOV A,#POS
LCALL LCD_SET_DD_RAM_ADDRESS
MOV A,R0
LCALL LCD_WRITE_CHAR
MOV A,R1
LCALL LCD_WRITE_CHAR
MOV A,R2
LCALL LCD_WRITE_CHAR
MOV A,R3
LCALL LCD_WRITE_CHAR
MOV A,R4
LCALL LCD_WRITE_CHAR
MOV A,R5
LCALL LCD_WRITE_CHAR
MOV A,R6
LCALL LCD_WRITE_CHAR
MOV A,R7
LCALL LCD_WRITE_CHAR
POP ACC
ENDIF
ENDM
;---------------------------------------------------------------------
MAKE_MESSAGE MACRO ADR,STRG
IF 0=0
MOV A,#0
MOV DPTR,#STR_ADR
MOVC A,@A+DPTR
MOV R0,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R1,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R2,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R3,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R4,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R5,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R6,A
MOV A,#0
INC DPTR
MOVC A,@A+DPTR
MOV R7,A
MOV A,#ADR
MOV B,#8
LJMP WEITER
STR_ADR DB STRG
WEITER: NOP
ENDIF
ENDM
;---------------------------------------------------------------------
MAKE_MESSAGE_HEX MACRO ADR,L,A0,A1,A2,A3,A4,A5,A6,A7
IF 0=0
MOV R0,#A0
MOV R1,#A1
MOV R2,#A2
MOV R3,#A3
MOV R4,#A4
MOV R5,#A5
MOV R6,#A6
MOV R7,#A7
MOV A,#ADR
MOV B,#L
ENDIF
ENDM
;---------------------------------------------------------------------
| 19.611418
| 76
| 0.460137
|
5165fc7b1dcdaea20c046c84d948e7db656d2777
| 1,160
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/sms/z80/asm_sms_ldir_mem_to_vram_unsafe.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/arch/sms/z80/asm_sms_ldir_mem_to_vram_unsafe.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/arch/sms/z80/asm_sms_ldir_mem_to_vram_unsafe.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | 1
|
2019-12-03T23:57:48.000Z
|
2019-12-03T23:57:48.000Z
|
; ========================================================================
;
; void *sms_ldir_mem_to_vram_unsafe(void *dst, void *src, unsigned int n)
;
; ldir from memory to vram; VRAM addresses are assumed to be stable.
;
; ========================================================================
SECTION code_clib
SECTION code_crt_common
PUBLIC asm_sms_ldir_mem_to_vram_unsafe
PUBLIC asm_sms_ldir_mem_to_vram_unsafe_continue
EXTERN asm_sms_set_vram_write_de
asm_sms_ldir_mem_to_vram_unsafe:
; memcpy from memory to vram
;
; enter : hl = void *src in memory
; de = void *dst in vram
; bc = unsigned int n > 0
;
; exit : hl = void *src, &byte after last read
; de = void *dst, &byte after last written
;
; uses : af, bc, de, hl
call asm_sms_set_vram_write_de
ex de,hl
add hl,bc
ex de,hl
asm_sms_ldir_mem_to_vram_unsafe_continue:
; hl = void *src in memory
; bc = unsigned int n > 0
; VRAM has dst address set
ld a,b
inc a
ld b,c
inc b
djnz no_adjust
dec a
no_adjust:
ld c,$be
loop:
otir
dec a
jp nz, loop
ret
| 18.709677
| 74
| 0.558621
|
1e2534ae0d4d5ca1d1a19eb5fbe19458834f849e
| 758
|
asm
|
Assembly
|
data/pokemon/base_stats/raichu.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
data/pokemon/base_stats/raichu.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
data/pokemon/base_stats/raichu.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
db DEX_RAICHU ; pokedex id
db 60, 90, 55, 100, 90
; hp atk def spd spc
db ELECTRIC, ELECTRIC ; type
db 75 ; catch rate
db 122 ; base exp
INCBIN "gfx/pokemon/front/raichu.pic", 0, 1 ; sprite dimensions
dw RaichuPicFront, RaichuPicBack
db THUNDERSHOCK, THUNDER_WAVE, SCREECH, BODY_SLAM ; level 1 learnset
db GROWTH_MEDIUM_FAST ; growth rate
; tm/hm learnset
tmhm MEGA_PUNCH, MEGA_KICK, TOXIC, BODY_SLAM, TAKE_DOWN, \
DOUBLE_EDGE, HYPER_BEAM, PAY_DAY, SUBMISSION, SEISMIC_TOSS, \
RAGE, THUNDERBOLT, THUNDER, MIMIC, DOUBLE_TEAM, \
REFLECT, BIDE, SWIFT, SKULL_BASH, REST, \
THUNDER_WAVE, SUBSTITUTE, FLASH
; end
db 0 ; padding
| 30.32
| 77
| 0.62533
|
e1c36436616bda1e9e4486ed8a581df588ae444f
| 955
|
asm
|
Assembly
|
_inc/Level select pointers.asm
|
vladjester2020/Sonic1TMR
|
22e749a2aab74cc725729e476d6252b071c12e42
|
[
"Apache-2.0"
] | null | null | null |
_inc/Level select pointers.asm
|
vladjester2020/Sonic1TMR
|
22e749a2aab74cc725729e476d6252b071c12e42
|
[
"Apache-2.0"
] | 2
|
2019-06-13T14:26:59.000Z
|
2019-10-10T13:15:14.000Z
|
_inc/Level select pointers.asm
|
vladjester2020/Sonic1TMR
|
22e749a2aab74cc725729e476d6252b071c12e42
|
[
"Apache-2.0"
] | null | null | null |
; ===========================================================================
; * S1HS - Levels order in Level Select Menu *
; ===========================================================================
; This file stores level order in level select menu
; The format of each item is: ZZAA, where ZZ is zone and AA is act number.
; ===========================================================================
dc.w $0000 ; GHZ 1
dc.w $0001 ; GHZ 2
dc.w $0002 ; GHZ 3
dc.w $0100 ; LZ 1
dc.w $0101 ; LZ 2
dc.w $0102 ; LZ 3
dc.w $0200 ; MZ 1
dc.w $0201 ; MZ 2
dc.w $0202 ; MZ 3
dc.w $0203 ; MZ 4
dc.w $0300 ; SLZ 1
dc.w $0301 ; SLZ 2
dc.w $0302 ; SLZ 3
dc.w $0400 ; SYZ 1
dc.w $0401 ; SYZ 2
dc.w $0402 ; SYZ 3
dc.w $0500 ; SBZ 1
dc.w $0501 ; SBZ 2
dc.w $0103 ; SBZ 3 (actually LZ 4)
dc.w $0502 ; Final Zone (actually SBZ 3)
dc.w $0700 ; Special Stage
dc.w $8000 ; Sound select
| 25.810811
| 77
| 0.424084
|
8aa6df1a2dd3435154660fab5be30e8fbc95b011
| 801
|
asm
|
Assembly
|
exercises/practice/space-age/.meta/example.asm
|
jonboland/x86-64-assembly
|
b0d586078b2f9e32ac6cd1de1d833282b2c336c0
|
[
"MIT"
] | 21
|
2019-05-12T20:06:11.000Z
|
2022-02-06T23:16:13.000Z
|
exercises/practice/space-age/.meta/example.asm
|
jonboland/x86-64-assembly
|
b0d586078b2f9e32ac6cd1de1d833282b2c336c0
|
[
"MIT"
] | 49
|
2019-04-23T19:17:26.000Z
|
2022-03-12T14:30:44.000Z
|
exercises/practice/space-age/.meta/example.asm
|
jonboland/x86-64-assembly
|
b0d586078b2f9e32ac6cd1de1d833282b2c336c0
|
[
"MIT"
] | 21
|
2019-05-19T21:29:07.000Z
|
2022-01-18T08:58:52.000Z
|
default rel
section .rodata
earth_year_in_sec: dd 31557600.0
orbital_periods:
dd 0.2408467 ; Mercury
dd 0.61519726 ; Venus
dd 1.0 ; Earth
dd 1.8808158 ; Mars
dd 11.862615 ; Jupiter
dd 29.447498 ; Saturn
dd 84.016846 ; Uranus
dd 164.79132 ; Neptune
;
; Given an age in seconds, calculate how old someone is in terms of a given
; planet's solar years.
;
; Parameters:
; rdi - planet
; rsi - seconds
; Returns:
; xmm0 - age
;
section .text
global age
age:
lea rax, [orbital_periods] ; Load orbital periods
movss xmm1, [rax + rdi * 4] ; Read orbital period
mulss xmm1, [earth_year_in_sec] ; Multiply by earth year
cvtsi2ss xmm0, esi ; Convert seconds to float
divss xmm0, xmm1 ; Divide by orbital period
ret
| 22.25
| 75
| 0.64794
|
da2e524d093d3ac7e08ccec5c4e9ee7811371874
| 1,012
|
asm
|
Assembly
|
bench/virtines/fib32.asm
|
The0x539/wasp
|
5f83aab7bf0c0915b1d3491034d35b091c7aebdf
|
[
"MIT"
] | 4
|
2022-02-03T19:01:27.000Z
|
2022-03-29T18:59:56.000Z
|
bench/virtines/fib32.asm
|
The0x539/wasp
|
5f83aab7bf0c0915b1d3491034d35b091c7aebdf
|
[
"MIT"
] | 1
|
2022-01-28T19:16:53.000Z
|
2022-02-02T21:38:17.000Z
|
bench/virtines/fib32.asm
|
The0x539/wasp
|
5f83aab7bf0c0915b1d3491034d35b091c7aebdf
|
[
"MIT"
] | 1
|
2022-03-08T03:05:43.000Z
|
2022-03-08T03:05:43.000Z
|
[bits 16]
[org 0x8000]
[section .text]
extern stack_start
global _start
_start:
mov eax, gdtr32
lgdt [eax]
mov eax, cr0
or al, 1
mov cr0, eax
jmp 08h:main32
[bits 32]
[section .text]
main32:
mov eax, 0
mov ds, ax
mov esp, 0x8000
push ebp
mov ebp, esp
mov esi, 20
call fib
hlt
fib:
cmp esi, 2
jge .fib_sum
mov eax, esi
ret
.fib_sum:
;# stack: [ acc ] [ arg ]
;# esp + 0 esp+4
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp + 0], 0
sub esi, 2
call fib
add dword [esp + 0], eax
mov esi, dword [esp + 4]
sub esi, 1
call fib
add dword [esp + 0], eax
mov eax, dword [esp + 0]
add esp, 8
ret
[section .data]
align 8
gdt32:
dq 0x0000000000000000
dq 0x00cf9a000000ffff
dq 0x00cf92000000ffff
align 8
gdtr32:
dw 23
dd gdt32
align 8
gdt64:
dq 0x0000000000000000 ; null
dq 0x00af9a000000ffff ; code (note lme bit)
dq 0x00af92000000ffff ; data (most entries don't matter)
align 8
gdtr64:
dw 23
dq gdt64
| 11
| 60
| 0.623518
|
aadbf64256328582a6245650035fef6f0e72186a
| 39,523
|
asm
|
Assembly
|
work/ff3_field_window_driver.asm
|
ypyp-pprn-mnmn/ff3_hack
|
f6b8590de1bd47ff617e56e2813c25305846c002
|
[
"MIT"
] | 4
|
2018-03-29T15:33:26.000Z
|
2022-03-09T13:35:31.000Z
|
work/ff3_field_window_driver.asm
|
take-the-bath/ff3_hack
|
f6b8590de1bd47ff617e56e2813c25305846c002
|
[
"MIT"
] | 45
|
2017-11-17T23:46:35.000Z
|
2021-09-27T11:35:47.000Z
|
work/ff3_field_window_driver.asm
|
take-the-bath/ff3_hack
|
f6b8590de1bd47ff617e56e2813c25305846c002
|
[
"MIT"
] | null | null | null |
; encoding: utf-8
; ff3_field_window_driver.asm
;
; description:
; replaces field::draw_window_box($3f:ed02) related codes.
; this file implements 'driver'-like logics,
; which drives underlying functions to show up windows on screen.
; these logics are originally placed around $3f:eb2d - $3f:eefa.
;
; version:
; 0.2.0
;==================================================================================================
ff3_field_window_driver_begin:
;--------------------------------------------------------------------------------------------------
.ifdef _OPTIMIZE_FIELD_WINDOW
INIT_PATCH_EX field.window.driver, $3f, $eb2d, $eefa, $eb2d
;------------------------------------------------------------------------------------------------------
;;$3f:ecfa field::draw_in_place_window
;; typically called when object's message is to be shown
;;callers:
;; $3f:ec8d field::show_window (original implementation only)
;; $3f:ec83 field::show_message_UNKNOWN
field.draw_inplace_window:
;; patch out external callers {
;;}
DECLARE_WINDOW_VARIABLES
;.window_id = $96
sta <.window_type
lda #0
sta <.a_button_down ;<$24
sta <.b_button_down ;<$25
;;originally fall through to $3f:ed02 field::draw_window_box
FALL_THROUGH_TO field.draw_window_box
;VERIFY_PC $ed02
;------------------------------------------------------------------------------------------------------
;;$3f:ed02 field::draw_window_box
;; This logic plays key role in drawing window, both for menu windows and in-place windows.
;; Usually window drawing is performed as follows:
;; 1) Call this logic to fill in background with window parts
;; and setup BG attributes if necessary (the in-palce window case).
;; In cases of the menu window, BG attributes have alreday been setup in another logic
;; and should not be changed.
;; 2) Subsequently call other drawing logics which overwrites background with
;; content (aka string) in the window, 2 consecutive window rows,
;; which is equivalent to 1 text line, per 1 frame.
;; These logics rely on window metrics variables, which is initially setup on this logic,
;; and they don't change BG attributes anyway.
;;NOTEs:
;; in the scope of this logic, it is safe to use the address range $0780-$07ff (inclusive) in a destructive way.
;; The original code uses this area as temporary buffer for rendering purporses
;; and discards its contents on exit.
;; more specifically, address are utilized as follows:
;; $0780-$07bf: used for PPU name table buffer,
;; $07c0-$07cf: used for PPU attr table buffer,
;; $07d0-$07ff: used for 3-tuple of array that in each entry defines
;; (vram address(high&low), value to tranfer)
;;callers:
;; 1E:8EFD:20 02 ED JSR field::draw_window_box @ $3c:8ef5 ?; window_type = 0
;; 1E:8F0E:20 02 ED JSR field::draw_window_box @ $3c:8f04 ?; window_type = 1
;; 1E:8FD5:20 02 ED JSR field::draw_window_box @ $3c:8fd1 ?; window_type = 3
;; 1E:90B1:20 02 ED JSR field::draw_window_box @ $3c:90ad ?; window_type = 2
;; 1E:AAF4:4C 02 ED JMP field::draw_window_box @ $3d:aaf1 field::draw_menu_window_box
;; (by falling through) @$3f:ecfa field::draw_in_place_window
field.draw_window_box: ;;$ed02
;; patch out external callers {
FIX_ADDR_ON_CALLER $3c,$8efd+1
FIX_ADDR_ON_CALLER $3c,$8f0e+1
FIX_ADDR_ON_CALLER $3c,$8fd5+1
FIX_ADDR_ON_CALLER $3c,$90b1+1
FIX_ADDR_ON_CALLER $3d,$aaf4+1
;;}
;;[in]
.window_type = $96
ldx <.window_type
jsr field.get_window_region ;$ed61
field_x.draw_window_box_with_region:
DECLARE_WINDOW_VARIABLES
;; ---
.ifdef _FEATURE_DEFERRED_RENDERING
jsr field_x.shrink_window_metrics
;; notes:
;; initializing renderer here will interfere with `menu.erase_box_from_bottom`
;; and may result in glitches on screen or even worse, crashing the game.
;; it is necessary to tell the renderer to draw border in somewhere before rendering,
;; but doing it here is not reliable as it can't be assumed that
;; rendering of a box and its contents is always tightly coupled.
;; there exists cases out-of-order execution of the following:
;; 1. render a box
;; 2. erase a box (possibly not the same as #1)
;; 3. render contents in a box (possibly not the same as #1)
;; thus, it is deliberately chosen not to make the init here.
jsr field_x.begin_ppu_update
jsr field_x.end_ppu_update
jmp field.restore_banks ;$ecf5
.else ;;_FEATURE_DEFERRED_RENDERING
lda <.window_top ; ED07 A5 39
sta <.offset_y ; ED09 85 3B
jsr field.calc_draw_width_and_init_window_tile_buffer; ED0B 20 70 F6
jsr field.init_window_attr_buffer ; ED0E 20 56 ED
lda <.window_height ; ED11 A5 3D
sec ; ED13 38
sbc #$02 ; ED14 E9 02
pha ; ED16 48
jsr field.get_window_top_tiles ; ED17 20 F6 ED
jsr field.draw_window_row ; ED1A 20 C6 ED
pla ; ED1D 68
sec ; ED1E 38
sbc #$02 ; ED1F E9 02
beq .render_bottom ; ED21 F0 18
bcs .render_body ; ED23 B0 05
dec <.offset_y ; ED25 C6 3B
jmp .render_bottom ; ED27 4C 3B ED
.render_body:
pha ; ED2A 48
jsr field.get_window_middle_tiles ; ED2B 20 1D EE
jsr field.draw_window_row ; ED2E 20 C6 ED
pla ; ED31 68
sec ; ED32 38
sbc #$02 ; ED33 E9 02
beq .render_bottom ; ED35 F0 04
bcs .render_body ; ED37 B0 F1
dec <.offset_y ; ED39 C6 3B
.render_bottom:
jsr field.get_window_bottom_tiles ; ED3B 20 3E EE
jsr field.draw_window_row ; ED3E 20 C6 ED
inc <.window_left ; ED41 E6 38
inc <.window_top ; ED43 E6 39
lda <.window_width ; ED45 A5 3C
sec ; ED47 38
sbc #$02 ; ED48 E9 02
sta <.window_width ; ED4A 85 3C
lda <.window_height ; ED4C A5 3D
sec ; ED4E 38
sbc #$02 ; ED4F E9 02
sta <.window_height ; ED51 85 3D
jmp field.restore_banks ; ED53 4C F5 EC
.endif ;;_FEATURE_DEFERRED_RENDERING
;VERIFY_PC $ed56
;--------------------------------------------------------------------------------------------------
;INIT_PATCH $3f,$edc6,$ede1
.ifndef _FEATURE_DEFERRED_RENDERING
field.draw_window_row: ;;$3f:edc6 field::draw_window_row
;;callers:
;; $3f:ece5 field::draw_window_top
;; $3f:ed02 field::draw_window_box (only the original implementation)
DECLARE_WINDOW_VARIABLES
lda <.window_width
sta <.output_index
jsr field.update_window_attr_buff ;$c98f
jsr field_x.begin_ppu_update
jsr field.upload_window_content ;$f6aa
jsr field.set_bg_attr_for_window ;$c9a9
;;fall through.
.endif ;;_FEATURE_DEFERRED_RENDERING
;--------------------------------------------------------------------------------------------------
field_x.end_ppu_update:
jsr field.sync_ppu_scroll ;$ede1
jmp field.call_sound_driver ;$c750
field_x.begin_ppu_update:
jsr waitNmiBySetHandler ;$ff00
jmp ppud.do_sprite_dma
;VERIFY_PC $ede1
;--------------------------------------------------------------------------------------------------
;;# $3f:eb2d field.scrolldown_item_window
;;
;;## args:
;;+ [in,out] ptr $1c: pointer to text
;;+ [in,out] ptr $3e: pointer to text
;;+ [in] u8 $93: bank number of the text
;;+ [in] u8 $a3: ?
;;+ [out] u8 $b4: ? (= 0x40(if aborted) or 0xC0(if scrolled))
;;+ [in,out] u16 ($79f0,$79f2): ?
;;+ [out] bool carry: 1: scroll aborted, 0: otherwise
;;## callers:
;;+ `1E:9255:20 2D EB JSR field.scrolldown_item_window` @
field.scrolldown_item_window: ;;$3f:eb2d
;; fixups
FIX_ADDR_ON_CALLER $3c,$9255+1 ;;@ $3c:920d menu.window3.get_input_and_scroll
;; ---
;.text_bank = $93
.p_text = $1c
.p_text_end = $3e
jsr field_x.switch_to_text_bank
ldy #0
lda [.p_text_end],y
bne field.do_scrolldown_item_window
lda #$40
FALL_THROUGH_TO field.abort_item_window_scroll
;--------------------------------------------------------------------------------------------------
;;# $3f$eb3c field.abort_item_window_scroll
;;<details>
;;
;;## args:
;;+ [in] u8 $57: bank number to restore
;;+ [out] bool carry: always 1. (scroll aborted)
;;## callers:
;;+ `1F:EBA6:4C 3C EB JMP field.abort_item_window_scroll` @ $3f$eb69 field.scrollup_item_window
;;## code:
field.abort_item_window_scroll: ;;$3f$eb3c
;; fixups
;; ---
sta <$b4
;sec ;;aborted scrolinng item window
field_x.restore_banks_with_carry_set:
;php
jsr field.restore_banks ;;note: here original implementation calls $ff03, not $ecf5
;plp
sec ;;aborted scrolinng item window
rts
;--------------------------------------------------------------------------------------------------
;;# $3f$eb43 field.do_scrolldown_item_window
;;<details>
;;
;;## args:
;;+ [out] bool carry: always 0. (= scroll successful)
;;## callers:
;;+ `1F:EB36:D0 0B BNE field.scrolldown_item_window` @ $3f$eb2d field.scrolldown_item_window
field.do_scrolldown_item_window: ;;$3f$eb43
lda <$a3
cmp #2
bne .by_line
;; ($79f0,$79f2) -= 8
sec
lda $79f0
sbc #8
sta $79f0
bcs .low_byte_only
dec $79f2
.low_byte_only:
.by_line:
jsr field.seek_text_to_next_line
field_x.reflect_item_window_scroll:
lda #$c0
sta <$b4
FALL_THROUGH_TO field.reflect_window_scroll
;--------------------------------------------------------------------------------------------------
;;# $3f$eb61 field.reflect_window_scroll
;;
;;## args:
;;+ [in] u8 $57: bank number to restore
;;+ [out] bool carry: always 0. (= scroll successful)
;;## callers:
;;+ `1E:9F92:20 61 EB JSR field.reflect_item_window_scro` @ $3c:9ec2 menu.items.main_loop
;;+ `1E:A889:4C 61 EB JMP field.reflect_item_window_scro` @ $3d:a87a menu.draw_view_of_buffered_string
;;+ `1E:B436:20 61 EB JSR field.reflect_item_window_scro`
;;+ `1E:B616:4C 61 EB JMP field.reflect_item_window_scro`
;;+ `1E:B624:4C 61 EB JMP field.reflect_item_window_scro`
;;+ `1E:BC0F:4C 61 EB JMP field.reflect_item_window_scro`
;;+ `1F:EB9F:4C 61 EB JMP field.reflect_item_window_scroll` @ $3f$eb69 field.scrollup_item_window
field_x.reflect_window_scroll_without_borders
FIX_ADDR_ON_CALLER $3c,$9f92+1 ;;@ $3c:9ec2 menu.items.main_loop
.ifdef _FEATURE_DEFERRED_RENDERING
;;note:
;; the item window could be rendered with border
;; and doing so does not impact the resulting contents.
;; however, borders takes extra 1f to render
;; and there are cases that borders cascaded
;; in different order than the original implementation would.
;; so here request to omit borders as a speed optimizaion.
;; this logic is called on both in menu mode and in floor (use item to object)
jsr render_x.init_as_no_borders
.endif
field.reflect_window_scroll: ;;$3f$eb61
;; fixups:
;FIX_ADDR_ON_CALLER $3c,$9f92+1 ;;@ $3c:9ec2 menu.items.main_loop
FIX_ADDR_ON_CALLER $3d,$a889+1 ;;@ $3d:a87a menu.draw_view_of_buffered_string
FIX_ADDR_ON_CALLER $3d,$b436+1
FIX_ADDR_ON_CALLER $3d,$b616+1
FIX_ADDR_ON_CALLER $3d,$b624+1 ;;shop, right after selected to sell item
FIX_ADDR_ON_CALLER $3d,$bc0f+1
;; ---
.ifdef _FEATURE_DEFERRED_RENDERING
;; as name entry window is solely rendered with this function,
;; it is required to default to be with border here, in order to render safely.
jsr render_x.defer_window_text_with_border
.else
jsr field.draw_string_in_window ;$eec0
.endif
;clc ;successfully scrolled the item window
;bcc field_x.restore_banks_with_status
jmp field.restore_banks ;carry will be cleared by this routine
;--------------------------------------------------------------------------------------------------
;;# $3f$eb69 field.scrollup_item_window
;;
;;## args:
;;+ [in,out] ptr $1c: pointer to text
;;+ [in] u8 $93: bank number of the text
;;+ [in] u8 $a3: ?
;;+ [out] u8 $b4: ? (= 0xc0 if scrolled, or 0x80 if aborted)
;;+ [in,out] u16 ($79f0,$79f2): ?
;;+ [out] bool carry: 1: scroll aborted, 0: scroll successful
;;## callers:
;;+ `1E:9233:20 69 EB JSR field.scrollup_item_window` @ ?
field.scrollup_item_window: ;;$3f$eb69
;; fixups:
FIX_ADDR_ON_CALLER $3c,$9233+1 ;;@ $3c:920d menu.window3.get_input_and_scroll
;; ---
.p_text = $1c
.p_text_end = $3e
;.text_bank = $93
;; ---
jsr field_x.unseek_window_text
jsr field_x.unseek_window_text
jsr field_x.switch_to_text_bank
ldy #1
lda [.p_text],y
beq .abort_scroll
jsr field.unseek_text_to_line_beginning
lda <$a3
cmp #2
bne field_x.reflect_item_window_scroll
;; ($79f0,$79f2) += 8
lda $79f0
clc
adc #8
sta $79f0
bcc field_x.reflect_item_window_scroll
inc $79f2
bcs field_x.reflect_item_window_scroll
.abort_scroll: ;$eba2
lda #$80
bne field.abort_item_window_scroll
;VERIFY_PC $eba9
;--------------------------------------------------------------------------------------------------
;INIT_PATCH $3f, $eba9, $ee9a
;;
;;# $3f:eba9 field::seek_text_to_next_line
;;<details>
;;
;;## args:
;;+ [in,out] ptr $1c: pointer to text to seek with
;;+ [out] ptr $3e: pointer to the text, pointing the beginning of next line
;;## callers:
;;+ `1F:EB5E:20 A9 EB JSR field::seek_to_next_line`
;;+ $3f:ee65 field::stream_string_in_window
;;## code:
field_x.seek_text_to_next:
.p_text = $1c
IS_PRINTABLE_CHAR
bcs field.seek_text_to_next_line ;printable.
;: skip operand value of the replacement char
inc <.p_text
bne field.seek_text_to_next_line
inc <.p_text+1
FALL_THROUGH_TO field.seek_text_to_next_line
field.seek_text_to_next_line:
;; fixup callers
;FIX_ADDR_ON_CALLER $3f,$eb5e+1
;; ---
ldy #0
field_x.find_next_eol:
.p_text = $1c
.p_out = $3e
;; ---
;.loop:
lda [.p_text],y
;; p_text++
inc <.p_text
bne .low_only
inc <.p_text+1
.low_only:
cmp #CHAR.EOL
bne field_x.seek_text_to_next
.found:
lda <.p_text
sta <.p_out
lda <.p_text+1
sta <.p_out+1
rts
;field_x.seek_window_text:
;; on exit, zero is always cleared
;; as either low byte of ptr or high byte has non-zero value after increment
;.p_text = $1c
; inc <.p_text
; bne .return
; inc <.p_text+1
;.return
; rts
;--------------------------------------------------------------------------------------------------
;;# $3f:ebd1 field::unseek_text_to_line_beginning
;;<details>
;;
;;## args:
;;+ [in,out] ptr $1c: pointer to text to seek with
;;+ [out] ptr $3e: pointer to the text, pointing the beginning of line
;;## callers:
;;+ `1F:EB81:20 D1 EB JSR field.unseek_to_line_beginning`
;;## notes:
;;used to scroll back texts, in particular when a cursor moved up in item window.
;;
field.unseek_text_to_line_beginning: ;;$3f:ebd1
;; fixup callers:
;FIX_ADDR_ON_CALLER $3f,$eb81+1
;; ---
;;note: in this logic this points to the byte immeditely preceding the current position
.p_text = $1c
.p_out = $3e
;; ---
.loop:
jsr field_x.unseek_window_text
ldy #0
lda [.p_text],y
;; checking if the char at right before the pointer
;; is a replacement code
;jsr field_x.is_printable_char
IS_PRINTABLE_CHAR
bcs .printable_char ;printable.
;; if it is, then seek back 2 chars to skip operand byte.
;; this is bit tricky however it works.
jsr field_x.unseek_window_text
bne .loop ;always set
.printable_char:
;; if the
iny
lda [.p_text],y
lsr A
bne .loop ;char is neither CHAR.NULL or CHAR.EOL
.found:
;$3c <- ($1c + 2)
lda #2
clc
adc <.p_text
sta <.p_out
ldy <.p_text+1
bcc .return
iny
.return:
sty <.p_out+1
rts
field_x.unseek_window_text:
.p_text = $1c
lda <.p_text
bne .low_byte_only
dec <.p_text+1
.low_byte_only:
dec <.p_text
rts
;VERIFY_PC $ec0c
;INIT_PATCH $3f, $ec0c, $ee9a
;------------------------------------------------------------------------------------------------------
;;below 2 logics are moved for space optimization:
;;# $3f:ec0c field::show_sprites_on_lower_half_screen
;;# $3f:ec12 field::show_sprites_on_region7 (bug?)
;--------------------------------------------------------------------------------------------------
;$3f:ed61 field::get_window_region
;//[in]
;// u8 $37: skipAttrUpdate
;// u8 X: window_type (0...4)
;// 0: object's message?
;// 1: choose dialog (Yes/No) (can be checked at INN)
;// 2: use item to object
;// 3: Gil (can be checked at INN)
;// 4: floor name
;INIT_PATCH $3f,$ed61,$edc6
;;$3f:ed61 field::get_window_region
;;callers:
;; $3f:ed02 field::draw_window_box
;;NOTEs:
;; 1) to reflect changes in screen those made by 'field.hide_sprites_around_window',
;; which is called within this function,
;; caller must update sprite attr such as:
;; lda #2
;; sta $4014 ;DMA
;; 2) this logic is very simlar to $3d:aabc field::get_menu_window_metrics.
;; the difference is:
;; A) this logic takes care of wrap-around unlike the other one, which does not.
;; B) target window and the address of table where the corresponding metrics defined at
field.get_window_region: ;;$3f:ed61 field::get_window_metrics
;[in]
.viewport_left = $29 ;in 16x16 unit
.viewport_top = $2f ;in 16x16 unit
.skip_attr_update = $37
;[out]
.left = $38 ;in 8x8 unit
.top = $39 ;in 8x8 unit
.width = $3c
.height = $3d
.offset_x = $97
.offset_y = $98
.internal_top = $b5
.internal_left = $b6
.internal_bottom = $b7
.internal_right = $b8
lda <.skip_attr_update
bne field_x.rts_1 ;rts (original: bne $ed60)
;; calculate left coordinates
lda field.window_attr_table_x,x
sta <.internal_left
sta <.offset_x
dec <.offset_x
lda <.viewport_left ;assert(.object_x < 0x80)
asl a
adc <.internal_left
and #$3f
sta <.left
;; calculate top coordinates
lda field.window_attr_table_y,x
;clc ;here always clear
adc #2
sta <.offset_y
sta <.internal_top
dec <.internal_top
lda <.viewport_top
asl a
adc field.window_attr_table_y,x
cmp #$1e
bcc .no_wrap
;sec ;here always set
sbc #$1e
.no_wrap:
sta <.top
;; calculate right coordinates
lda field.window_attr_table_width,x
sta <.width
clc
adc <.internal_left
sta <.internal_right
dec <.internal_right
;; calculate bottom coordinates
lda field.window_attr_table_height,x
sta <.height
clc
adc <.internal_top
;sec ;here always clear
sbc #2 ;effectively -3
sta <.internal_bottom
;; done calcs
;; here X must have window_type (as an argument to the call below)
FALL_THROUGH_TO field.hide_sprites_under_window
;jmp field.hide_sprites_under_window ;$ec18
;rts
;VERIFY_PC $edb2
;--------------------------------------------------------------------------------------------------
;;# $3f:ec18 field::hide_sprites_under_window
;;<details>
;;
;;## args:
;;+ [in] u8 X: window_type (0...4)
;;## callers:
;;+ $3f$ed61 field::get_window_region
;;## code:
field.hide_sprites_under_window:
lda #0
FALL_THROUGH_TO field.showhide_sprites_by_region
;--------------------------------------------------------------------------------------------------
;;# $3f:ec1a field::showhide_sprites_by_region
;;## args:
;;+ [in] u8 A: show/hide.
;; + 1: show
;; + 0: hide
;;+ [in] u8 X: region_type (0..6; with 0 to 4 being shared with window_type)
;;## callers:
;;+ $3f:ec0c field::show_sprites_on_lower_half_screen
;;+ $3f:ec12 field::show_sprites_on_region7 (with X set to 7)
;;+ $3f:ec18 field::showhide_sprites_by_window_region
;;## local variables:
;;+ u8 $80: region boundary in pixels, left, inclusive.
;;+ u8 $81: region boundary in pixels, right, exclusive.
;;+ u8 $82: region boundary in pixels, top, inclusive.
;;+ u8 $83: region boundary in pixels, bottom, exclusive.
;;+ u8 $84: show/hide flag
field.showhide_sprites_by_region:
;; --- fixups
;; all callers have got replaced their implementation within this file
;; ---
;.region_left = $80 ;in pixels
;.region_right = $81 ;in pixels
;.region_top = $82 ;in pixels
;.region_bottom = $83;in pixels
.is_to_show = $84
.sprite_buffer.x = $0203
.sprite_buffer.y = $0200
.sprite_buffer.attr = $0202
sta <.is_to_show
ldy #$40 ;don't change player and cursor (stored at before $0240) anyways
.for_each_sprites:
;; if (x < left || right <= x) { continue; }
lda .sprite_buffer.x, y
sec
sbc field.region_bounds.left, x
cmp field.region_bounds.width, x
bcs .next
;; if (y < top || bottom <= y) { continue; }
lda .sprite_buffer.y, y
;;here carry is always clear
sbc field.region_bounds.top, x ;;top is adjusted to account carry
cmp field.region_bounds.height, x
bcs .next
lda .sprite_buffer.attr, y
and #$df ;bit 5 <- 0: sprite in front of BG
bit <.is_to_show
bne .update
ora #$20 ;bit 5 <- 1: sprite behind BG
.update:
sta .sprite_buffer.attr, y
.next:
iny
iny
iny
iny
bne .for_each_sprites
field_x.rts_1:
rts
;--------------------------------------------------------------------------------------------------
;;# $3f:ec0c field::show_sprites_on_lower_half_screen
;;<details>
;;
;;## callers:
;;+ `1F:C9B6:20 0C EC JSR field.show_sprites_on_region6`
field.show_sprites_on_lower_half_screen:
;; --- fixup address on callers
FIX_ADDR_ON_CALLER $3e,$c9b6+1
;; ---
ldx #6
bne field.show_sprites_by_region
;--------------------------------------------------------------------------------------------------
;;# $3f:ec12 field::show_sprites_on_region7 (bug?)
;;<details>
;;
;;## callers:
;;+ `1F:C9C1:20 12 EC JSR field.show_sprites_on_region7`
field.show_sprites_on_region7:
;; --- fixup address on callers
FIX_ADDR_ON_CALLER $3e,$c9c1+1
;; --- begin
ldx #7 ;;invalid region type. seems to be a bug.
field.show_sprites_by_region:
lda #1
bne field.showhide_sprites_by_region
;------------------------------------------------------------------------------------------------------
field.region_bounds.left: ;$ec67 left (inclusive)
DB $0A,$0A,$0A,$8A,$0A,$0A,$0A
;field.region_bounds.right: ;$ec6e right (excludive, out of the box)
;DB $EF,$4F,$EF,$EF,$EF,$EF,$EF
field.region_bounds.width:
DB $E5,$45,$E5,$65,$E5,$E5,$E5 ;width
field.region_bounds.top: ;$ec75 top (inclusive)
;DB $0A,$8A,$8A,$6A,$0A,$0A,$6A
DB $09,$89,$89,$69,$09,$09,$69 ;top - 1.(accounted for optimization)
;field.region_bounds.bottom: ;$ec7c bottom (exclusive)
;DB $57,$D7,$D7,$87,$2A,$57,$D7
field.region_bounds.height:
DB $4d,$4d,$4d,$1d,$20,$4d,$6d ;height
;VERIFY_PC $ec83
;------------------------------------------------------------------------------------------------------
;.org $edb2
field.window_attr_table_x: ; = $edb2
.db $02, $02, $02, $12, $02
field.window_attr_table_y: ; = $edb7
.db $02, $12, $12, $0e, $02
field.window_attr_table_width: ; = $edbc
.db $1c, $08, $1c, $0c, $1c
field.window_attr_table_height: ; = $edc1
.db $0a, $0a, $0a, $04, $04
;VERIFY_PC $edc6
;------------------------------------------------------------------------------------------------------
;INIT_PATCH $3f,$ec83,$ee9a
;;$3f:ec83 field::show_message_UNKNOWN:
;; 1F:EC83:A9 00 LDA #$00
;; 1F:EC85:20 FA EC JSR field::draw_inplace_window
;; 1F:EC88:4C 65 EE JMP field::stream_string_in_window
field.show_off_message_window:
lda #0
field_x.show_off_window:
jsr field.draw_inplace_window ;$ecfa
jmp field.stream_string_in_window ;$ee65
;------------------------------------------------------------------------------------------------------
;;$3f:ec8b field::show_message_window:
;;callers:
;; 1F:E237:20 8B EC JSR field::show_message_window
;;
field.show_message_window:
;;patch out callers
FIX_ADDR_ON_CALLER $3f,$e237+1
;;
lda #0
FALL_THROUGH_TO field.show_window
;------------------------------------------------------------------------------------------------------
;;$3f:ec8d field::show_window:
;;callers:
;; 1F:E264:20 8D EC JSR $EC8D
;;in:
;; u8 A : window_type
field.show_window:
;;patch out external callers {
FIX_ADDR_ON_CALLER $3f,$e264+1
;;}
.field.pad1_inputs = $20
;jsr field.draw_inplace_window ;$ecfa
;jsr field.stream_string_in_window ;$ee65
jsr field_x.show_off_window
jsr field.await_and_get_next_input ;$ecab
lda <$7d
;beq .leave ;$eca8
bne .enter_input_loop
.leave: ;$eca8
jmp $c9b6
.input_loop: ;$ec9e
jsr field.get_next_input
.enter_input_loop: ;$ec9a
lda <.field.pad1_inputs
bpl .input_loop
.on_a_button_down: ;$eca4
lda #0
sta <$7d
beq .leave ;always met
;------------------------------------------------------------------------------------------------------
;;$3f:ECAB field::await_and_get_new_input:
;;callers:
;; 1F:EC93:20 AB EC JSR field::await_and_get_new_input ($3f:ec8b field::show_message_window)
;; 1F:ECBA:4C AB EC JMP field::await_and_get_new_input (tail recursion)
;; 1F:EE6A:20 AB EC JSR field::await_and_get_new_input ($3f:ee65 field::stream_string_in_window)
field.await_and_get_next_input:
jsr field_x.get_input_with_result ;on exit, A have the value from $20
beq field.get_next_input_in_this_frame
jsr field_x.advance_frame
jmp field.await_and_get_next_input
;------------------------------------------------------------------------------------------------------
;;$3f:ECc4 field::get_next_input:
;;callers:
;; 1F:EC9E:20 C4 EC JSR field::get_next_input
field.get_next_input:
;.field.pad1_inputs = $20 ;bit7 <- A ... -> bit0
;;$ecc4:
jsr field_x.advance_frame
;;fall through
field.get_next_input_in_this_frame:
.field.input_cache = $21
;;$ecbd:
jsr field_x.get_input_with_result ;on exit, A have the value from $20
beq field.get_next_input
;;$eccf
sta <.field.input_cache
bne field_x.switch_to_text_bank
;------------------------------------------------------------------------------------------------------
;;$3f:ecd8 field::advance_frame_with_sound
;;callers:
;; 1F:EE74:20 D8 EC JSR field::advance_frame_w_sound ($3f:ee65 field::stream_string_in_window)
field.advance_frame_and_set_bank:
jsr field_x.advance_frame
;;jmp field_x.switch_to_text_bank
FALL_THROUGH_TO field_x.switch_to_text_bank
;------------------------------------------------------------------------------------------------------
field_x.switch_to_text_bank:
.content_string_bank = $93
lda <.content_string_bank
jmp call_switch_2banks
field_x.advance_frame:
jsr waitNmiBySetHandler
field_x.advance_frame_no_wait:
inc <field.frame_counter
jmp field.call_sound_driver
field_x.get_input_with_result:
.field.pad1_inputs = $20 ;bit7 <- A ... -> bit0
jsr field.get_input
lda <.field.pad1_inputs
rts
;VERIFY_PC $ece5
;------------------------------------------------------------------------------------------------------
;INIT_PATCH $3f,$ece5,$ecf5
;;$3f:ece5 field::draw_window_top:
;;NOTEs:
;; called when executed actions the below in item window from menu
;; 1) exchange of position
;; 2) use of item
;;callers:
;; 1E:AAA3:4C E5 EC JMP field::draw_window_top
;;original code:
;1F:ECE5:A5 39 LDA window_top = #$0B
;1F:ECE7:85 3B STA window_row_in_draw = #$0F
;1F:ECE9:20 70 F6 JSR field::calc_size_and_init_buff
;1F:ECEC:20 56 ED JSR field::init_window_attr_buffer
;1F:ECEF:20 F6 ED JSR field::get_window_top_tiles
;1F:ECF2:20 C6 ED JSR field::draw_window_row
field.draw_window_top:
;; patch out callers external to current implementation {
FIX_ADDR_ON_CALLER $3d,$aaa3+1
;;}
.window_top = $39
.window_row_in_drawing = $3b
.ifdef _FEATURE_DEFERRED_RENDERING
jsr field_x.shrink_window_metrics
ldx #(render_x.NEED_TOP_BORDER|render_x.PENDING_INIT|render_x.RENDER_RUNNING|render_x.SKIP_CONTENTS)
jsr render_x.setup_deferred_rendering
;; contents of the item window will be redrawn after the border rendered.
;; so it is ok to fill content area with empty background, though not looking good.
;jsr field.draw_window_content
jsr render_x.queue_top_border
jsr render_x.finalize
;; HACK ---> TODO: do it cleaner way
lda #0
sta render_x.q.init_flags
;; <--- HACK
.else ;;ifdef _FEATURE_DEFERRED_RENDERING
lda <.window_top
sta <.window_row_in_drawing
jsr field.calc_draw_width_and_init_window_tile_buffer
jsr field.init_window_attr_buffer
jsr field.get_window_top_tiles
jsr field.draw_window_row
.endif ;;ifdef _FEATURE_DEFERRED_RENDERING
;; fall through (into $ecf5: field.restore_banks)
;jmp field.restore_banks ;$ecf5
FALL_THROUGH_TO field.restore_banks
;VERIFY_PC $ecf5
;------------------------------------------------------------------------------------------------------
;;$3f:ecf5 restoreBanksBy$57
;;callers:
;; 1F:EB64:20 F5 EC JSR field::restore_banks (in $3f:eb61 field::drawEncodedStringInWindowAndRestoreBanks)
;; 1F:F49E:4C F5 EC JMP field::restore_banks
;; field::draw_window_top (by falling thourgh)
;; field::draw_window_box
field.restore_banks:
;; patch out external callers {
;FIX_ADDR_ON_CALLER $3f,$eb64+1
FIX_ADDR_ON_CALLER $3f,$f49e+1
;;}
.program_bank = $57
lda <.program_bank
jmp call_switch_2banks
;VERIFY_PC $ecfa
;------------------------------------------------------------------------------------------------------
;;$3f:ed56 field::fill_07c0_ff
;;callers:
;; $3f:ece5 field::draw_window_top
;; $3f:ed02 field::draw_window_box
field.init_window_attr_buffer:
.window_attr_buffer = $07c0
ldx #$0f
lda #$ff
.fill:
sta .window_attr_buffer,x
dex
bpl .fill
rts
;VERIFY_PC $ed61
;;for optimzation,
;;$3f$ed61 field.get_window_metrics is relocated to nearby $3f$ec1a field.showhide_sprites_by_region
;------------------------------------------------------------------------------------------------------
;$3f:ede1 field::sync_ppu_scroll
;{
; if ($37 == 0) { //bne ede8
; return $e571();
; }
;$ede8:
; $2000 = $ff;
; $2005 = 0; $2005 = 0;
; return;
;$edf6:
;}
;INIT_PATCH $3f,$ede1,$edf6
;;$3f:ede1 field::sync_ppu_scroll
;;callers:
;; $3f:edc6 field.draw_window_row
;; $3f:f692 field.draw_window_content
field.sync_ppu_scroll:
.in_menu_mode = $37
.ppu_ctrl_cache = $ff
lda <.in_menu_mode
bne .set_ppu_ctrl
jmp field.sync_ppu_scroll_with_player ;$e571
.set_ppu_ctrl:
lda <.ppu_ctrl_cache
sta $2000
lda #00
sta $2005
sta $2005
rts
;VERIFY_PC $edf6
;------------------------------------------------------------------------------------------------------
.ifndef _FEATURE_DEFERRED_RENDERING
;INIT_PATCH $3f,$edf6,$ee65
;;$3f:edf6 field::getWindowTilesForTop
;;callers:
;; $3f:ece5 field::draw_window_top
;; $3f:ed02 field::draw_window_box
field.get_window_top_tiles:
lda #$00
jsr field_x.get_window_tiles
;lda #$07
;;fall through
field_x.get_window_tiles:
.width = $3c
.eol = $3c
.window_tiles_buffer_upper_row = $0780
;.window_tiles_buffer_lower_row = $07a0
;;in: A := lower 1bits: 0: fill in upper row; 1: fill in lower row
;; higher 7bits: offset into tile table
pha
lsr A
tay
ldx #0
bcc .save_width
ldx #$20
.save_width:
lda <.width
pha ;width
.left_tile:
lda field_x.window_parts,y
sta .window_tiles_buffer_upper_row,x
txa
clc
adc <.width
sta <.eol ;width + offset
inx
.center_tiles:
lda field_x.window_parts+1,y
sta .window_tiles_buffer_upper_row,x
inx
cpx <.eol
bcc .center_tiles
.right_tile:
lda field_x.window_parts+2,y
sta .window_tiles_buffer_upper_row-1,x
pla ;original width
sta <.width
pla
;here always carry is set
;adc #$22 ;effectively +23
adc #$06
rts
;;$3f:ee3e field::getWindowTilesForBottom
;;callers:
;; $3f:ed02 field::draw_window_box
field.get_window_bottom_tiles: ;ed3b
lda #$03<<1
jsr field_x.get_window_tiles
bne field_x.get_window_tiles
;;$3f:ee1d field::getWindowTilesForMiddle
;;callers:
;; $3f:ed02 field::draw_window_box
field.get_window_middle_tiles: ;ee1d
lda #$03<<1
jsr field_x.get_window_tiles
lda #$03<<1|1
bne field_x.get_window_tiles
field_x.window_parts:
db $f7, $f8, $f9
db $fa, $ff, $fb
db $fc, $fd, $fe
.else ;.ifndef _FEATURE_DEFERRED_RENDERING
field_x.window_parts:
db $f7, $f8, $f9
db $fc, $fd, $fe
.endif ;.ifndef _FEATURE_DEFERRED_RENDERING
;VERIFY_PC $ee65
;------------------------------------------------------------------------------------------------------
;INIT_PATCH $3f,$ee65,$ee9a
;;$3f:ee65 field::stream_string_in_window
;;callers:
;; 1E:9109:4C 65 EE JMP $EE65 @ $3c:90ff ?
;; 1E:A675:4C 65 EE JMP $EE65 @ $3d:a66b field.draw_menu_window_content
;; 1F:EC88:4C 65 EE JMP $EE65 @ $3f:ec83 field::show_off_message_window
;; 1F:EC90:20 65 EE JSR $EE65 @ $3f:ec8b field::show_message_window
field.stream_string_in_window:
;; patch out callers external to this implementation {
FIX_ADDR_ON_CALLER $3c,$9109+1
FIX_ADDR_ON_CALLER $3d,$a675+1
;; }
.viewport_left = $29 ;in 16x16 unit
.viewport_top = $2f ;in 16x16 unit
.in_menu_mode = $37
.window_left = $38 ;in 8x8 unit
.window_top = $39 ;in 8x8 unit
.window_width = $3c
.window_height = $3d
.offset_x = $97
.offset_y = $98
;; ---
;; all of the callers are fine to render with borders (the default of 'load_and_draw_string').
jsr field.load_and_draw_string ;$ee9a.
;; on exit from above, carry has a boolean value.
;; 1: more to draw, 0: completed drawing.
bcc .do_return
.paging:
jsr field.await_and_get_next_input
lda <.window_height
clc
adc #1 ;round up to next mod 2
lsr A
.streaming:
sec
sbc #1
pha ;# of text lines available to draw
lda #0
sta <field.frame_counter
.delay_loop:
jsr field.advance_frame_and_set_bank ;$ecd8
lda <field.frame_counter
and #FIELD_WINDOW_SCROLL_FRAMES ;;originally 1
bne .delay_loop
jsr field.seek_text_to_next_line ;$eba9
jsr field.draw_string_in_window ;$eec0
;; on exit from above, carry has a boolean value.
;; 1: more to draw, 0: completed drawing.
pla ;# of text lines available to draw
bne .streaming ;there is more space to fill in
bcs .paging ;there is more text to draw
;;content space is filled with reaching end of text
.do_return:
rts
;VERIFY_PC $ee9a
;INIT_PATCH $3f,$ee9a,$eec0
;------------------------------------------------------------------------------------------------------
;;# $3f:ee9a field::load_and_draw_string
;;### args:
;;
;;#### in:
;;+ u8 $92: string_id
;;+ ptr $94: offset to string ptr table
;;
;;#### out:
;;+ bool carry: more_to_draw //flagged cases could be tested at サロニアの図書館(オーエンのほん1)
;;+ ptr $3e: offset to the string, assuming the bank it to be loaded is at 1st page (starting at $8000)
;;+ u8 $93: bank number which the string would be loaded from
;;
;;### callers:
;;+ `1F:C036:20 9A EE JSR field::load_and_draw_string` @ opening title
;;+ `1F:EE65:20 9A EE JSR field::load_and_draw_string` @ $3f:ee65 field::stream_string_in_window
;;+ `3c:9116 jmp $EE9A ` @ some menu content
;;+ `3d:a682 jmp $EE9A ` @ $3d:a678 menu.draw_window_content
field_x.load_and_draw_string_without_border:
FIX_ADDR_ON_CALLER $3e, $c036+1
.ifdef _FEATURE_DEFERRED_RENDERING
;; opening title roll should be rendered without border.
;; however, this call is made after a call into 'menu.get_window_content_metrics'.
;; as of patch version 0.8.2, that function does equivalent initialization.
;; so we no longer need do it again here.
;jsr render_x.init_as_no_borders
.endif ;;_FEATURE_DEFERRED_RENDERING
field.load_and_draw_string: ;;$ee9a
;; fixups.
FIX_ADDR_ON_CALLER $3c, $9116+1 ;;menu content
FIX_ADDR_ON_CALLER $3d, $a682+1 ;;menu content. called when shop offerings is about to open.
;FIX_ADDR_ON_CALLER $3e, $c036+1
;; ---
.p_text = $3e
.text_id = $92
.text_bank = $93
.p_text_table = $94 ;;stores offset from $30000(18:8000) to the text
;; ---
lda <.text_id
ldx <.p_text_table+1
ldy <.p_text_table
;; unlike the original implementation, the below function destructs $80,81.
;; as these are generic temporary variable, this should be fine.
jsr textd_x.load_text_ptr
;; here A = text_bank.
sta <.text_bank
;FALL_THROUGH_TO field.draw_string_in_window
FALL_THROUGH_TO render_x.defer_window_text_with_border
;------------------------------------------------------------------------------------------------------
render_x.defer_window_text_with_border:
.ifdef _FEATURE_DEFERRED_RENDERING
;; request deferred rendering with borders.
;ldx #(render_x.PENDING_INIT|render_x.RENDER_RUNNING|render_x.NEED_TOP_BORDER|render_x.NEED_BOTTOM_BORDER)
.flags1 = render_x.PENDING_INIT|render_x.RENDER_RUNNING
.init_flags = .flags1 | render_x.NEED_TOP_BORDER|render_x.NEED_BOTTOM_BORDER|render_x.NEED_ATTRIBUTES
ldx #(.init_flags)
jsr render_x.setup_deferred_rendering
.endif ;_FEATURE_DEFERRED_RENDERING
;------------------------------------------------------------------------------------------------------
;INIT_PATCH $3f,$eec0,$eefa
;;# $3f:eec0 field.draw_string_in_window
;;
;;
;;### args:
;;+ [in] ptr $3e : string offset
;;+ [in] u8 $93 : string bank
;;+ [out] bool carry: more_to_draw
;;
;;### callers:
;;+ `1F:EB61:20 C0 EE JSR field::draw_string_in_window` @ $3f:eb61 field.reflect_window_scroll
;;+ `1F:EE80:20 C0 EE JSR field::draw_string_in_window` @ $3f:ee65 field::stream_string_in_window
;;+ `1F:EEBE:85 93 STA field.window_text_bank = #$18` (fall through)@ $3f:ee9a field::load_and_draw_string
field.draw_string_in_window: ;;$eec0
;; fixups.
;; every caller is implemented within this file.
;; ---
.output_index = $90
.text_bank = $93
.p_text = $3e
.p_text_line = $1c
.menu_item_continue_building = $1e
.lines_drawn = $1f
;; ---
.program_bank = $57
;; --- window related
.in_menu_mode = $37
.window_left = $38
.window_top = $39
.offset_x = $3a
.offset_y = $3b
.window_width = $3c
.window_height = $3d
;; ---
lda <.text_bank
jsr call_switch_2banks ;$FF03
lda <.p_text
sta <.p_text_line
lda <.p_text+1
sta <.p_text_line+1
lda <.window_left ;$38
sta <.offset_x ;$3A
lda <.window_top ;$39
sta <.offset_y ;$3B
jsr field.calc_draw_width_and_init_window_tile_buffer ;$f670
lda #$00
sta <.output_index ;$90
sta <.lines_drawn ;$1F
sta <.menu_item_continue_building ;$1e
jsr textd.draw_in_box ;$eefa
bcc .completed
;$eef3
.more_to_draw:
jmp field_x.restore_banks_with_carry_set
;lda <.program_bank ; $57
;jsr call_switch_2banks ;$FF03
;sec
;rts
.completed:
.ifdef _FEATURE_DEFERRED_RENDERING
jsr render_x.fill_to_bottom
.else
jsr field.draw_window_content ;$f692
.endif
;lda <.program_bank ; $57
;jsr call_switch_2banks ;$FF03
jmp field.restore_banks ;carry will be implictly cleared
;$eef1
;field_x.clc_return:
;FIX_OFFSET_ON_CALLER $3f,$eefe+1
; clc
; rts
;--------------------------------------------------------------------------------------------------
;VERIFY_PC $eefa
VERIFY_PC_TO_PATCH_END field.window.driver
field.window.driver.BULK_PATCH_FREE_BEGIN:
.endif ;_OPTIMIZE_FIELD_WINDOW
;======================================================================================================
;RESTORE_PC ff3_field_window_driver_begin
| 33.522477
| 113
| 0.619411
|
5b33b107f78c962b8836e602e62065d04558b24a
| 347
|
asm
|
Assembly
|
programs/oeis/053/A053841.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/053/A053841.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/053/A053841.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A053841: (Sum of digits of n written in base 6) modulo 6.
; 0,1,2,3,4,5,1,2,3,4,5,0,2,3,4,5,0,1,3,4,5,0,1,2,4,5,0,1,2,3,5,0,1,2,3,4,1,2,3,4,5,0,2,3,4,5,0,1,3,4,5,0,1,2,4,5,0,1,2,3,5,0,1,2,3,4,0,1,2,3,4,5,2,3,4,5,0,1,3,4,5,0,1,2,4,5,0,1,2,3,5,0,1,2,3,4,0,1,2,3,4,5,1,2,3
mov $3,$0
lpb $0
sub $0,1
add $2,$3
div $3,6
lpe
mod $2,6
add $1,$2
| 28.916667
| 211
| 0.530259
|
8ad42e8bc7fdc576e3597f44673763be0b1384cd
| 540
|
asm
|
Assembly
|
programs/oeis/183/A183872.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/183/A183872.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/183/A183872.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A183872: n+floor(sqrt(5n)); complement of A183873.
; 3,5,6,8,10,11,12,14,15,17,18,19,21,22,23,24,26,27,28,30,31,32,33,34,36,37,38,39,41,42,43,44,45,47,48,49,50,51,52,54,55,56,57,58,60,61,62,63,64,65,66,68,69,70,71,72,73,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,92,93,94,95,96,97,98,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,119,120,121,122
mov $1,3
mov $2,$0
add $2,$0
mul $2,2
mov $3,$0
add $0,$2
mov $4,4
lpb $0
sub $0,4
add $1,1
add $4,2
trn $0,$4
add $0,3
lpe
lpb $3
add $1,1
sub $3,1
lpe
| 24.545455
| 318
| 0.627778
|
c13fbf199ee8eac1a01e8f100eefd9bb3a73eaa4
| 2,043
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/z80/core/mm48_sqr.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/math/float/math48/z80/core/mm48_sqr.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/math/float/math48/z80/core/mm48_sqr.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC mm48_sqr
EXTERN am48_derror_edom_zc
EXTERN mm48_equal, mm48_fpdiv, mm48_fpadd, mm48_fpsub, mm48__add10
mm48_sqr:
; square root
; AC' = SQR(AC')
;
; enter : AC'(BCDEHL') = float x
;
; exit : success
;
; AC' = SQR(x)
; carry reset
;
; fail if domain error
;
; AC' = 0
; carry set
;
; uses : af, af', bc', de', hl'
;Kvadratroden beregnes med Newton-Raphson
;iterationsmetoden. Et gaet udregnes ud fra
;det foregaaende gaet efter formelen:
;I(n+1)=(X/I(n)+I(n))/2.
;Som foerste gaet halveres X's exponent.
;Der fortsaettes indtil ABS(I(n+1)-I(n)) er
;mindre end den halve exponent af X minus 20.
exx
; AC = x
ld a,b
inc l
dec l
exx
ret z ; if x == 0
or a
jp m, am48_derror_edom_zc ; if x < 0
push bc ; save AC
push de
push hl
exx
call mm48_equal
ld a,l ;Foerste iteration:
add a,$80 ;halver exponenten
sra a
add a,$80
ld l,a ;Sammenligningsvaerdi
sub 20 ;er den halve exponent
push af ;Gem s.vaerdi
exx
mm48__sqr1:
; AC = x
; AC'= y
push bc ;Gem tallet
push de ;(push x)
push hl
exx
; AC = y
; AC'= x
call mm48_fpdiv ;Divider med og adder
call mm48_fpadd ;forrige gaet
exx
; AC = x
; AC'= y
dec l ;Halver
call mm48_fpsub
exx
ld a,l
; AC'= x
pop hl ;Hent tallet
pop de ;(pop x)
pop bc
ex (sp),hl ;Hent s.vaerdi ind i H
cp h
ex (sp),hl ;Fortsaet indtil forsk.
jr nc, mm48__sqr1 ;er lille nok
; AC'= result
pop af
or a
jp mm48__add10 + 1
| 17.461538
| 66
| 0.470387
|
a2a2038a02832a9dddcdf7f819fc0b2ee470d3f5
| 675
|
asm
|
Assembly
|
oeis/059/A059171.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/059/A059171.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/059/A059171.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A059171: Size of largest conjugacy class in S_n, the symmetric group on n symbols.
; 1,1,3,8,30,144,840,5760,45360,403200,3991680,43545600,518918400,6706022400,93405312000,1394852659200,22230464256000,376610217984000,6758061133824000,128047474114560000,2554547108585472000,53523844179886080000,1175091669949317120000,26976017466662584320000,646300418472124416000000,16131658445064225423360000,418802671169936621568000000,11292160911544957796352000000,315777214062132212662272000000,9146650338351415815045120000000,274094621805930760590852096000000,8488091513990113876361871360000000
lpb $0
add $1,$2
bin $2,$1
mul $1,$0
sub $0,1
add $1,$0
lpe
mov $0,$1
add $0,1
| 51.923077
| 499
| 0.85037
|
b7a582cce8b6da60d5d133c0380c2f85e9c52cb4
| 505
|
asm
|
Assembly
|
Miei-sorgenti/old/Terza lezione/intsuccessivo.asm
|
DigiOhhh/LabArchitettura2-2017-2018
|
da34b9a75ab2945ac70d5cbf69395d0db5172f6f
|
[
"MIT"
] | 1
|
2019-03-06T13:26:10.000Z
|
2019-03-06T13:26:10.000Z
|
Miei-sorgenti/new/Terza lezione/Versione 1/intsuccessivo.asm
|
DigiOhhh/LabArchitettura2-2017-2018
|
da34b9a75ab2945ac70d5cbf69395d0db5172f6f
|
[
"MIT"
] | null | null | null |
Miei-sorgenti/new/Terza lezione/Versione 1/intsuccessivo.asm
|
DigiOhhh/LabArchitettura2-2017-2018
|
da34b9a75ab2945ac70d5cbf69395d0db5172f6f
|
[
"MIT"
] | 1
|
2019-03-06T13:25:28.000Z
|
2019-03-06T13:25:28.000Z
|
# Si scriva codice assembly che:
# chieda all’utente di inserire un intero (messaggio su terminale);
# acquisisca un intero da terminale;
# calcoli l’intero successivo;
# mostri all’utente il risultato (messaggio su terminale).
.data
str: .asciiz "Inserisci un intero: "
end: .asciiz "L'intero successivo è: "
.text
.globl main
main:
la $a0, str
li $v0, 4
syscall
li $v0, 5
syscall
move $s0, $v0
addi $s0, $s0, 1
la $a0, end
li $v0, 4
syscall
move $a0, $s0
li $v0, 1
syscall
| 15.78125
| 67
| 0.669307
|
ac21447b39cec8324b08f3c8f4519f489747daaa
| 617
|
asm
|
Assembly
|
oeis/082/A082413.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/082/A082413.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/082/A082413.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A082413: a(n) = (2*9^n + 3^n)/3.
; 1,7,57,495,4401,39447,354537,3189375,28700001,258286887,2324542617,20920765455,188286534801,1694577750327,15251196564297,137260759512735,1235346806916801,11118121176157767,100063090327139577,900567812169415215,8105110307200214001,72945992757828357207,656513934799534508457,5908625413133048456895,53177628718009149754401,478598658461517488716647,4307387926151962821230937,38766491335362581659421775,348898422018247983739826001,3140085798164186100073524087,28260772183477537639906987017
mov $2,3
pow $2,$0
mov $1,$2
div $1,2
pow $2,2
add $1,$2
div $1,3
mul $1,2
add $1,1
mov $0,$1
| 44.071429
| 486
| 0.841167
|
bde49f92f79f5b9f81ad26803e01bb04d367ad47
| 198,399
|
asm
|
Assembly
|
Debug/SSD.asm
|
polamagdygeo/uWave
|
88b5438735be6fc653deda1939ac978fd2aac740
|
[
"MIT"
] | null | null | null |
Debug/SSD.asm
|
polamagdygeo/uWave
|
88b5438735be6fc653deda1939ac978fd2aac740
|
[
"MIT"
] | null | null | null |
Debug/SSD.asm
|
polamagdygeo/uWave
|
88b5438735be6fc653deda1939ac978fd2aac740
|
[
"MIT"
] | null | null | null |
;******************************************************************************
;* TI ARM C/C++ Codegen Unix v18.1.1.LTS *
;* Date/Time created: Fri Jul 3 20:08:21 2020 *
;******************************************************************************
.compiler_opts --abi=eabi --arm_vmrs_si_workaround=off --code_state=16 --diag_wrap=off --embedded_constants=on --endian=little --float_support=FPv4SPD16 --hll_source=on --object_format=elf --silicon_version=7M4 --symdebug:dwarf --symdebug:dwarf_version=3 --unaligned_access=on
.thumb
$C$DW$CU .dwtag DW_TAG_compile_unit
.dwattr $C$DW$CU, DW_AT_name("../SSD.c")
.dwattr $C$DW$CU, DW_AT_producer("TI TI ARM C/C++ Codegen Unix v18.1.1.LTS Copyright (c) 1996-2017 Texas Instruments Incorporated")
.dwattr $C$DW$CU, DW_AT_TI_version(0x01)
.dwattr $C$DW$CU, DW_AT_comp_dir("/home/pola/workspace_v8/Microwave/Debug")
.sect ".data:SSD_Number", RW
.clink
.align 1
.elfsym SSD_Number,SYM_SIZE(4)
SSD_Number:
.bits 0,8 ; SSD_Number[0] @ 0
.bits 0,8
$C$DW$1 .dwtag DW_TAG_variable
.dwattr $C$DW$1, DW_AT_name("SSD_Number")
.dwattr $C$DW$1, DW_AT_TI_symbol_name("SSD_Number")
.dwattr $C$DW$1, DW_AT_type(*$C$DW$T$93)
.dwattr $C$DW$1, DW_AT_location[DW_OP_addr SSD_Number]
.dwattr $C$DW$1, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$1, DW_AT_decl_line(0x18)
.dwattr $C$DW$1, DW_AT_decl_column(0x14)
.sect ".data:Blinking_State", RW
.clink
.align 1
.elfsym Blinking_State,SYM_SIZE(4)
Blinking_State:
.bits 0,8 ; Blinking_State[0] @ 0
.bits 0,8 ; Blinking_State[1] @ 8
$C$DW$2 .dwtag DW_TAG_variable
.dwattr $C$DW$2, DW_AT_name("Blinking_State")
.dwattr $C$DW$2, DW_AT_TI_symbol_name("Blinking_State")
.dwattr $C$DW$2, DW_AT_type(*$C$DW$T$58)
.dwattr $C$DW$2, DW_AT_location[DW_OP_addr Blinking_State]
.dwattr $C$DW$2, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$2, DW_AT_decl_line(0x19)
.dwattr $C$DW$2, DW_AT_decl_column(0x10)
.sect ".data:Blinking_Counter", RW
.clink
.align 4
.elfsym Blinking_Counter,SYM_SIZE(8)
Blinking_Counter:
.bits 0,32 ; Blinking_Counter[0] @ 0
.bits 0,32
$C$DW$3 .dwtag DW_TAG_variable
.dwattr $C$DW$3, DW_AT_name("Blinking_Counter")
.dwattr $C$DW$3, DW_AT_TI_symbol_name("Blinking_Counter")
.dwattr $C$DW$3, DW_AT_type(*$C$DW$T$201)
.dwattr $C$DW$3, DW_AT_location[DW_OP_addr Blinking_Counter]
.dwattr $C$DW$3, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$3, DW_AT_decl_line(0x1a)
.dwattr $C$DW$3, DW_AT_decl_column(0x11)
$C$DW$4 .dwtag DW_TAG_subprogram
.dwattr $C$DW$4, DW_AT_name("GPIODirModeSet")
.dwattr $C$DW$4, DW_AT_TI_symbol_name("GPIODirModeSet")
.dwattr $C$DW$4, DW_AT_declaration
.dwattr $C$DW$4, DW_AT_external
.dwattr $C$DW$4, DW_AT_decl_file("../driverlib/gpio.h")
.dwattr $C$DW$4, DW_AT_decl_line(0x90)
.dwattr $C$DW$4, DW_AT_decl_column(0x0d)
$C$DW$5 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$5, DW_AT_type(*$C$DW$T$40)
$C$DW$6 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$6, DW_AT_type(*$C$DW$T$29)
$C$DW$7 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$7, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$4
$C$DW$8 .dwtag DW_TAG_subprogram
.dwattr $C$DW$8, DW_AT_name("GPIOPadConfigSet")
.dwattr $C$DW$8, DW_AT_TI_symbol_name("GPIOPadConfigSet")
.dwattr $C$DW$8, DW_AT_declaration
.dwattr $C$DW$8, DW_AT_external
.dwattr $C$DW$8, DW_AT_decl_file("../driverlib/gpio.h")
.dwattr $C$DW$8, DW_AT_decl_line(0x96)
.dwattr $C$DW$8, DW_AT_decl_column(0x0d)
$C$DW$9 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$9, DW_AT_type(*$C$DW$T$40)
$C$DW$10 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$10, DW_AT_type(*$C$DW$T$29)
$C$DW$11 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$11, DW_AT_type(*$C$DW$T$40)
$C$DW$12 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$12, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$8
$C$DW$13 .dwtag DW_TAG_subprogram
.dwattr $C$DW$13, DW_AT_name("TimerConfigure")
.dwattr $C$DW$13, DW_AT_TI_symbol_name("TimerConfigure")
.dwattr $C$DW$13, DW_AT_declaration
.dwattr $C$DW$13, DW_AT_external
.dwattr $C$DW$13, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$13, DW_AT_decl_line(0xf7)
.dwattr $C$DW$13, DW_AT_decl_column(0x0d)
$C$DW$14 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$14, DW_AT_type(*$C$DW$T$40)
$C$DW$15 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$15, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$13
$C$DW$16 .dwtag DW_TAG_subprogram
.dwattr $C$DW$16, DW_AT_name("TimerPrescaleSet")
.dwattr $C$DW$16, DW_AT_TI_symbol_name("TimerPrescaleSet")
.dwattr $C$DW$16, DW_AT_declaration
.dwattr $C$DW$16, DW_AT_external
.dwattr $C$DW$16, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$16, DW_AT_decl_line(0x104)
.dwattr $C$DW$16, DW_AT_decl_column(0x0d)
$C$DW$17 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$17, DW_AT_type(*$C$DW$T$40)
$C$DW$18 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$18, DW_AT_type(*$C$DW$T$40)
$C$DW$19 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$19, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$16
$C$DW$20 .dwtag DW_TAG_subprogram
.dwattr $C$DW$20, DW_AT_name("TimerClockSourceSet")
.dwattr $C$DW$20, DW_AT_TI_symbol_name("TimerClockSourceSet")
.dwattr $C$DW$20, DW_AT_declaration
.dwattr $C$DW$20, DW_AT_external
.dwattr $C$DW$20, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$20, DW_AT_decl_line(0x11f)
.dwattr $C$DW$20, DW_AT_decl_column(0x0d)
$C$DW$21 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$21, DW_AT_type(*$C$DW$T$40)
$C$DW$22 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$22, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$20
$C$DW$23 .dwtag DW_TAG_subprogram
.dwattr $C$DW$23, DW_AT_name("TimerLoadSet")
.dwattr $C$DW$23, DW_AT_TI_symbol_name("TimerLoadSet")
.dwattr $C$DW$23, DW_AT_declaration
.dwattr $C$DW$23, DW_AT_external
.dwattr $C$DW$23, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$23, DW_AT_decl_line(0x10a)
.dwattr $C$DW$23, DW_AT_decl_column(0x0d)
$C$DW$24 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$24, DW_AT_type(*$C$DW$T$40)
$C$DW$25 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$25, DW_AT_type(*$C$DW$T$40)
$C$DW$26 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$26, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$23
$C$DW$27 .dwtag DW_TAG_subprogram
.dwattr $C$DW$27, DW_AT_name("TimerUpdateMode")
.dwattr $C$DW$27, DW_AT_TI_symbol_name("TimerUpdateMode")
.dwattr $C$DW$27, DW_AT_declaration
.dwattr $C$DW$27, DW_AT_external
.dwattr $C$DW$27, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$27, DW_AT_decl_line(0x124)
.dwattr $C$DW$27, DW_AT_decl_column(0x0d)
$C$DW$28 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$28, DW_AT_type(*$C$DW$T$40)
$C$DW$29 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$29, DW_AT_type(*$C$DW$T$40)
$C$DW$30 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$30, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$27
$C$DW$31 .dwtag DW_TAG_subprogram
.dwattr $C$DW$31, DW_AT_name("TimerIntRegister")
.dwattr $C$DW$31, DW_AT_TI_symbol_name("TimerIntRegister")
.dwattr $C$DW$31, DW_AT_declaration
.dwattr $C$DW$31, DW_AT_external
.dwattr $C$DW$31, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$31, DW_AT_decl_line(0x116)
.dwattr $C$DW$31, DW_AT_decl_column(0x0d)
$C$DW$32 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$32, DW_AT_type(*$C$DW$T$40)
$C$DW$33 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$33, DW_AT_type(*$C$DW$T$40)
$C$DW$34 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$34, DW_AT_type(*$C$DW$T$105)
.dwendtag $C$DW$31
$C$DW$35 .dwtag DW_TAG_subprogram
.dwattr $C$DW$35, DW_AT_name("TimerIntEnable")
.dwattr $C$DW$35, DW_AT_TI_symbol_name("TimerIntEnable")
.dwattr $C$DW$35, DW_AT_declaration
.dwattr $C$DW$35, DW_AT_external
.dwattr $C$DW$35, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$35, DW_AT_decl_line(0x119)
.dwattr $C$DW$35, DW_AT_decl_column(0x0d)
$C$DW$36 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$36, DW_AT_type(*$C$DW$T$40)
$C$DW$37 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$37, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$35
$C$DW$38 .dwtag DW_TAG_subprogram
.dwattr $C$DW$38, DW_AT_name("TimerIntClear")
.dwattr $C$DW$38, DW_AT_TI_symbol_name("TimerIntClear")
.dwattr $C$DW$38, DW_AT_declaration
.dwattr $C$DW$38, DW_AT_external
.dwattr $C$DW$38, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$38, DW_AT_decl_line(0x11c)
.dwattr $C$DW$38, DW_AT_decl_column(0x0d)
$C$DW$39 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$39, DW_AT_type(*$C$DW$T$40)
$C$DW$40 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$40, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$38
$C$DW$41 .dwtag DW_TAG_subprogram
.dwattr $C$DW$41, DW_AT_name("TimerDisable")
.dwattr $C$DW$41, DW_AT_TI_symbol_name("TimerDisable")
.dwattr $C$DW$41, DW_AT_declaration
.dwattr $C$DW$41, DW_AT_external
.dwattr $C$DW$41, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$41, DW_AT_decl_line(0xf6)
.dwattr $C$DW$41, DW_AT_decl_column(0x0d)
$C$DW$42 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$42, DW_AT_type(*$C$DW$T$40)
$C$DW$43 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$43, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$41
$C$DW$44 .dwtag DW_TAG_subprogram
.dwattr $C$DW$44, DW_AT_name("TimerEnable")
.dwattr $C$DW$44, DW_AT_TI_symbol_name("TimerEnable")
.dwattr $C$DW$44, DW_AT_declaration
.dwattr $C$DW$44, DW_AT_external
.dwattr $C$DW$44, DW_AT_decl_file("../driverlib/timer.h")
.dwattr $C$DW$44, DW_AT_decl_line(0xf5)
.dwattr $C$DW$44, DW_AT_decl_column(0x0d)
$C$DW$45 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$45, DW_AT_type(*$C$DW$T$40)
$C$DW$46 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$46, DW_AT_type(*$C$DW$T$40)
.dwendtag $C$DW$44
$C$DW$47 .dwtag DW_TAG_subprogram
.dwattr $C$DW$47, DW_AT_name("GPIOPinWrite")
.dwattr $C$DW$47, DW_AT_TI_symbol_name("GPIOPinWrite")
.dwattr $C$DW$47, DW_AT_declaration
.dwattr $C$DW$47, DW_AT_external
.dwattr $C$DW$47, DW_AT_decl_file("../driverlib/gpio.h")
.dwattr $C$DW$47, DW_AT_decl_line(0xa4)
.dwattr $C$DW$47, DW_AT_decl_column(0x0d)
$C$DW$48 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$48, DW_AT_type(*$C$DW$T$40)
$C$DW$49 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$49, DW_AT_type(*$C$DW$T$29)
$C$DW$50 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$50, DW_AT_type(*$C$DW$T$29)
.dwendtag $C$DW$47
$C$DW$51 .dwtag DW_TAG_subprogram
.dwattr $C$DW$51, DW_AT_name("vPortEnterCritical")
.dwattr $C$DW$51, DW_AT_TI_symbol_name("vPortEnterCritical")
.dwattr $C$DW$51, DW_AT_declaration
.dwattr $C$DW$51, DW_AT_external
.dwattr $C$DW$51, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$51, DW_AT_decl_line(0x76)
.dwattr $C$DW$51, DW_AT_decl_column(0x0d)
.dwendtag $C$DW$51
$C$DW$52 .dwtag DW_TAG_subprogram
.dwattr $C$DW$52, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$52, DW_AT_TI_symbol_name("vPortExitCritical")
.dwattr $C$DW$52, DW_AT_declaration
.dwattr $C$DW$52, DW_AT_external
.dwattr $C$DW$52, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$52, DW_AT_decl_line(0x77)
.dwattr $C$DW$52, DW_AT_decl_column(0x0d)
.dwendtag $C$DW$52
.data
.align 1
.elfsym ssd_itr$1,SYM_SIZE(1)
ssd_itr$1:
.bits 0,8 ; ssd_itr$1 @ 0
; /home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armacpia -@/tmp/TI3KIhljrHO
.sect ".text"
.clink
.thumbfunc SSD_Init
.thumb
.global SSD_Init
$C$DW$53 .dwtag DW_TAG_subprogram
.dwattr $C$DW$53, DW_AT_name("SSD_Init")
.dwattr $C$DW$53, DW_AT_low_pc(SSD_Init)
.dwattr $C$DW$53, DW_AT_high_pc(0x00)
.dwattr $C$DW$53, DW_AT_TI_symbol_name("SSD_Init")
.dwattr $C$DW$53, DW_AT_external
.dwattr $C$DW$53, DW_AT_TI_begin_file("../SSD.c")
.dwattr $C$DW$53, DW_AT_TI_begin_line(0x1e)
.dwattr $C$DW$53, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$53, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$53, DW_AT_decl_line(0x1e)
.dwattr $C$DW$53, DW_AT_decl_column(0x06)
.dwattr $C$DW$53, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../SSD.c",line 31,column 1,is_stmt,address SSD_Init,isa 1
.dwfde $C$DW$CIE, SSD_Init
;----------------------------------------------------------------------
; 30 | void SSD_Init(void)
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: SSD_Init *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 0 Auto + 4 Save = 4 byte *
;*****************************************************************************
SSD_Init:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
.dwpsn file "../SSD.c",line 32,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 32 | GPIODirModeSet(SSD_EN_PORT, 1 << SSD_EN1_PIN | 1 << SSD_EN2_PIN, GPIO_D
; | IR_MODE_OUT);
;----------------------------------------------------------------------
LDR A1, $C$CON1 ; [DPU_V7M3_PIPE] |32|
MOVS A2, #12 ; [DPU_V7M3_PIPE] |32|
MOVS A3, #1 ; [DPU_V7M3_PIPE] |32|
$C$DW$54 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$54, DW_AT_low_pc(0x00)
.dwattr $C$DW$54, DW_AT_name("GPIODirModeSet")
.dwattr $C$DW$54, DW_AT_TI_call
BL GPIODirModeSet ; [DPU_V7M3_PIPE] |32|
; CALL OCCURS {GPIODirModeSet } ; [] |32|
.dwpsn file "../SSD.c",line 33,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 33 | GPIOPadConfigSet(SSD_EN_PORT, 1 << SSD_EN1_PIN | 1 << SSD_EN2_PIN,GPIO_
; | STRENGTH_2MA,GPIO_PIN_TYPE_STD);
;----------------------------------------------------------------------
LDR A1, $C$CON1 ; [DPU_V7M3_PIPE] |33|
MOVS A2, #12 ; [DPU_V7M3_PIPE] |33|
MOVS A3, #1 ; [DPU_V7M3_PIPE] |33|
MOVS A4, #8 ; [DPU_V7M3_PIPE] |33|
$C$DW$55 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$55, DW_AT_low_pc(0x00)
.dwattr $C$DW$55, DW_AT_name("GPIOPadConfigSet")
.dwattr $C$DW$55, DW_AT_TI_call
BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |33|
; CALL OCCURS {GPIOPadConfigSet } ; [] |33|
.dwpsn file "../SSD.c",line 35,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 35 | GPIODirModeSet(SSD_DATA_PORT,SSD_DATA_MASK, GPIO_DIR_MODE_OUT);
;----------------------------------------------------------------------
LDR A1, $C$CON2 ; [DPU_V7M3_PIPE] |35|
MOVS A2, #15 ; [DPU_V7M3_PIPE] |35|
MOVS A3, #1 ; [DPU_V7M3_PIPE] |35|
$C$DW$56 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$56, DW_AT_low_pc(0x00)
.dwattr $C$DW$56, DW_AT_name("GPIODirModeSet")
.dwattr $C$DW$56, DW_AT_TI_call
BL GPIODirModeSet ; [DPU_V7M3_PIPE] |35|
; CALL OCCURS {GPIODirModeSet } ; [] |35|
.dwpsn file "../SSD.c",line 36,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 36 | GPIOPadConfigSet(SSD_DATA_PORT,SSD_DATA_MASK,GPIO_STRENGTH_2MA,GPIO_PIN
; | _TYPE_STD);
;----------------------------------------------------------------------
LDR A1, $C$CON2 ; [DPU_V7M3_PIPE] |36|
MOVS A2, #15 ; [DPU_V7M3_PIPE] |36|
MOVS A3, #1 ; [DPU_V7M3_PIPE] |36|
MOVS A4, #8 ; [DPU_V7M3_PIPE] |36|
$C$DW$57 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$57, DW_AT_low_pc(0x00)
.dwattr $C$DW$57, DW_AT_name("GPIOPadConfigSet")
.dwattr $C$DW$57, DW_AT_TI_call
BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |36|
; CALL OCCURS {GPIOPadConfigSet } ; [] |36|
.dwpsn file "../SSD.c",line 38,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 38 | SSD_SetSymbol(SSD_ONCE,SSD_NUMBER_ZERO);
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |38|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |38|
$C$DW$58 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$58, DW_AT_low_pc(0x00)
.dwattr $C$DW$58, DW_AT_name("SSD_SetSymbol")
.dwattr $C$DW$58, DW_AT_TI_call
BL SSD_SetSymbol ; [DPU_V7M3_PIPE] |38|
; CALL OCCURS {SSD_SetSymbol } ; [] |38|
.dwpsn file "../SSD.c",line 39,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 39 | SSD_SetSymbol(SSD_TENTH,SSD_NUMBER_ZERO);
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |39|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |39|
$C$DW$59 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$59, DW_AT_low_pc(0x00)
.dwattr $C$DW$59, DW_AT_name("SSD_SetSymbol")
.dwattr $C$DW$59, DW_AT_TI_call
BL SSD_SetSymbol ; [DPU_V7M3_PIPE] |39|
; CALL OCCURS {SSD_SetSymbol } ; [] |39|
.dwpsn file "../SSD.c",line 42,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 42 | TimerConfigure(TIMER1_BASE,
; 43 | TIMER_CFG_SPLIT_PAIR |
; 44 | TIMER_CFG_A_PERIODIC |
; 45 | TIMER_CFG_B_PERIODIC |
; 46 | TIMER_CFG_A_ACT_NONE |
; 47 | TIMER_CFG_B_ACT_NONE);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |42|
LDR A2, $C$CON4 ; [DPU_V7M3_PIPE] |42|
$C$DW$60 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$60, DW_AT_low_pc(0x00)
.dwattr $C$DW$60, DW_AT_name("TimerConfigure")
.dwattr $C$DW$60, DW_AT_TI_call
BL TimerConfigure ; [DPU_V7M3_PIPE] |42|
; CALL OCCURS {TimerConfigure } ; [] |42|
.dwpsn file "../SSD.c",line 48,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 48 | TimerPrescaleSet(TIMER1_BASE,TIMER_A, 16);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |48|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |48|
MOVS A3, #16 ; [DPU_V7M3_PIPE] |48|
$C$DW$61 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$61, DW_AT_low_pc(0x00)
.dwattr $C$DW$61, DW_AT_name("TimerPrescaleSet")
.dwattr $C$DW$61, DW_AT_TI_call
BL TimerPrescaleSet ; [DPU_V7M3_PIPE] |48|
; CALL OCCURS {TimerPrescaleSet } ; [] |48|
.dwpsn file "../SSD.c",line 49,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 49 | TimerClockSourceSet(TIMER1_BASE,TIMER_CLOCK_SYSTEM);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |49|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |49|
$C$DW$62 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$62, DW_AT_low_pc(0x00)
.dwattr $C$DW$62, DW_AT_name("TimerClockSourceSet")
.dwattr $C$DW$62, DW_AT_TI_call
BL TimerClockSourceSet ; [DPU_V7M3_PIPE] |49|
; CALL OCCURS {TimerClockSourceSet } ; [] |49|
.dwpsn file "../SSD.c",line 50,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 50 | TimerLoadSet(TIMER1_BASE, TIMER_A,SSD_ISR_RATE_MS * 1000);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |50|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |50|
MOV A3, #10000 ; [DPU_V7M3_PIPE] |50|
$C$DW$63 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$63, DW_AT_low_pc(0x00)
.dwattr $C$DW$63, DW_AT_name("TimerLoadSet")
.dwattr $C$DW$63, DW_AT_TI_call
BL TimerLoadSet ; [DPU_V7M3_PIPE] |50|
; CALL OCCURS {TimerLoadSet } ; [] |50|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 51,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 51 | TimerUpdateMode(TIMER1_BASE,TIMER_A,TIMER_UP_LOAD_TIMEOUT);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |51|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |51|
MOV A3, #256 ; [DPU_V7M3_PIPE] |51|
$C$DW$64 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$64, DW_AT_low_pc(0x00)
.dwattr $C$DW$64, DW_AT_name("TimerUpdateMode")
.dwattr $C$DW$64, DW_AT_TI_call
BL TimerUpdateMode ; [DPU_V7M3_PIPE] |51|
; CALL OCCURS {TimerUpdateMode } ; [] |51|
.dwpsn file "../SSD.c",line 52,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 52 | TimerIntRegister(TIMER1_BASE, TIMER_A, SSD_ISR);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |52|
LDR A3, $C$CON5 ; [DPU_V7M3_PIPE] |52|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |52|
$C$DW$65 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$65, DW_AT_low_pc(0x00)
.dwattr $C$DW$65, DW_AT_name("TimerIntRegister")
.dwattr $C$DW$65, DW_AT_TI_call
BL TimerIntRegister ; [DPU_V7M3_PIPE] |52|
; CALL OCCURS {TimerIntRegister } ; [] |52|
.dwpsn file "../SSD.c",line 53,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 53 | TimerIntEnable(TIMER1_BASE, TIMER_TIMA_TIMEOUT);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |53|
MOVS A2, #1 ; [DPU_V7M3_PIPE] |53|
$C$DW$66 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$66, DW_AT_low_pc(0x00)
.dwattr $C$DW$66, DW_AT_name("TimerIntEnable")
.dwattr $C$DW$66, DW_AT_TI_call
BL TimerIntEnable ; [DPU_V7M3_PIPE] |53|
; CALL OCCURS {TimerIntEnable } ; [] |53|
.dwpsn file "../SSD.c",line 56,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 56 | TimerConfigure(TIMER2_BASE,
; 57 | TIMER_CFG_SPLIT_PAIR |
; 58 | TIMER_CFG_A_PERIODIC_UP |
; 59 | TIMER_CFG_B_PERIODIC_UP |
; 60 | TIMER_CFG_A_ACT_NONE |
; 61 | TIMER_CFG_B_ACT_NONE);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |56|
LDR A2, $C$CON7 ; [DPU_V7M3_PIPE] |56|
$C$DW$67 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$67, DW_AT_low_pc(0x00)
.dwattr $C$DW$67, DW_AT_name("TimerConfigure")
.dwattr $C$DW$67, DW_AT_TI_call
BL TimerConfigure ; [DPU_V7M3_PIPE] |56|
; CALL OCCURS {TimerConfigure } ; [] |56|
.dwpsn file "../SSD.c",line 62,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 62 | TimerPrescaleSet(TIMER2_BASE,TIMER_A, 16);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |62|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |62|
MOVS A3, #16 ; [DPU_V7M3_PIPE] |62|
$C$DW$68 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$68, DW_AT_low_pc(0x00)
.dwattr $C$DW$68, DW_AT_name("TimerPrescaleSet")
.dwattr $C$DW$68, DW_AT_TI_call
BL TimerPrescaleSet ; [DPU_V7M3_PIPE] |62|
; CALL OCCURS {TimerPrescaleSet } ; [] |62|
.dwpsn file "../SSD.c",line 63,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 63 | TimerClockSourceSet(TIMER2_BASE,TIMER_CLOCK_SYSTEM);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |63|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |63|
$C$DW$69 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$69, DW_AT_low_pc(0x00)
.dwattr $C$DW$69, DW_AT_name("TimerClockSourceSet")
.dwattr $C$DW$69, DW_AT_TI_call
BL TimerClockSourceSet ; [DPU_V7M3_PIPE] |63|
; CALL OCCURS {TimerClockSourceSet } ; [] |63|
.dwpsn file "../SSD.c",line 64,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 64 | TimerLoadSet(TIMER2_BASE, TIMER_A,160);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |64|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |64|
MOVS A3, #160 ; [DPU_V7M3_PIPE] |64|
$C$DW$70 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$70, DW_AT_low_pc(0x00)
.dwattr $C$DW$70, DW_AT_name("TimerLoadSet")
.dwattr $C$DW$70, DW_AT_TI_call
BL TimerLoadSet ; [DPU_V7M3_PIPE] |64|
; CALL OCCURS {TimerLoadSet } ; [] |64|
.dwpsn file "../SSD.c",line 65,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 65 | TimerIntRegister(TIMER2_BASE, TIMER_A, SSD_Start);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |65|
LDR A3, $C$CON8 ; [DPU_V7M3_PIPE] |65|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |65|
$C$DW$71 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$71, DW_AT_low_pc(0x00)
.dwattr $C$DW$71, DW_AT_name("TimerIntRegister")
.dwattr $C$DW$71, DW_AT_TI_call
BL TimerIntRegister ; [DPU_V7M3_PIPE] |65|
; CALL OCCURS {TimerIntRegister } ; [] |65|
.dwpsn file "../SSD.c",line 66,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 66 | TimerIntEnable(TIMER2_BASE, TIMER_TIMA_TIMEOUT);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |66|
MOVS A2, #1 ; [DPU_V7M3_PIPE] |66|
$C$DW$72 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$72, DW_AT_low_pc(0x00)
.dwattr $C$DW$72, DW_AT_name("TimerIntEnable")
.dwattr $C$DW$72, DW_AT_TI_call
BL TimerIntEnable ; [DPU_V7M3_PIPE] |66|
; CALL OCCURS {TimerIntEnable } ; [] |66|
.dwpsn file "../SSD.c",line 67,column 1,is_stmt,isa 1
$C$DW$73 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$73, DW_AT_low_pc(0x00)
.dwattr $C$DW$73, DW_AT_TI_return
POP {A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
; BRANCH OCCURS ; []
.dwattr $C$DW$53, DW_AT_TI_end_file("../SSD.c")
.dwattr $C$DW$53, DW_AT_TI_end_line(0x43)
.dwattr $C$DW$53, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$53
.sect ".text"
.clink
.thumbfunc SSD_Start
.thumb
.global SSD_Start
$C$DW$74 .dwtag DW_TAG_subprogram
.dwattr $C$DW$74, DW_AT_name("SSD_Start")
.dwattr $C$DW$74, DW_AT_low_pc(SSD_Start)
.dwattr $C$DW$74, DW_AT_high_pc(0x00)
.dwattr $C$DW$74, DW_AT_TI_symbol_name("SSD_Start")
.dwattr $C$DW$74, DW_AT_external
.dwattr $C$DW$74, DW_AT_TI_begin_file("../SSD.c")
.dwattr $C$DW$74, DW_AT_TI_begin_line(0x45)
.dwattr $C$DW$74, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$74, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$74, DW_AT_decl_line(0x45)
.dwattr $C$DW$74, DW_AT_decl_column(0x06)
.dwattr $C$DW$74, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../SSD.c",line 70,column 1,is_stmt,address SSD_Start,isa 1
.dwfde $C$DW$CIE, SSD_Start
;----------------------------------------------------------------------
; 69 | void SSD_Start(void)
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: SSD_Start *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 0 Auto + 4 Save = 4 byte *
;*****************************************************************************
SSD_Start:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
.dwpsn file "../SSD.c",line 71,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 71 | TimerIntClear(TIMER2_BASE, TIMER_TIMA_TIMEOUT);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |71|
MOVS A2, #1 ; [DPU_V7M3_PIPE] |71|
$C$DW$75 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$75, DW_AT_low_pc(0x00)
.dwattr $C$DW$75, DW_AT_name("TimerIntClear")
.dwattr $C$DW$75, DW_AT_TI_call
BL TimerIntClear ; [DPU_V7M3_PIPE] |71|
; CALL OCCURS {TimerIntClear } ; [] |71|
.dwpsn file "../SSD.c",line 72,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 72 | TimerDisable(TIMER2_BASE, TIMER_A);
;----------------------------------------------------------------------
LDR A1, $C$CON6 ; [DPU_V7M3_PIPE] |72|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |72|
$C$DW$76 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$76, DW_AT_low_pc(0x00)
.dwattr $C$DW$76, DW_AT_name("TimerDisable")
.dwattr $C$DW$76, DW_AT_TI_call
BL TimerDisable ; [DPU_V7M3_PIPE] |72|
; CALL OCCURS {TimerDisable } ; [] |72|
.dwpsn file "../SSD.c",line 73,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 73 | TimerEnable(TIMER1_BASE, TIMER_A);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |73|
MOVS A2, #255 ; [DPU_V7M3_PIPE] |73|
$C$DW$77 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$77, DW_AT_low_pc(0x00)
.dwattr $C$DW$77, DW_AT_name("TimerEnable")
.dwattr $C$DW$77, DW_AT_TI_call
BL TimerEnable ; [DPU_V7M3_PIPE] |73|
; CALL OCCURS {TimerEnable } ; [] |73|
.dwpsn file "../SSD.c",line 74,column 1,is_stmt,isa 1
$C$DW$78 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$78, DW_AT_low_pc(0x00)
.dwattr $C$DW$78, DW_AT_TI_return
POP {A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
; BRANCH OCCURS ; []
.dwattr $C$DW$74, DW_AT_TI_end_file("../SSD.c")
.dwattr $C$DW$74, DW_AT_TI_end_line(0x4a)
.dwattr $C$DW$74, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$74
.sect ".text"
.clink
.thumbfunc SSD_ShowNumber
.thumb
$C$DW$79 .dwtag DW_TAG_subprogram
.dwattr $C$DW$79, DW_AT_name("SSD_ShowNumber")
.dwattr $C$DW$79, DW_AT_low_pc(SSD_ShowNumber)
.dwattr $C$DW$79, DW_AT_high_pc(0x00)
.dwattr $C$DW$79, DW_AT_TI_symbol_name("SSD_ShowNumber")
.dwattr $C$DW$79, DW_AT_TI_begin_file("../SSD.c")
.dwattr $C$DW$79, DW_AT_TI_begin_line(0x4c)
.dwattr $C$DW$79, DW_AT_TI_begin_column(0x0d)
.dwattr $C$DW$79, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$79, DW_AT_decl_line(0x4c)
.dwattr $C$DW$79, DW_AT_decl_column(0x0d)
.dwattr $C$DW$79, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../SSD.c",line 77,column 1,is_stmt,address SSD_ShowNumber,isa 1
.dwfde $C$DW$CIE, SSD_ShowNumber
$C$DW$80 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$80, DW_AT_name("ssd")
.dwattr $C$DW$80, DW_AT_TI_symbol_name("ssd")
.dwattr $C$DW$80, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$80, DW_AT_location[DW_OP_reg0]
$C$DW$81 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$81, DW_AT_name("number")
.dwattr $C$DW$81, DW_AT_TI_symbol_name("number")
.dwattr $C$DW$81, DW_AT_type(*$C$DW$T$92)
.dwattr $C$DW$81, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 76 | static void SSD_ShowNumber(tSSD ssd,tSSD_Symbol number)
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: SSD_ShowNumber *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 4 Auto + 4 Save = 8 byte *
;*****************************************************************************
SSD_ShowNumber:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
$C$DW$82 .dwtag DW_TAG_variable
.dwattr $C$DW$82, DW_AT_name("ssd")
.dwattr $C$DW$82, DW_AT_TI_symbol_name("ssd")
.dwattr $C$DW$82, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$82, DW_AT_location[DW_OP_breg13 0]
$C$DW$83 .dwtag DW_TAG_variable
.dwattr $C$DW$83, DW_AT_name("number")
.dwattr $C$DW$83, DW_AT_TI_symbol_name("number")
.dwattr $C$DW$83, DW_AT_type(*$C$DW$T$92)
.dwattr $C$DW$83, DW_AT_location[DW_OP_breg13 1]
STRB A2, [SP, #1] ; [DPU_V7M3_PIPE] |77|
STRB A1, [SP, #0] ; [DPU_V7M3_PIPE] |77|
.dwpsn file "../SSD.c",line 78,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 78 | if(number <= SSD_NUMBER_NULL)
;----------------------------------------------------------------------
LDRB A1, [SP, #1] ; [DPU_V7M3_PIPE] |78|
CMP A1, #10 ; [DPU_V7M3_PIPE] |78|
BGT ||$C$L4|| ; [DPU_V7M3_PIPE] |78|
; BRANCHCC OCCURS {||$C$L4||} ; [] |78|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 80,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 80 | if(number == SSD_NUMBER_NULL)
;----------------------------------------------------------------------
LDRB A1, [SP, #1] ; [DPU_V7M3_PIPE] |80|
CMP A1, #10 ; [DPU_V7M3_PIPE] |80|
BNE ||$C$L1|| ; [DPU_V7M3_PIPE] |80|
; BRANCHCC OCCURS {||$C$L1||} ; [] |80|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 82,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 82 | GPIOPinWrite(SSD_EN_PORT, 1 << SSD_EN1_PIN | 1 << SSD_EN2_PIN , 0 << SS
; | D_EN1_PIN | 0 << SSD_EN2_PIN);
;----------------------------------------------------------------------
LDR A1, $C$CON1 ; [DPU_V7M3_PIPE] |82|
MOVS A2, #12 ; [DPU_V7M3_PIPE] |82|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |82|
$C$DW$84 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$84, DW_AT_low_pc(0x00)
.dwattr $C$DW$84, DW_AT_name("GPIOPinWrite")
.dwattr $C$DW$84, DW_AT_TI_call
BL GPIOPinWrite ; [DPU_V7M3_PIPE] |82|
; CALL OCCURS {GPIOPinWrite } ; [] |82|
.dwpsn file "../SSD.c",line 83,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 84 | else
;----------------------------------------------------------------------
B ||$C$L4|| ; [DPU_V7M3_PIPE] |83|
; BRANCH OCCURS {||$C$L4||} ; [] |83|
;* --------------------------------------------------------------------------*
||$C$L1||:
.dwpsn file "../SSD.c",line 86,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 86 | if(ssd == SSD_ONCE)
;----------------------------------------------------------------------
LDRB A1, [SP, #0] ; [DPU_V7M3_PIPE] |86|
CBNZ A1, ||$C$L2|| ; []
; BRANCHCC OCCURS {||$C$L2||} ; [] |86|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 88,column 17,is_stmt,isa 1
;----------------------------------------------------------------------
; 88 | GPIOPinWrite(SSD_EN_PORT, 1 << SSD_EN1_PIN | 1 << SSD_EN2_PIN , 1 << SS
; | D_EN1_PIN | 0 << SSD_EN2_PIN);
;----------------------------------------------------------------------
LDR A1, $C$CON1 ; [DPU_V7M3_PIPE] |88|
MOVS A2, #12 ; [DPU_V7M3_PIPE] |88|
MOVS A3, #4 ; [DPU_V7M3_PIPE] |88|
$C$DW$85 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$85, DW_AT_low_pc(0x00)
.dwattr $C$DW$85, DW_AT_name("GPIOPinWrite")
.dwattr $C$DW$85, DW_AT_TI_call
BL GPIOPinWrite ; [DPU_V7M3_PIPE] |88|
; CALL OCCURS {GPIOPinWrite } ; [] |88|
.dwpsn file "../SSD.c",line 89,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 90 | else
;----------------------------------------------------------------------
B ||$C$L3|| ; [DPU_V7M3_PIPE] |89|
; BRANCH OCCURS {||$C$L3||} ; [] |89|
;* --------------------------------------------------------------------------*
||$C$L2||:
.dwpsn file "../SSD.c",line 92,column 17,is_stmt,isa 1
;----------------------------------------------------------------------
; 92 | GPIOPinWrite(SSD_EN_PORT, 1 << SSD_EN1_PIN | 1 << SSD_EN2_PIN , 0 << SS
; | D_EN1_PIN | 1 << SSD_EN2_PIN);
;----------------------------------------------------------------------
LDR A1, $C$CON1 ; [DPU_V7M3_PIPE] |92|
MOVS A2, #12 ; [DPU_V7M3_PIPE] |92|
MOVS A3, #8 ; [DPU_V7M3_PIPE] |92|
$C$DW$86 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$86, DW_AT_low_pc(0x00)
.dwattr $C$DW$86, DW_AT_name("GPIOPinWrite")
.dwattr $C$DW$86, DW_AT_TI_call
BL GPIOPinWrite ; [DPU_V7M3_PIPE] |92|
; CALL OCCURS {GPIOPinWrite } ; [] |92|
;* --------------------------------------------------------------------------*
||$C$L3||:
.dwpsn file "../SSD.c",line 95,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 95 | GPIOPinWrite(SSD_DATA_PORT, SSD_DATA_MASK ,number & SSD_DATA_MASK);
;----------------------------------------------------------------------
LDRB A3, [SP, #1] ; [DPU_V7M3_PIPE] |95|
LDR A1, $C$CON2 ; [DPU_V7M3_PIPE] |95|
MOVS A2, #15 ; [DPU_V7M3_PIPE] |95|
AND A3, A3, #15 ; [DPU_V7M3_PIPE] |95|
$C$DW$87 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$87, DW_AT_low_pc(0x00)
.dwattr $C$DW$87, DW_AT_name("GPIOPinWrite")
.dwattr $C$DW$87, DW_AT_TI_call
BL GPIOPinWrite ; [DPU_V7M3_PIPE] |95|
; CALL OCCURS {GPIOPinWrite } ; [] |95|
.dwpsn file "../SSD.c",line 98,column 1,is_stmt,isa 1
;* --------------------------------------------------------------------------*
||$C$L4||:
$C$DW$88 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$88, DW_AT_low_pc(0x00)
.dwattr $C$DW$88, DW_AT_TI_return
POP {A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
; BRANCH OCCURS ; []
.dwattr $C$DW$79, DW_AT_TI_end_file("../SSD.c")
.dwattr $C$DW$79, DW_AT_TI_end_line(0x62)
.dwattr $C$DW$79, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$79
.sect ".text"
.clink
.thumbfunc SSD_SetSymbol
.thumb
.global SSD_SetSymbol
$C$DW$89 .dwtag DW_TAG_subprogram
.dwattr $C$DW$89, DW_AT_name("SSD_SetSymbol")
.dwattr $C$DW$89, DW_AT_low_pc(SSD_SetSymbol)
.dwattr $C$DW$89, DW_AT_high_pc(0x00)
.dwattr $C$DW$89, DW_AT_TI_symbol_name("SSD_SetSymbol")
.dwattr $C$DW$89, DW_AT_external
.dwattr $C$DW$89, DW_AT_TI_begin_file("../SSD.c")
.dwattr $C$DW$89, DW_AT_TI_begin_line(0x64)
.dwattr $C$DW$89, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$89, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$89, DW_AT_decl_line(0x64)
.dwattr $C$DW$89, DW_AT_decl_column(0x06)
.dwattr $C$DW$89, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../SSD.c",line 101,column 1,is_stmt,address SSD_SetSymbol,isa 1
.dwfde $C$DW$CIE, SSD_SetSymbol
$C$DW$90 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$90, DW_AT_name("ssd")
.dwattr $C$DW$90, DW_AT_TI_symbol_name("ssd")
.dwattr $C$DW$90, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$90, DW_AT_location[DW_OP_reg0]
$C$DW$91 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$91, DW_AT_name("number")
.dwattr $C$DW$91, DW_AT_TI_symbol_name("number")
.dwattr $C$DW$91, DW_AT_type(*$C$DW$T$92)
.dwattr $C$DW$91, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 100 | void SSD_SetSymbol(tSSD ssd,tSSD_Symbol number)
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: SSD_SetSymbol *
;* *
;* Regs Modified : A1,A2,A3,SP,SR *
;* Regs Used : A1,A2,A3,SP,LR,SR *
;* Local Frame Size : 0 Args + 4 Auto + 0 Save = 4 byte *
;*****************************************************************************
SSD_SetSymbol:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$92 .dwtag DW_TAG_variable
.dwattr $C$DW$92, DW_AT_name("ssd")
.dwattr $C$DW$92, DW_AT_TI_symbol_name("ssd")
.dwattr $C$DW$92, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$92, DW_AT_location[DW_OP_breg13 0]
$C$DW$93 .dwtag DW_TAG_variable
.dwattr $C$DW$93, DW_AT_name("number")
.dwattr $C$DW$93, DW_AT_TI_symbol_name("number")
.dwattr $C$DW$93, DW_AT_type(*$C$DW$T$92)
.dwattr $C$DW$93, DW_AT_location[DW_OP_breg13 1]
STRB A2, [SP, #1] ; [DPU_V7M3_PIPE] |101|
STRB A1, [SP, #0] ; [DPU_V7M3_PIPE] |101|
.dwpsn file "../SSD.c",line 102,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 102 | if(number <= SSD_NUMBER_NULL)
;----------------------------------------------------------------------
LDRB A1, [SP, #1] ; [DPU_V7M3_PIPE] |102|
CMP A1, #10 ; [DPU_V7M3_PIPE] |102|
BGT ||$C$L5|| ; [DPU_V7M3_PIPE] |102|
; BRANCHCC OCCURS {||$C$L5||} ; [] |102|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 104,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 104 | SSD_Number[ssd] = number;
;----------------------------------------------------------------------
LDRB A2, [SP, #0] ; [DPU_V7M3_PIPE] |104|
LDR A3, $C$CON9 ; [DPU_V7M3_PIPE] |104|
LDRB A1, [SP, #1] ; [DPU_V7M3_PIPE] |104|
STRB A1, [A3, +A2] ; [DPU_V7M3_PIPE] |104|
.dwpsn file "../SSD.c",line 106,column 1,is_stmt,isa 1
;* --------------------------------------------------------------------------*
||$C$L5||:
ADD SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$94 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$94, DW_AT_low_pc(0x00)
.dwattr $C$DW$94, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$89, DW_AT_TI_end_file("../SSD.c")
.dwattr $C$DW$89, DW_AT_TI_end_line(0x6a)
.dwattr $C$DW$89, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$89
.sect ".text"
.clink
.thumbfunc SSD_SetBlinkable
.thumb
.global SSD_SetBlinkable
$C$DW$95 .dwtag DW_TAG_subprogram
.dwattr $C$DW$95, DW_AT_name("SSD_SetBlinkable")
.dwattr $C$DW$95, DW_AT_low_pc(SSD_SetBlinkable)
.dwattr $C$DW$95, DW_AT_high_pc(0x00)
.dwattr $C$DW$95, DW_AT_TI_symbol_name("SSD_SetBlinkable")
.dwattr $C$DW$95, DW_AT_external
.dwattr $C$DW$95, DW_AT_TI_begin_file("../SSD.c")
.dwattr $C$DW$95, DW_AT_TI_begin_line(0x6c)
.dwattr $C$DW$95, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$95, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$95, DW_AT_decl_line(0x6c)
.dwattr $C$DW$95, DW_AT_decl_column(0x06)
.dwattr $C$DW$95, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../SSD.c",line 109,column 1,is_stmt,address SSD_SetBlinkable,isa 1
.dwfde $C$DW$CIE, SSD_SetBlinkable
$C$DW$96 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$96, DW_AT_name("ssd")
.dwattr $C$DW$96, DW_AT_TI_symbol_name("ssd")
.dwattr $C$DW$96, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$96, DW_AT_location[DW_OP_reg0]
$C$DW$97 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$97, DW_AT_name("isBlinkable")
.dwattr $C$DW$97, DW_AT_TI_symbol_name("isBlinkable")
.dwattr $C$DW$97, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$97, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 108 | void SSD_SetBlinkable(tSSD ssd,uint8_t isBlinkable)
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: SSD_SetBlinkable *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 4 Auto + 4 Save = 8 byte *
;*****************************************************************************
SSD_SetBlinkable:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
$C$DW$98 .dwtag DW_TAG_variable
.dwattr $C$DW$98, DW_AT_name("ssd")
.dwattr $C$DW$98, DW_AT_TI_symbol_name("ssd")
.dwattr $C$DW$98, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$98, DW_AT_location[DW_OP_breg13 0]
$C$DW$99 .dwtag DW_TAG_variable
.dwattr $C$DW$99, DW_AT_name("isBlinkable")
.dwattr $C$DW$99, DW_AT_TI_symbol_name("isBlinkable")
.dwattr $C$DW$99, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$99, DW_AT_location[DW_OP_breg13 1]
STRB A2, [SP, #1] ; [DPU_V7M3_PIPE] |109|
STRB A1, [SP, #0] ; [DPU_V7M3_PIPE] |109|
.dwpsn file "../SSD.c",line 110,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 110 | taskENTER_CRITICAL();
;----------------------------------------------------------------------
$C$DW$100 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$100, DW_AT_low_pc(0x00)
.dwattr $C$DW$100, DW_AT_name("vPortEnterCritical")
.dwattr $C$DW$100, DW_AT_TI_call
BL vPortEnterCritical ; [DPU_V7M3_PIPE] |110|
; CALL OCCURS {vPortEnterCritical } ; [] |110|
.dwpsn file "../SSD.c",line 111,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 111 | Blinking_State[ssd] = isBlinkable;
;----------------------------------------------------------------------
LDR A3, $C$CON10 ; [DPU_V7M3_PIPE] |111|
LDRB A2, [SP, #0] ; [DPU_V7M3_PIPE] |111|
LDRB A1, [SP, #1] ; [DPU_V7M3_PIPE] |111|
STRB A1, [A3, +A2] ; [DPU_V7M3_PIPE] |111|
.dwpsn file "../SSD.c",line 112,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 112 | Blinking_Counter[ssd] = 0;
;----------------------------------------------------------------------
LDR A3, $C$CON11 ; [DPU_V7M3_PIPE] |112|
LDRB A2, [SP, #0] ; [DPU_V7M3_PIPE] |112|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |112|
STR A1, [A3, +A2, LSL #2] ; [DPU_V7M3_PIPE] |112|
.dwpsn file "../SSD.c",line 113,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 113 | taskEXIT_CRITICAL();
;----------------------------------------------------------------------
$C$DW$101 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$101, DW_AT_low_pc(0x00)
.dwattr $C$DW$101, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$101, DW_AT_TI_call
BL vPortExitCritical ; [DPU_V7M3_PIPE] |113|
; CALL OCCURS {vPortExitCritical } ; [] |113|
.dwpsn file "../SSD.c",line 114,column 1,is_stmt,isa 1
$C$DW$102 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$102, DW_AT_low_pc(0x00)
.dwattr $C$DW$102, DW_AT_TI_return
POP {A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
; BRANCH OCCURS ; []
.dwattr $C$DW$95, DW_AT_TI_end_file("../SSD.c")
.dwattr $C$DW$95, DW_AT_TI_end_line(0x72)
.dwattr $C$DW$95, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$95
.sect ".text"
.clink
.thumbfunc SSD_ISR
.thumb
.global SSD_ISR
$C$DW$103 .dwtag DW_TAG_subprogram
.dwattr $C$DW$103, DW_AT_name("SSD_ISR")
.dwattr $C$DW$103, DW_AT_low_pc(SSD_ISR)
.dwattr $C$DW$103, DW_AT_high_pc(0x00)
.dwattr $C$DW$103, DW_AT_TI_symbol_name("SSD_ISR")
.dwattr $C$DW$103, DW_AT_external
.dwattr $C$DW$103, DW_AT_TI_begin_file("../SSD.c")
.dwattr $C$DW$103, DW_AT_TI_begin_line(0x75)
.dwattr $C$DW$103, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$103, DW_AT_decl_file("../SSD.c")
.dwattr $C$DW$103, DW_AT_decl_line(0x75)
.dwattr $C$DW$103, DW_AT_decl_column(0x06)
.dwattr $C$DW$103, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../SSD.c",line 118,column 1,is_stmt,address SSD_ISR,isa 1
.dwfde $C$DW$CIE, SSD_ISR
$C$DW$104 .dwtag DW_TAG_variable
.dwattr $C$DW$104, DW_AT_name("ssd_itr")
.dwattr $C$DW$104, DW_AT_TI_symbol_name("ssd_itr$1")
.dwattr $C$DW$104, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$104, DW_AT_location[DW_OP_addr ssd_itr$1]
;----------------------------------------------------------------------
; 117 | void SSD_ISR(void)
; 119 | static tSSD ssd_itr = SSD_ONCE;
; 121 | // Debug_PrintString("SSD ISR Enter:",0);
; 122 | // Debug_PrintNumber(xTaskGetTickCount(),1);
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: SSD_ISR *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 0 Auto + 4 Save = 4 byte *
;*****************************************************************************
SSD_ISR:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
.dwpsn file "../SSD.c",line 124,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 124 | TimerIntClear(TIMER1_BASE, TIMER_TIMA_TIMEOUT);
;----------------------------------------------------------------------
LDR A1, $C$CON3 ; [DPU_V7M3_PIPE] |124|
MOVS A2, #1 ; [DPU_V7M3_PIPE] |124|
$C$DW$105 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$105, DW_AT_low_pc(0x00)
.dwattr $C$DW$105, DW_AT_name("TimerIntClear")
.dwattr $C$DW$105, DW_AT_TI_call
BL TimerIntClear ; [DPU_V7M3_PIPE] |124|
; CALL OCCURS {TimerIntClear } ; [] |124|
.dwpsn file "../SSD.c",line 126,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 126 | if(Blinking_State[ssd_itr] == 1)
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |126|
LDR A2, $C$CON10 ; [DPU_V7M3_PIPE] |126|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |126|
LDRB A1, [A2, +A1] ; [DPU_V7M3_PIPE] |126|
CMP A1, #1 ; [DPU_V7M3_PIPE] |126|
BNE ||$C$L9|| ; [DPU_V7M3_PIPE] |126|
; BRANCHCC OCCURS {||$C$L9||} ; [] |126|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 128,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 128 | if(Blinking_Counter[ssd_itr] < BLINKING_RATE_MS)
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |128|
LDR A2, $C$CON11 ; [DPU_V7M3_PIPE] |128|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |128|
LDR A1, [A2, +A1, LSL #2] ; [DPU_V7M3_PIPE] |128|
CMP A1, #300 ; [DPU_V7M3_PIPE] |128|
BCS ||$C$L6|| ; [DPU_V7M3_PIPE] |128|
; BRANCHCC OCCURS {||$C$L6||} ; [] |128|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 130,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 130 | SSD_ShowNumber(ssd_itr,SSD_Number[ssd_itr]);
;----------------------------------------------------------------------
LDR A2, $C$CON12 ; [DPU_V7M3_PIPE] |130|
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |130|
LDR A3, $C$CON9 ; [DPU_V7M3_PIPE] |130|
LDRB A2, [A2, #0] ; [DPU_V7M3_PIPE] |130|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |130|
LDRB A2, [A3, +A2] ; [DPU_V7M3_PIPE] |130|
$C$DW$106 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$106, DW_AT_low_pc(0x00)
.dwattr $C$DW$106, DW_AT_name("SSD_ShowNumber")
.dwattr $C$DW$106, DW_AT_TI_call
BL SSD_ShowNumber ; [DPU_V7M3_PIPE] |130|
; CALL OCCURS {SSD_ShowNumber } ; [] |130|
.dwpsn file "../SSD.c",line 131,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 132 | else
;----------------------------------------------------------------------
B ||$C$L7|| ; [DPU_V7M3_PIPE] |131|
; BRANCH OCCURS {||$C$L7||} ; [] |131|
;* --------------------------------------------------------------------------*
||$C$L6||:
.dwpsn file "../SSD.c",line 134,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 134 | SSD_ShowNumber(ssd_itr,SSD_NUMBER_NULL);
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |134|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |134|
MOVS A2, #10 ; [DPU_V7M3_PIPE] |134|
$C$DW$107 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$107, DW_AT_low_pc(0x00)
.dwattr $C$DW$107, DW_AT_name("SSD_ShowNumber")
.dwattr $C$DW$107, DW_AT_TI_call
BL SSD_ShowNumber ; [DPU_V7M3_PIPE] |134|
; CALL OCCURS {SSD_ShowNumber } ; [] |134|
;* --------------------------------------------------------------------------*
||$C$L7||:
.dwpsn file "../SSD.c",line 137,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 137 | Blinking_Counter[ssd_itr] += SSD_ISR_RATE_MS;
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |137|
LDR A3, $C$CON11 ; [DPU_V7M3_PIPE] |137|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |137|
LSLS A2, A1, #2 ; [DPU_V7M3_PIPE] |137|
LDR A1, [A2, +A3] ; [DPU_V7M3_PIPE] |137|
ADDS A1, A1, #10 ; [DPU_V7M3_PIPE] |137|
STR A1, [A2, +A3] ; [DPU_V7M3_PIPE] |137|
.dwpsn file "../SSD.c",line 139,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 139 | if(Blinking_Counter[ssd_itr] >= 2*BLINKING_RATE_MS)
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |139|
LDR A2, $C$CON11 ; [DPU_V7M3_PIPE] |139|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |139|
LDR A1, [A2, +A1, LSL #2] ; [DPU_V7M3_PIPE] |139|
CMP A1, #600 ; [DPU_V7M3_PIPE] |139|
BCC ||$C$L8|| ; [DPU_V7M3_PIPE] |139|
; BRANCHCC OCCURS {||$C$L8||} ; [] |139|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 141,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 141 | Blinking_Counter[ssd_itr] = 0;
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |141|
LDR A3, $C$CON11 ; [DPU_V7M3_PIPE] |141|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |141|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |141|
STR A2, [A3, +A1, LSL #2] ; [DPU_V7M3_PIPE] |141|
.dwpsn file "../SSD.c",line 142,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 143 | else
;----------------------------------------------------------------------
B ||$C$L10|| ; [DPU_V7M3_PIPE] |142|
; BRANCH OCCURS {||$C$L10||} ; [] |142|
;* --------------------------------------------------------------------------*
||$C$L8||:
.dwpsn file "../SSD.c",line 145,column 13,is_stmt,isa 1
;----------------------------------------------------------------------
; 145 | Blinking_Counter[ssd_itr] = Blinking_Counter[ssd_itr];
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |145|
LDR A2, $C$CON12 ; [DPU_V7M3_PIPE] |145|
LDR A3, $C$CON11 ; [DPU_V7M3_PIPE] |145|
LDR A4, $C$CON11 ; [DPU_V7M3_PIPE] |145|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |145|
LDRB A2, [A2, #0] ; [DPU_V7M3_PIPE] |145|
LDR A1, [A3, +A1, LSL #2] ; [DPU_V7M3_PIPE] |145|
STR A1, [A4, +A2, LSL #2] ; [DPU_V7M3_PIPE] |145|
.dwpsn file "../SSD.c",line 147,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 148 | else
;----------------------------------------------------------------------
B ||$C$L10|| ; [DPU_V7M3_PIPE] |147|
; BRANCH OCCURS {||$C$L10||} ; [] |147|
;* --------------------------------------------------------------------------*
||$C$L9||:
.dwpsn file "../SSD.c",line 150,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 150 | SSD_ShowNumber(ssd_itr,SSD_Number[ssd_itr]);
;----------------------------------------------------------------------
LDR A2, $C$CON12 ; [DPU_V7M3_PIPE] |150|
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |150|
LDR A3, $C$CON9 ; [DPU_V7M3_PIPE] |150|
LDRB A2, [A2, #0] ; [DPU_V7M3_PIPE] |150|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |150|
LDRB A2, [A3, +A2] ; [DPU_V7M3_PIPE] |150|
$C$DW$108 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$108, DW_AT_low_pc(0x00)
.dwattr $C$DW$108, DW_AT_name("SSD_ShowNumber")
.dwattr $C$DW$108, DW_AT_TI_call
BL SSD_ShowNumber ; [DPU_V7M3_PIPE] |150|
; CALL OCCURS {SSD_ShowNumber } ; [] |150|
;* --------------------------------------------------------------------------*
||$C$L10||:
.dwpsn file "../SSD.c",line 153,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 153 | ssd_itr++;
;----------------------------------------------------------------------
LDR A2, $C$CON12 ; [DPU_V7M3_PIPE] |153|
LDRB A1, [A2, #0] ; [DPU_V7M3_PIPE] |153|
ADDS A1, A1, #1 ; [DPU_V7M3_PIPE] |153|
STRB A1, [A2, #0] ; [DPU_V7M3_PIPE] |153|
.dwpsn file "../SSD.c",line 155,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 155 | if(ssd_itr > SSD_TENTH)
;----------------------------------------------------------------------
LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |155|
LDRB A1, [A1, #0] ; [DPU_V7M3_PIPE] |155|
CMP A1, #1 ; [DPU_V7M3_PIPE] |155|
BLE ||$C$L11|| ; [DPU_V7M3_PIPE] |155|
; BRANCHCC OCCURS {||$C$L11||} ; [] |155|
;* --------------------------------------------------------------------------*
.dwpsn file "../SSD.c",line 157,column 9,is_stmt,isa 1
;----------------------------------------------------------------------
; 157 | ssd_itr = SSD_ONCE;
; 160 | // Debug_PrintString("SSD ISR Exit:",0);
; 161 | // Debug_PrintNumber(xTaskGetTickCount(),1);
;----------------------------------------------------------------------
LDR A2, $C$CON12 ; [DPU_V7M3_PIPE] |157|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |157|
STRB A1, [A2, #0] ; [DPU_V7M3_PIPE] |157|
.dwpsn file "../SSD.c",line 162,column 1,is_stmt,isa 1
;* --------------------------------------------------------------------------*
||$C$L11||:
$C$DW$109 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$109, DW_AT_low_pc(0x00)
.dwattr $C$DW$109, DW_AT_TI_return
POP {A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
; BRANCH OCCURS ; []
.dwattr $C$DW$103, DW_AT_TI_end_file("../SSD.c")
.dwattr $C$DW$103, DW_AT_TI_end_line(0xa2)
.dwattr $C$DW$103, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$103
;******************************************************************************
;* CONSTANT TABLE *
;******************************************************************************
.sect ".text"
.align 4
||$C$CON1||: .bits 1073889280,32
.align 4
||$C$CON2||: .bits 1073770496,32
.align 4
||$C$CON3||: .bits 1073942528,32
.align 4
||$C$CON4||: .bits 67117602,32
.align 4
||$C$CON5||: .bits SSD_ISR,32
.align 4
||$C$CON6||: .bits 1073946624,32
.align 4
||$C$CON7||: .bits 67121714,32
.align 4
||$C$CON8||: .bits SSD_Start,32
.align 4
||$C$CON9||: .bits SSD_Number,32
.align 4
||$C$CON10||: .bits Blinking_State,32
.align 4
||$C$CON11||: .bits Blinking_Counter,32
.align 4
||$C$CON12||: .bits ssd_itr$1,32
;*****************************************************************************
;* UNDEFINED EXTERNAL REFERENCES *
;*****************************************************************************
.global GPIODirModeSet
.global GPIOPadConfigSet
.global TimerConfigure
.global TimerPrescaleSet
.global TimerClockSourceSet
.global TimerLoadSet
.global TimerUpdateMode
.global TimerIntRegister
.global TimerIntEnable
.global TimerIntClear
.global TimerDisable
.global TimerEnable
.global GPIOPinWrite
.global vPortEnterCritical
.global vPortExitCritical
;******************************************************************************
;* BUILD ATTRIBUTES *
;******************************************************************************
.battr "aeabi", Tag_File, 1, Tag_ABI_PCS_wchar_t(2)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_rounding(0)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_denormal(0)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_exceptions(0)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_number_model(1)
.battr "aeabi", Tag_File, 1, Tag_ABI_enum_size(1)
.battr "aeabi", Tag_File, 1, Tag_ABI_optimization_goals(5)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_optimization_goals(0)
.battr "TI", Tag_File, 1, Tag_Bitfield_layout(2)
.battr "aeabi", Tag_File, 1, Tag_ABI_VFP_args(3)
.battr "TI", Tag_File, 1, Tag_FP_interface(1)
;******************************************************************************
;* TYPE INFORMATION *
;******************************************************************************
$C$DW$T$84 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$84, DW_AT_byte_size(0x01)
$C$DW$110 .dwtag DW_TAG_enumerator
.dwattr $C$DW$110, DW_AT_name("eRunning")
.dwattr $C$DW$110, DW_AT_const_value(0x00)
.dwattr $C$DW$110, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$110, DW_AT_decl_line(0x49)
.dwattr $C$DW$110, DW_AT_decl_column(0x02)
$C$DW$111 .dwtag DW_TAG_enumerator
.dwattr $C$DW$111, DW_AT_name("eReady")
.dwattr $C$DW$111, DW_AT_const_value(0x01)
.dwattr $C$DW$111, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$111, DW_AT_decl_line(0x4a)
.dwattr $C$DW$111, DW_AT_decl_column(0x02)
$C$DW$112 .dwtag DW_TAG_enumerator
.dwattr $C$DW$112, DW_AT_name("eBlocked")
.dwattr $C$DW$112, DW_AT_const_value(0x02)
.dwattr $C$DW$112, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$112, DW_AT_decl_line(0x4b)
.dwattr $C$DW$112, DW_AT_decl_column(0x02)
$C$DW$113 .dwtag DW_TAG_enumerator
.dwattr $C$DW$113, DW_AT_name("eSuspended")
.dwattr $C$DW$113, DW_AT_const_value(0x03)
.dwattr $C$DW$113, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$113, DW_AT_decl_line(0x4c)
.dwattr $C$DW$113, DW_AT_decl_column(0x02)
$C$DW$114 .dwtag DW_TAG_enumerator
.dwattr $C$DW$114, DW_AT_name("eDeleted")
.dwattr $C$DW$114, DW_AT_const_value(0x04)
.dwattr $C$DW$114, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$114, DW_AT_decl_line(0x4d)
.dwattr $C$DW$114, DW_AT_decl_column(0x02)
$C$DW$115 .dwtag DW_TAG_enumerator
.dwattr $C$DW$115, DW_AT_name("eInvalid")
.dwattr $C$DW$115, DW_AT_const_value(0x05)
.dwattr $C$DW$115, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$115, DW_AT_decl_line(0x4e)
.dwattr $C$DW$115, DW_AT_decl_column(0x02)
.dwattr $C$DW$T$84, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$84, DW_AT_decl_line(0x48)
.dwattr $C$DW$T$84, DW_AT_decl_column(0x01)
.dwendtag $C$DW$T$84
$C$DW$T$85 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$85, DW_AT_name("eTaskState")
.dwattr $C$DW$T$85, DW_AT_type(*$C$DW$T$84)
.dwattr $C$DW$T$85, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$85, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$85, DW_AT_decl_line(0x4f)
.dwattr $C$DW$T$85, DW_AT_decl_column(0x03)
$C$DW$T$89 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$89, DW_AT_byte_size(0x01)
$C$DW$116 .dwtag DW_TAG_enumerator
.dwattr $C$DW$116, DW_AT_name("SSD_ONCE")
.dwattr $C$DW$116, DW_AT_const_value(0x00)
.dwattr $C$DW$116, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$116, DW_AT_decl_line(0x0e)
.dwattr $C$DW$116, DW_AT_decl_column(0x05)
$C$DW$117 .dwtag DW_TAG_enumerator
.dwattr $C$DW$117, DW_AT_name("SSD_TENTH")
.dwattr $C$DW$117, DW_AT_const_value(0x01)
.dwattr $C$DW$117, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$117, DW_AT_decl_line(0x0f)
.dwattr $C$DW$117, DW_AT_decl_column(0x05)
.dwattr $C$DW$T$89, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$T$89, DW_AT_decl_line(0x0d)
.dwattr $C$DW$T$89, DW_AT_decl_column(0x0d)
.dwendtag $C$DW$T$89
$C$DW$T$90 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$90, DW_AT_name("tSSD")
.dwattr $C$DW$T$90, DW_AT_type(*$C$DW$T$89)
.dwattr $C$DW$T$90, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$90, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$T$90, DW_AT_decl_line(0x10)
.dwattr $C$DW$T$90, DW_AT_decl_column(0x02)
$C$DW$T$91 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$91, DW_AT_byte_size(0x01)
$C$DW$118 .dwtag DW_TAG_enumerator
.dwattr $C$DW$118, DW_AT_name("SSD_NUMBER_ZERO")
.dwattr $C$DW$118, DW_AT_const_value(0x00)
.dwattr $C$DW$118, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$118, DW_AT_decl_line(0x13)
.dwattr $C$DW$118, DW_AT_decl_column(0x05)
$C$DW$119 .dwtag DW_TAG_enumerator
.dwattr $C$DW$119, DW_AT_name("SSD_NUMBER_ONE")
.dwattr $C$DW$119, DW_AT_const_value(0x01)
.dwattr $C$DW$119, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$119, DW_AT_decl_line(0x14)
.dwattr $C$DW$119, DW_AT_decl_column(0x05)
$C$DW$120 .dwtag DW_TAG_enumerator
.dwattr $C$DW$120, DW_AT_name("SSD_NUMBER_TWO")
.dwattr $C$DW$120, DW_AT_const_value(0x02)
.dwattr $C$DW$120, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$120, DW_AT_decl_line(0x15)
.dwattr $C$DW$120, DW_AT_decl_column(0x05)
$C$DW$121 .dwtag DW_TAG_enumerator
.dwattr $C$DW$121, DW_AT_name("SSD_NUMBER_THREE")
.dwattr $C$DW$121, DW_AT_const_value(0x03)
.dwattr $C$DW$121, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$121, DW_AT_decl_line(0x16)
.dwattr $C$DW$121, DW_AT_decl_column(0x05)
$C$DW$122 .dwtag DW_TAG_enumerator
.dwattr $C$DW$122, DW_AT_name("SSD_NUMBER_FOUR")
.dwattr $C$DW$122, DW_AT_const_value(0x04)
.dwattr $C$DW$122, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$122, DW_AT_decl_line(0x17)
.dwattr $C$DW$122, DW_AT_decl_column(0x05)
$C$DW$123 .dwtag DW_TAG_enumerator
.dwattr $C$DW$123, DW_AT_name("SSD_NUMBER_FIVE")
.dwattr $C$DW$123, DW_AT_const_value(0x05)
.dwattr $C$DW$123, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$123, DW_AT_decl_line(0x18)
.dwattr $C$DW$123, DW_AT_decl_column(0x05)
$C$DW$124 .dwtag DW_TAG_enumerator
.dwattr $C$DW$124, DW_AT_name("SSD_NUMBER_SIX")
.dwattr $C$DW$124, DW_AT_const_value(0x06)
.dwattr $C$DW$124, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$124, DW_AT_decl_line(0x19)
.dwattr $C$DW$124, DW_AT_decl_column(0x05)
$C$DW$125 .dwtag DW_TAG_enumerator
.dwattr $C$DW$125, DW_AT_name("SSD_NUMBER_SEVEN")
.dwattr $C$DW$125, DW_AT_const_value(0x07)
.dwattr $C$DW$125, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$125, DW_AT_decl_line(0x1a)
.dwattr $C$DW$125, DW_AT_decl_column(0x05)
$C$DW$126 .dwtag DW_TAG_enumerator
.dwattr $C$DW$126, DW_AT_name("SSD_NUMBER_EIGHT")
.dwattr $C$DW$126, DW_AT_const_value(0x08)
.dwattr $C$DW$126, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$126, DW_AT_decl_line(0x1b)
.dwattr $C$DW$126, DW_AT_decl_column(0x05)
$C$DW$127 .dwtag DW_TAG_enumerator
.dwattr $C$DW$127, DW_AT_name("SSD_NUMBER_NINE")
.dwattr $C$DW$127, DW_AT_const_value(0x09)
.dwattr $C$DW$127, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$127, DW_AT_decl_line(0x1c)
.dwattr $C$DW$127, DW_AT_decl_column(0x05)
$C$DW$128 .dwtag DW_TAG_enumerator
.dwattr $C$DW$128, DW_AT_name("SSD_NUMBER_NULL")
.dwattr $C$DW$128, DW_AT_const_value(0x0a)
.dwattr $C$DW$128, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$128, DW_AT_decl_line(0x1d)
.dwattr $C$DW$128, DW_AT_decl_column(0x05)
.dwattr $C$DW$T$91, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$T$91, DW_AT_decl_line(0x12)
.dwattr $C$DW$T$91, DW_AT_decl_column(0x0d)
.dwendtag $C$DW$T$91
$C$DW$T$92 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$92, DW_AT_name("tSSD_Symbol")
.dwattr $C$DW$T$92, DW_AT_type(*$C$DW$T$91)
.dwattr $C$DW$T$92, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$92, DW_AT_decl_file("../SSD.h")
.dwattr $C$DW$T$92, DW_AT_decl_line(0x1e)
.dwattr $C$DW$T$92, DW_AT_decl_column(0x02)
$C$DW$T$93 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$93, DW_AT_type(*$C$DW$T$92)
.dwattr $C$DW$T$93, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$93, DW_AT_byte_size(0x02)
$C$DW$129 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$129, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$93
$C$DW$T$95 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$95, DW_AT_byte_size(0x01)
$C$DW$130 .dwtag DW_TAG_enumerator
.dwattr $C$DW$130, DW_AT_name("eNoAction")
.dwattr $C$DW$130, DW_AT_const_value(0x00)
.dwattr $C$DW$130, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$130, DW_AT_decl_line(0x54)
.dwattr $C$DW$130, DW_AT_decl_column(0x02)
$C$DW$131 .dwtag DW_TAG_enumerator
.dwattr $C$DW$131, DW_AT_name("eSetBits")
.dwattr $C$DW$131, DW_AT_const_value(0x01)
.dwattr $C$DW$131, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$131, DW_AT_decl_line(0x55)
.dwattr $C$DW$131, DW_AT_decl_column(0x02)
$C$DW$132 .dwtag DW_TAG_enumerator
.dwattr $C$DW$132, DW_AT_name("eIncrement")
.dwattr $C$DW$132, DW_AT_const_value(0x02)
.dwattr $C$DW$132, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$132, DW_AT_decl_line(0x56)
.dwattr $C$DW$132, DW_AT_decl_column(0x02)
$C$DW$133 .dwtag DW_TAG_enumerator
.dwattr $C$DW$133, DW_AT_name("eSetValueWithOverwrite")
.dwattr $C$DW$133, DW_AT_const_value(0x03)
.dwattr $C$DW$133, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$133, DW_AT_decl_line(0x57)
.dwattr $C$DW$133, DW_AT_decl_column(0x02)
$C$DW$134 .dwtag DW_TAG_enumerator
.dwattr $C$DW$134, DW_AT_name("eSetValueWithoutOverwrite")
.dwattr $C$DW$134, DW_AT_const_value(0x04)
.dwattr $C$DW$134, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$134, DW_AT_decl_line(0x58)
.dwattr $C$DW$134, DW_AT_decl_column(0x02)
.dwattr $C$DW$T$95, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$95, DW_AT_decl_line(0x53)
.dwattr $C$DW$T$95, DW_AT_decl_column(0x01)
.dwendtag $C$DW$T$95
$C$DW$T$96 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$96, DW_AT_name("eNotifyAction")
.dwattr $C$DW$T$96, DW_AT_type(*$C$DW$T$95)
.dwattr $C$DW$T$96, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$96, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$96, DW_AT_decl_line(0x59)
.dwattr $C$DW$T$96, DW_AT_decl_column(0x03)
$C$DW$T$97 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$97, DW_AT_byte_size(0x01)
$C$DW$135 .dwtag DW_TAG_enumerator
.dwattr $C$DW$135, DW_AT_name("eAbortSleep")
.dwattr $C$DW$135, DW_AT_const_value(0x00)
.dwattr $C$DW$135, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$135, DW_AT_decl_line(0x91)
.dwattr $C$DW$135, DW_AT_decl_column(0x02)
$C$DW$136 .dwtag DW_TAG_enumerator
.dwattr $C$DW$136, DW_AT_name("eStandardSleep")
.dwattr $C$DW$136, DW_AT_const_value(0x01)
.dwattr $C$DW$136, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$136, DW_AT_decl_line(0x92)
.dwattr $C$DW$136, DW_AT_decl_column(0x02)
$C$DW$137 .dwtag DW_TAG_enumerator
.dwattr $C$DW$137, DW_AT_name("eNoTasksWaitingTimeout")
.dwattr $C$DW$137, DW_AT_const_value(0x02)
.dwattr $C$DW$137, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$137, DW_AT_decl_line(0x93)
.dwattr $C$DW$137, DW_AT_decl_column(0x02)
.dwattr $C$DW$T$97, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$97, DW_AT_decl_line(0x90)
.dwattr $C$DW$T$97, DW_AT_decl_column(0x01)
.dwendtag $C$DW$T$97
$C$DW$T$98 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$98, DW_AT_name("eSleepModeStatus")
.dwattr $C$DW$T$98, DW_AT_type(*$C$DW$T$97)
.dwattr $C$DW$T$98, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$98, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$98, DW_AT_decl_line(0x94)
.dwattr $C$DW$T$98, DW_AT_decl_column(0x03)
$C$DW$T$22 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$22, DW_AT_byte_size(0x10)
$C$DW$138 .dwtag DW_TAG_member
.dwattr $C$DW$138, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$138, DW_AT_name("__max_align1")
.dwattr $C$DW$138, DW_AT_TI_symbol_name("__max_align1")
.dwattr $C$DW$138, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$138, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$138, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$138, DW_AT_decl_line(0x70)
.dwattr $C$DW$138, DW_AT_decl_column(0x0c)
$C$DW$139 .dwtag DW_TAG_member
.dwattr $C$DW$139, DW_AT_type(*$C$DW$T$18)
.dwattr $C$DW$139, DW_AT_name("__max_align2")
.dwattr $C$DW$139, DW_AT_TI_symbol_name("__max_align2")
.dwattr $C$DW$139, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$139, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$139, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$139, DW_AT_decl_line(0x71)
.dwattr $C$DW$139, DW_AT_decl_column(0x0e)
.dwattr $C$DW$T$22, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$22, DW_AT_decl_line(0x6f)
.dwattr $C$DW$T$22, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$22
$C$DW$T$99 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$99, DW_AT_name("__max_align_t")
.dwattr $C$DW$T$99, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$T$99, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$99, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$99, DW_AT_decl_line(0x72)
.dwattr $C$DW$T$99, DW_AT_decl_column(0x03)
$C$DW$T$23 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$23, DW_AT_byte_size(0x08)
$C$DW$140 .dwtag DW_TAG_member
.dwattr $C$DW$140, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$140, DW_AT_name("quot")
.dwattr $C$DW$140, DW_AT_TI_symbol_name("quot")
.dwattr $C$DW$140, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$140, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$140, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$140, DW_AT_decl_line(0x49)
.dwattr $C$DW$140, DW_AT_decl_column(0x16)
$C$DW$141 .dwtag DW_TAG_member
.dwattr $C$DW$141, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$141, DW_AT_name("rem")
.dwattr $C$DW$141, DW_AT_TI_symbol_name("rem")
.dwattr $C$DW$141, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$141, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$141, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$141, DW_AT_decl_line(0x49)
.dwattr $C$DW$141, DW_AT_decl_column(0x1c)
.dwattr $C$DW$T$23, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$23, DW_AT_decl_line(0x49)
.dwattr $C$DW$T$23, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$23
$C$DW$T$100 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$100, DW_AT_name("div_t")
.dwattr $C$DW$T$100, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$T$100, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$100, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$100, DW_AT_decl_line(0x49)
.dwattr $C$DW$T$100, DW_AT_decl_column(0x23)
$C$DW$T$24 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$24, DW_AT_byte_size(0x08)
$C$DW$142 .dwtag DW_TAG_member
.dwattr $C$DW$142, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$142, DW_AT_name("quot")
.dwattr $C$DW$142, DW_AT_TI_symbol_name("quot")
.dwattr $C$DW$142, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$142, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$142, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$142, DW_AT_decl_line(0x4e)
.dwattr $C$DW$142, DW_AT_decl_column(0x16)
$C$DW$143 .dwtag DW_TAG_member
.dwattr $C$DW$143, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$143, DW_AT_name("rem")
.dwattr $C$DW$143, DW_AT_TI_symbol_name("rem")
.dwattr $C$DW$143, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$143, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$143, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$143, DW_AT_decl_line(0x4e)
.dwattr $C$DW$143, DW_AT_decl_column(0x1c)
.dwattr $C$DW$T$24, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$24, DW_AT_decl_line(0x4e)
.dwattr $C$DW$T$24, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$24
$C$DW$T$101 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$101, DW_AT_name("ldiv_t")
.dwattr $C$DW$T$101, DW_AT_type(*$C$DW$T$24)
.dwattr $C$DW$T$101, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$101, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$101, DW_AT_decl_line(0x4e)
.dwattr $C$DW$T$101, DW_AT_decl_column(0x23)
$C$DW$T$25 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$25, DW_AT_byte_size(0x10)
$C$DW$144 .dwtag DW_TAG_member
.dwattr $C$DW$144, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$144, DW_AT_name("quot")
.dwattr $C$DW$144, DW_AT_TI_symbol_name("quot")
.dwattr $C$DW$144, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$144, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$144, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$144, DW_AT_decl_line(0x56)
.dwattr $C$DW$144, DW_AT_decl_column(0x1c)
$C$DW$145 .dwtag DW_TAG_member
.dwattr $C$DW$145, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$145, DW_AT_name("rem")
.dwattr $C$DW$145, DW_AT_TI_symbol_name("rem")
.dwattr $C$DW$145, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$145, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$145, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$145, DW_AT_decl_line(0x56)
.dwattr $C$DW$145, DW_AT_decl_column(0x22)
.dwattr $C$DW$T$25, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$25, DW_AT_decl_line(0x56)
.dwattr $C$DW$T$25, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$25
$C$DW$T$102 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$102, DW_AT_name("lldiv_t")
.dwattr $C$DW$T$102, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$T$102, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$102, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$102, DW_AT_decl_line(0x56)
.dwattr $C$DW$T$102, DW_AT_decl_column(0x29)
$C$DW$T$27 .dwtag DW_TAG_union_type
.dwattr $C$DW$T$27, DW_AT_byte_size(0x04)
$C$DW$146 .dwtag DW_TAG_member
.dwattr $C$DW$146, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$146, DW_AT_name("pvDummy2")
.dwattr $C$DW$146, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$146, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$146, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$146, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$146, DW_AT_decl_line(0x42d)
.dwattr $C$DW$146, DW_AT_decl_column(0x09)
$C$DW$147 .dwtag DW_TAG_member
.dwattr $C$DW$147, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$147, DW_AT_name("uxDummy2")
.dwattr $C$DW$147, DW_AT_TI_symbol_name("uxDummy2")
.dwattr $C$DW$147, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$147, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$147, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$147, DW_AT_decl_line(0x42e)
.dwattr $C$DW$147, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$27, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$27, DW_AT_decl_line(0x42c)
.dwattr $C$DW$T$27, DW_AT_decl_column(0x02)
.dwendtag $C$DW$T$27
$C$DW$T$32 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$32, DW_AT_name("HeapRegion")
.dwattr $C$DW$T$32, DW_AT_byte_size(0x08)
$C$DW$148 .dwtag DW_TAG_member
.dwattr $C$DW$148, DW_AT_type(*$C$DW$T$30)
.dwattr $C$DW$148, DW_AT_name("pucStartAddress")
.dwattr $C$DW$148, DW_AT_TI_symbol_name("pucStartAddress")
.dwattr $C$DW$148, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$148, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$148, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$148, DW_AT_decl_line(0x6e)
.dwattr $C$DW$148, DW_AT_decl_column(0x0b)
$C$DW$149 .dwtag DW_TAG_member
.dwattr $C$DW$149, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$149, DW_AT_name("xSizeInBytes")
.dwattr $C$DW$149, DW_AT_TI_symbol_name("xSizeInBytes")
.dwattr $C$DW$149, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$149, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$149, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$149, DW_AT_decl_line(0x6f)
.dwattr $C$DW$149, DW_AT_decl_column(0x09)
.dwattr $C$DW$T$32, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$T$32, DW_AT_decl_line(0x6c)
.dwattr $C$DW$T$32, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$32
$C$DW$T$103 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$103, DW_AT_name("HeapRegion_t")
.dwattr $C$DW$T$103, DW_AT_type(*$C$DW$T$32)
.dwattr $C$DW$T$103, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$103, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$T$103, DW_AT_decl_line(0x70)
.dwattr $C$DW$T$103, DW_AT_decl_column(0x03)
$C$DW$T$2 .dwtag DW_TAG_unspecified_type
.dwattr $C$DW$T$2, DW_AT_name("void")
$C$DW$T$3 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$3, DW_AT_type(*$C$DW$T$2)
.dwattr $C$DW$T$3, DW_AT_address_class(0x20)
$C$DW$T$51 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$51, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$T$51, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$51, DW_AT_byte_size(0x10)
$C$DW$150 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$150, DW_AT_upper_bound(0x03)
.dwendtag $C$DW$T$51
$C$DW$T$53 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$53, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$T$53, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$53, DW_AT_byte_size(0x08)
$C$DW$151 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$151, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$53
$C$DW$T$55 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$55, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$T$55, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$55, DW_AT_byte_size(0x0c)
$C$DW$152 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$152, DW_AT_upper_bound(0x02)
.dwendtag $C$DW$T$55
$C$DW$T$67 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$67, DW_AT_language(DW_LANG_C)
$C$DW$153 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$153, DW_AT_type(*$C$DW$T$3)
.dwendtag $C$DW$T$67
$C$DW$T$68 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$68, DW_AT_type(*$C$DW$T$67)
.dwattr $C$DW$T$68, DW_AT_address_class(0x20)
$C$DW$T$69 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$69, DW_AT_name("TaskFunction_t")
.dwattr $C$DW$T$69, DW_AT_type(*$C$DW$T$68)
.dwattr $C$DW$T$69, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$69, DW_AT_decl_file("../OS/projdefs.h")
.dwattr $C$DW$T$69, DW_AT_decl_line(0x23)
.dwattr $C$DW$T$69, DW_AT_decl_column(0x10)
$C$DW$T$104 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$104, DW_AT_language(DW_LANG_C)
.dwendtag $C$DW$T$104
$C$DW$T$105 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$105, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$T$105, DW_AT_address_class(0x20)
$C$DW$T$106 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$106, DW_AT_name("__TI_atexit_fn")
.dwattr $C$DW$T$106, DW_AT_type(*$C$DW$T$105)
.dwattr $C$DW$T$106, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$106, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$106, DW_AT_decl_line(0xb2)
.dwattr $C$DW$T$106, DW_AT_decl_column(0x14)
$C$DW$T$122 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$122, DW_AT_type(*$C$DW$T$2)
$C$DW$T$123 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$123, DW_AT_type(*$C$DW$T$122)
.dwattr $C$DW$T$123, DW_AT_address_class(0x20)
$C$DW$T$4 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean)
.dwattr $C$DW$T$4, DW_AT_name("bool")
.dwattr $C$DW$T$4, DW_AT_byte_size(0x01)
$C$DW$T$5 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$5, DW_AT_name("signed char")
.dwattr $C$DW$T$5, DW_AT_byte_size(0x01)
$C$DW$T$124 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$124, DW_AT_name("__int8_t")
.dwattr $C$DW$T$124, DW_AT_type(*$C$DW$T$5)
.dwattr $C$DW$T$124, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$124, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$124, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$124, DW_AT_decl_column(0x16)
$C$DW$T$125 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$125, DW_AT_name("__int_least8_t")
.dwattr $C$DW$T$125, DW_AT_type(*$C$DW$T$124)
.dwattr $C$DW$T$125, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$125, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$125, DW_AT_decl_line(0x58)
.dwattr $C$DW$T$125, DW_AT_decl_column(0x12)
$C$DW$T$126 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$126, DW_AT_name("int_least8_t")
.dwattr $C$DW$T$126, DW_AT_type(*$C$DW$T$125)
.dwattr $C$DW$T$126, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$126, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$126, DW_AT_decl_line(0x28)
.dwattr $C$DW$T$126, DW_AT_decl_column(0x19)
$C$DW$T$127 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$127, DW_AT_name("int8_t")
.dwattr $C$DW$T$127, DW_AT_type(*$C$DW$T$124)
.dwattr $C$DW$T$127, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$127, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$127, DW_AT_decl_line(0x24)
.dwattr $C$DW$T$127, DW_AT_decl_column(0x13)
$C$DW$T$6 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char)
.dwattr $C$DW$T$6, DW_AT_name("unsigned char")
.dwattr $C$DW$T$6, DW_AT_byte_size(0x01)
$C$DW$T$28 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$28, DW_AT_name("__uint8_t")
.dwattr $C$DW$T$28, DW_AT_type(*$C$DW$T$6)
.dwattr $C$DW$T$28, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$28, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$28, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$28, DW_AT_decl_column(0x18)
$C$DW$T$128 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$128, DW_AT_name("__sa_family_t")
.dwattr $C$DW$T$128, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$128, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$128, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$128, DW_AT_decl_line(0x43)
.dwattr $C$DW$T$128, DW_AT_decl_column(0x13)
$C$DW$T$129 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$129, DW_AT_name("__uint_least8_t")
.dwattr $C$DW$T$129, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$129, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$129, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$129, DW_AT_decl_line(0x6d)
.dwattr $C$DW$T$129, DW_AT_decl_column(0x13)
$C$DW$T$130 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$130, DW_AT_name("uint_least8_t")
.dwattr $C$DW$T$130, DW_AT_type(*$C$DW$T$129)
.dwattr $C$DW$T$130, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$130, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$130, DW_AT_decl_line(0x2d)
.dwattr $C$DW$T$130, DW_AT_decl_column(0x1a)
$C$DW$T$29 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$29, DW_AT_name("uint8_t")
.dwattr $C$DW$T$29, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$29, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$29, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$29, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$29, DW_AT_decl_column(0x14)
$C$DW$T$30 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$30, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$30, DW_AT_address_class(0x20)
$C$DW$T$58 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$58, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$58, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$58, DW_AT_byte_size(0x02)
$C$DW$154 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$154, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$58
$C$DW$T$64 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$64, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$64, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$64, DW_AT_byte_size(0x0c)
$C$DW$155 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$155, DW_AT_upper_bound(0x0b)
.dwendtag $C$DW$T$64
$C$DW$T$7 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$7, DW_AT_name("wchar_t")
.dwattr $C$DW$T$7, DW_AT_byte_size(0x02)
$C$DW$T$8 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$8, DW_AT_name("short")
.dwattr $C$DW$T$8, DW_AT_byte_size(0x02)
$C$DW$T$131 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$131, DW_AT_name("__int16_t")
.dwattr $C$DW$T$131, DW_AT_type(*$C$DW$T$8)
.dwattr $C$DW$T$131, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$131, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$131, DW_AT_decl_line(0x3b)
.dwattr $C$DW$T$131, DW_AT_decl_column(0x11)
$C$DW$T$132 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$132, DW_AT_name("__int_least16_t")
.dwattr $C$DW$T$132, DW_AT_type(*$C$DW$T$131)
.dwattr $C$DW$T$132, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$132, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$132, DW_AT_decl_line(0x59)
.dwattr $C$DW$T$132, DW_AT_decl_column(0x13)
$C$DW$T$133 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$133, DW_AT_name("int_least16_t")
.dwattr $C$DW$T$133, DW_AT_type(*$C$DW$T$132)
.dwattr $C$DW$T$133, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$133, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$133, DW_AT_decl_line(0x29)
.dwattr $C$DW$T$133, DW_AT_decl_column(0x1a)
$C$DW$T$134 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$134, DW_AT_name("int16_t")
.dwattr $C$DW$T$134, DW_AT_type(*$C$DW$T$131)
.dwattr $C$DW$T$134, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$134, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$134, DW_AT_decl_line(0x29)
.dwattr $C$DW$T$134, DW_AT_decl_column(0x14)
$C$DW$T$9 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$9, DW_AT_name("unsigned short")
.dwattr $C$DW$T$9, DW_AT_byte_size(0x02)
$C$DW$T$135 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$135, DW_AT_name("___wchar_t")
.dwattr $C$DW$T$135, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$135, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$135, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$135, DW_AT_decl_line(0x76)
.dwattr $C$DW$T$135, DW_AT_decl_column(0x1a)
$C$DW$T$75 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$75, DW_AT_name("__uint16_t")
.dwattr $C$DW$T$75, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$75, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$75, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$75, DW_AT_decl_line(0x3c)
.dwattr $C$DW$T$75, DW_AT_decl_column(0x19)
$C$DW$T$136 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$136, DW_AT_name("__mode_t")
.dwattr $C$DW$T$136, DW_AT_type(*$C$DW$T$75)
.dwattr $C$DW$T$136, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$136, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$136, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$136, DW_AT_decl_column(0x14)
$C$DW$T$137 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$137, DW_AT_name("__uint_least16_t")
.dwattr $C$DW$T$137, DW_AT_type(*$C$DW$T$75)
.dwattr $C$DW$T$137, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$137, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$137, DW_AT_decl_line(0x6e)
.dwattr $C$DW$T$137, DW_AT_decl_column(0x14)
$C$DW$T$138 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$138, DW_AT_name("__char16_t")
.dwattr $C$DW$T$138, DW_AT_type(*$C$DW$T$137)
.dwattr $C$DW$T$138, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$138, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$138, DW_AT_decl_line(0x66)
.dwattr $C$DW$T$138, DW_AT_decl_column(0x1a)
$C$DW$T$139 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$139, DW_AT_name("uint_least16_t")
.dwattr $C$DW$T$139, DW_AT_type(*$C$DW$T$137)
.dwattr $C$DW$T$139, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$139, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$139, DW_AT_decl_line(0x2e)
.dwattr $C$DW$T$139, DW_AT_decl_column(0x1a)
$C$DW$T$76 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$76, DW_AT_name("uint16_t")
.dwattr $C$DW$T$76, DW_AT_type(*$C$DW$T$75)
.dwattr $C$DW$T$76, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$76, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$76, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$76, DW_AT_decl_column(0x15)
$C$DW$T$140 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$140, DW_AT_name("wchar_t")
.dwattr $C$DW$T$140, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$140, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$140, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$140, DW_AT_decl_line(0x41)
.dwattr $C$DW$T$140, DW_AT_decl_column(0x1a)
$C$DW$T$10 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$10, DW_AT_name("int")
.dwattr $C$DW$T$10, DW_AT_byte_size(0x04)
$C$DW$T$141 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$141, DW_AT_name("_Mbstatet")
.dwattr $C$DW$T$141, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$141, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$141, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$141, DW_AT_decl_line(0x84)
.dwattr $C$DW$T$141, DW_AT_decl_column(0x0d)
$C$DW$T$142 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$142, DW_AT_name("__mbstate_t")
.dwattr $C$DW$T$142, DW_AT_type(*$C$DW$T$141)
.dwattr $C$DW$T$142, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$142, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$142, DW_AT_decl_line(0x87)
.dwattr $C$DW$T$142, DW_AT_decl_column(0x13)
$C$DW$T$143 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$143, DW_AT_name("__accmode_t")
.dwattr $C$DW$T$143, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$143, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$143, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$143, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$143, DW_AT_decl_column(0x0e)
$C$DW$T$144 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$144, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$144, DW_AT_language(DW_LANG_C)
$C$DW$156 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$156, DW_AT_type(*$C$DW$T$123)
$C$DW$157 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$157, DW_AT_type(*$C$DW$T$123)
.dwendtag $C$DW$T$144
$C$DW$T$145 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$145, DW_AT_type(*$C$DW$T$144)
.dwattr $C$DW$T$145, DW_AT_address_class(0x20)
$C$DW$T$146 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$146, DW_AT_name("__TI_compar_fn")
.dwattr $C$DW$T$146, DW_AT_type(*$C$DW$T$145)
.dwattr $C$DW$T$146, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$146, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$146, DW_AT_decl_line(0xb5)
.dwattr $C$DW$T$146, DW_AT_decl_column(0x13)
$C$DW$T$147 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$147, DW_AT_name("__cpulevel_t")
.dwattr $C$DW$T$147, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$147, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$147, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$147, DW_AT_decl_line(0x4b)
.dwattr $C$DW$T$147, DW_AT_decl_column(0x0e)
$C$DW$T$148 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$148, DW_AT_name("__cpusetid_t")
.dwattr $C$DW$T$148, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$148, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$148, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$148, DW_AT_decl_line(0x4c)
.dwattr $C$DW$T$148, DW_AT_decl_column(0x0e)
$C$DW$T$149 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$149, DW_AT_name("__cpuwhich_t")
.dwattr $C$DW$T$149, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$149, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$149, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$149, DW_AT_decl_line(0x4a)
.dwattr $C$DW$T$149, DW_AT_decl_column(0x0e)
$C$DW$T$150 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$150, DW_AT_name("__ct_rune_t")
.dwattr $C$DW$T$150, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$150, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$150, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$150, DW_AT_decl_line(0x60)
.dwattr $C$DW$T$150, DW_AT_decl_column(0x0e)
$C$DW$T$151 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$151, DW_AT_name("__rune_t")
.dwattr $C$DW$T$151, DW_AT_type(*$C$DW$T$150)
.dwattr $C$DW$T$151, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$151, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$151, DW_AT_decl_line(0x61)
.dwattr $C$DW$T$151, DW_AT_decl_column(0x15)
$C$DW$T$152 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$152, DW_AT_name("__wint_t")
.dwattr $C$DW$T$152, DW_AT_type(*$C$DW$T$150)
.dwattr $C$DW$T$152, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$152, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$152, DW_AT_decl_line(0x62)
.dwattr $C$DW$T$152, DW_AT_decl_column(0x15)
$C$DW$T$153 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$153, DW_AT_name("__int32_t")
.dwattr $C$DW$T$153, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$153, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$153, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$153, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$153, DW_AT_decl_column(0x0f)
$C$DW$T$154 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$154, DW_AT_name("__blksize_t")
.dwattr $C$DW$T$154, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$154, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$154, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$154, DW_AT_decl_line(0x2e)
.dwattr $C$DW$T$154, DW_AT_decl_column(0x13)
$C$DW$T$155 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$155, DW_AT_name("__clockid_t")
.dwattr $C$DW$T$155, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$155, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$155, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$155, DW_AT_decl_line(0x30)
.dwattr $C$DW$T$155, DW_AT_decl_column(0x13)
$C$DW$T$156 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$156, DW_AT_name("__critical_t")
.dwattr $C$DW$T$156, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$156, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$156, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$156, DW_AT_decl_line(0x4e)
.dwattr $C$DW$T$156, DW_AT_decl_column(0x13)
$C$DW$T$157 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$157, DW_AT_name("__int_fast16_t")
.dwattr $C$DW$T$157, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$157, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$157, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$157, DW_AT_decl_line(0x55)
.dwattr $C$DW$T$157, DW_AT_decl_column(0x13)
$C$DW$T$158 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$158, DW_AT_name("int_fast16_t")
.dwattr $C$DW$T$158, DW_AT_type(*$C$DW$T$157)
.dwattr $C$DW$T$158, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$158, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$158, DW_AT_decl_line(0x33)
.dwattr $C$DW$T$158, DW_AT_decl_column(0x19)
$C$DW$T$159 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$159, DW_AT_name("__int_fast32_t")
.dwattr $C$DW$T$159, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$159, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$159, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$159, DW_AT_decl_line(0x56)
.dwattr $C$DW$T$159, DW_AT_decl_column(0x13)
$C$DW$T$160 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$160, DW_AT_name("int_fast32_t")
.dwattr $C$DW$T$160, DW_AT_type(*$C$DW$T$159)
.dwattr $C$DW$T$160, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$160, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$160, DW_AT_decl_line(0x34)
.dwattr $C$DW$T$160, DW_AT_decl_column(0x19)
$C$DW$T$161 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$161, DW_AT_name("__int_fast8_t")
.dwattr $C$DW$T$161, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$161, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$161, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$161, DW_AT_decl_line(0x54)
.dwattr $C$DW$T$161, DW_AT_decl_column(0x13)
$C$DW$T$162 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$162, DW_AT_name("int_fast8_t")
.dwattr $C$DW$T$162, DW_AT_type(*$C$DW$T$161)
.dwattr $C$DW$T$162, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$162, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$162, DW_AT_decl_line(0x32)
.dwattr $C$DW$T$162, DW_AT_decl_column(0x18)
$C$DW$T$163 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$163, DW_AT_name("__int_least32_t")
.dwattr $C$DW$T$163, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$163, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$163, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$163, DW_AT_decl_line(0x5a)
.dwattr $C$DW$T$163, DW_AT_decl_column(0x13)
$C$DW$T$164 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$164, DW_AT_name("int_least32_t")
.dwattr $C$DW$T$164, DW_AT_type(*$C$DW$T$163)
.dwattr $C$DW$T$164, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$164, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$164, DW_AT_decl_line(0x2a)
.dwattr $C$DW$T$164, DW_AT_decl_column(0x1a)
$C$DW$T$165 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$165, DW_AT_name("__intfptr_t")
.dwattr $C$DW$T$165, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$165, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$165, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$165, DW_AT_decl_line(0x51)
.dwattr $C$DW$T$165, DW_AT_decl_column(0x13)
$C$DW$T$166 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$166, DW_AT_name("__intptr_t")
.dwattr $C$DW$T$166, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$166, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$166, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$166, DW_AT_decl_line(0x53)
.dwattr $C$DW$T$166, DW_AT_decl_column(0x13)
$C$DW$T$167 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$167, DW_AT_name("intptr_t")
.dwattr $C$DW$T$167, DW_AT_type(*$C$DW$T$166)
.dwattr $C$DW$T$167, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$167, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$167, DW_AT_decl_line(0x4c)
.dwattr $C$DW$T$167, DW_AT_decl_column(0x15)
$C$DW$T$168 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$168, DW_AT_name("__lwpid_t")
.dwattr $C$DW$T$168, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$168, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$168, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$168, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$168, DW_AT_decl_column(0x13)
$C$DW$T$169 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$169, DW_AT_name("__pid_t")
.dwattr $C$DW$T$169, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$169, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$169, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$169, DW_AT_decl_line(0x3f)
.dwattr $C$DW$T$169, DW_AT_decl_column(0x13)
$C$DW$T$170 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$170, DW_AT_name("__ptrdiff_t")
.dwattr $C$DW$T$170, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$170, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$170, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$170, DW_AT_decl_line(0x5c)
.dwattr $C$DW$T$170, DW_AT_decl_column(0x13)
$C$DW$T$171 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$171, DW_AT_name("__register_t")
.dwattr $C$DW$T$171, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$171, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$171, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$171, DW_AT_decl_line(0x5d)
.dwattr $C$DW$T$171, DW_AT_decl_column(0x13)
$C$DW$T$172 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$172, DW_AT_name("__segsz_t")
.dwattr $C$DW$T$172, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$172, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$172, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$172, DW_AT_decl_line(0x5e)
.dwattr $C$DW$T$172, DW_AT_decl_column(0x13)
$C$DW$T$173 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$173, DW_AT_name("__ssize_t")
.dwattr $C$DW$T$173, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$173, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$173, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$173, DW_AT_decl_line(0x60)
.dwattr $C$DW$T$173, DW_AT_decl_column(0x13)
$C$DW$T$174 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$174, DW_AT_name("int32_t")
.dwattr $C$DW$T$174, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$174, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$174, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$174, DW_AT_decl_line(0x2e)
.dwattr $C$DW$T$174, DW_AT_decl_column(0x14)
$C$DW$T$175 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$175, DW_AT_name("__nl_item")
.dwattr $C$DW$T$175, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$175, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$175, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$175, DW_AT_decl_line(0x3b)
.dwattr $C$DW$T$175, DW_AT_decl_column(0x0e)
$C$DW$T$176 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$176, DW_AT_name("ptrdiff_t")
.dwattr $C$DW$T$176, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$176, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$176, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$176, DW_AT_decl_line(0x36)
.dwattr $C$DW$T$176, DW_AT_decl_column(0x1c)
$C$DW$T$11 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$11, DW_AT_name("unsigned int")
.dwattr $C$DW$T$11, DW_AT_byte_size(0x04)
$C$DW$T$39 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$39, DW_AT_name("__uint32_t")
.dwattr $C$DW$T$39, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$39, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$39, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$39, DW_AT_decl_line(0x3e)
.dwattr $C$DW$T$39, DW_AT_decl_column(0x17)
$C$DW$T$177 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$177, DW_AT_name("__clock_t")
.dwattr $C$DW$T$177, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$177, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$177, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$177, DW_AT_decl_line(0x4d)
.dwattr $C$DW$T$177, DW_AT_decl_column(0x14)
$C$DW$T$178 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$178, DW_AT_name("__fflags_t")
.dwattr $C$DW$T$178, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$178, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$178, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$178, DW_AT_decl_line(0x31)
.dwattr $C$DW$T$178, DW_AT_decl_column(0x14)
$C$DW$T$179 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$179, DW_AT_name("__fixpt_t")
.dwattr $C$DW$T$179, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$179, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$179, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$179, DW_AT_decl_line(0x76)
.dwattr $C$DW$T$179, DW_AT_decl_column(0x14)
$C$DW$T$180 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$180, DW_AT_name("__gid_t")
.dwattr $C$DW$T$180, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$180, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$180, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$180, DW_AT_decl_line(0x34)
.dwattr $C$DW$T$180, DW_AT_decl_column(0x14)
$C$DW$T$181 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$181, DW_AT_name("__size_t")
.dwattr $C$DW$T$181, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$181, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$181, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$181, DW_AT_decl_line(0x5f)
.dwattr $C$DW$T$181, DW_AT_decl_column(0x14)
$C$DW$T$182 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$182, DW_AT_name("__socklen_t")
.dwattr $C$DW$T$182, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$182, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$182, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$182, DW_AT_decl_line(0x44)
.dwattr $C$DW$T$182, DW_AT_decl_column(0x14)
$C$DW$T$183 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$183, DW_AT_name("__time_t")
.dwattr $C$DW$T$183, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$183, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$183, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$183, DW_AT_decl_line(0x64)
.dwattr $C$DW$T$183, DW_AT_decl_column(0x19)
$C$DW$T$184 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$184, DW_AT_name("__u_register_t")
.dwattr $C$DW$T$184, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$184, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$184, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$184, DW_AT_decl_line(0x71)
.dwattr $C$DW$T$184, DW_AT_decl_column(0x14)
$C$DW$T$185 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$185, DW_AT_name("__uid_t")
.dwattr $C$DW$T$185, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$185, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$185, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$185, DW_AT_decl_line(0x48)
.dwattr $C$DW$T$185, DW_AT_decl_column(0x14)
$C$DW$T$186 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$186, DW_AT_name("__uint_fast16_t")
.dwattr $C$DW$T$186, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$186, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$186, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$186, DW_AT_decl_line(0x6a)
.dwattr $C$DW$T$186, DW_AT_decl_column(0x14)
$C$DW$T$187 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$187, DW_AT_name("uint_fast16_t")
.dwattr $C$DW$T$187, DW_AT_type(*$C$DW$T$186)
.dwattr $C$DW$T$187, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$187, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$187, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$187, DW_AT_decl_column(0x1a)
$C$DW$T$188 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$188, DW_AT_name("__uint_fast32_t")
.dwattr $C$DW$T$188, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$188, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$188, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$188, DW_AT_decl_line(0x6b)
.dwattr $C$DW$T$188, DW_AT_decl_column(0x14)
$C$DW$T$189 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$189, DW_AT_name("uint_fast32_t")
.dwattr $C$DW$T$189, DW_AT_type(*$C$DW$T$188)
.dwattr $C$DW$T$189, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$189, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$189, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$189, DW_AT_decl_column(0x1a)
$C$DW$T$190 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$190, DW_AT_name("__uint_fast8_t")
.dwattr $C$DW$T$190, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$190, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$190, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$190, DW_AT_decl_line(0x69)
.dwattr $C$DW$T$190, DW_AT_decl_column(0x14)
$C$DW$T$191 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$191, DW_AT_name("uint_fast8_t")
.dwattr $C$DW$T$191, DW_AT_type(*$C$DW$T$190)
.dwattr $C$DW$T$191, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$191, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$191, DW_AT_decl_line(0x37)
.dwattr $C$DW$T$191, DW_AT_decl_column(0x19)
$C$DW$T$192 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$192, DW_AT_name("__uint_least32_t")
.dwattr $C$DW$T$192, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$192, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$192, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$192, DW_AT_decl_line(0x6f)
.dwattr $C$DW$T$192, DW_AT_decl_column(0x14)
$C$DW$T$193 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$193, DW_AT_name("__char32_t")
.dwattr $C$DW$T$193, DW_AT_type(*$C$DW$T$192)
.dwattr $C$DW$T$193, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$193, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$193, DW_AT_decl_line(0x67)
.dwattr $C$DW$T$193, DW_AT_decl_column(0x1a)
$C$DW$T$194 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$194, DW_AT_name("uint_least32_t")
.dwattr $C$DW$T$194, DW_AT_type(*$C$DW$T$192)
.dwattr $C$DW$T$194, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$194, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$194, DW_AT_decl_line(0x2f)
.dwattr $C$DW$T$194, DW_AT_decl_column(0x1a)
$C$DW$T$195 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$195, DW_AT_name("__uintfptr_t")
.dwattr $C$DW$T$195, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$195, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$195, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$195, DW_AT_decl_line(0x66)
.dwattr $C$DW$T$195, DW_AT_decl_column(0x14)
$C$DW$T$196 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$196, DW_AT_name("__uintptr_t")
.dwattr $C$DW$T$196, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$196, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$196, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$196, DW_AT_decl_line(0x68)
.dwattr $C$DW$T$196, DW_AT_decl_column(0x14)
$C$DW$T$197 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$197, DW_AT_name("uintptr_t")
.dwattr $C$DW$T$197, DW_AT_type(*$C$DW$T$196)
.dwattr $C$DW$T$197, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$197, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$197, DW_AT_decl_line(0x50)
.dwattr $C$DW$T$197, DW_AT_decl_column(0x16)
$C$DW$T$198 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$198, DW_AT_name("__vm_offset_t")
.dwattr $C$DW$T$198, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$198, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$198, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$198, DW_AT_decl_line(0x72)
.dwattr $C$DW$T$198, DW_AT_decl_column(0x14)
$C$DW$T$199 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$199, DW_AT_name("__vm_paddr_t")
.dwattr $C$DW$T$199, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$199, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$199, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$199, DW_AT_decl_line(0x73)
.dwattr $C$DW$T$199, DW_AT_decl_column(0x14)
$C$DW$T$200 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$200, DW_AT_name("__vm_size_t")
.dwattr $C$DW$T$200, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$200, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$200, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$200, DW_AT_decl_line(0x74)
.dwattr $C$DW$T$200, DW_AT_decl_column(0x14)
$C$DW$T$40 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$40, DW_AT_name("uint32_t")
.dwattr $C$DW$T$40, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$40, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$40, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$40, DW_AT_decl_line(0x42)
.dwattr $C$DW$T$40, DW_AT_decl_column(0x15)
$C$DW$T$77 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$77, DW_AT_name("StackType_t")
.dwattr $C$DW$T$77, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$T$77, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$77, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$77, DW_AT_decl_line(0x37)
.dwattr $C$DW$T$77, DW_AT_decl_column(0x18)
$C$DW$T$78 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$78, DW_AT_type(*$C$DW$T$77)
.dwattr $C$DW$T$78, DW_AT_address_class(0x20)
$C$DW$T$41 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$41, DW_AT_name("TickType_t")
.dwattr $C$DW$T$41, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$T$41, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$41, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$41, DW_AT_decl_line(0x3f)
.dwattr $C$DW$T$41, DW_AT_decl_column(0x13)
$C$DW$T$201 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$201, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$T$201, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$201, DW_AT_byte_size(0x08)
$C$DW$158 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$158, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$201
$C$DW$T$203 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$203, DW_AT_name("__useconds_t")
.dwattr $C$DW$T$203, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$203, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$203, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$203, DW_AT_decl_line(0x49)
.dwattr $C$DW$T$203, DW_AT_decl_column(0x16)
$C$DW$T$31 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$31, DW_AT_name("size_t")
.dwattr $C$DW$T$31, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$31, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$31, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$31, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$31, DW_AT_decl_column(0x19)
$C$DW$T$60 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$60, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$T$60, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$60, DW_AT_byte_size(0x10)
$C$DW$159 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$159, DW_AT_upper_bound(0x03)
.dwendtag $C$DW$T$60
$C$DW$T$12 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$12, DW_AT_name("long")
.dwattr $C$DW$T$12, DW_AT_byte_size(0x04)
$C$DW$T$87 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$87, DW_AT_name("BaseType_t")
.dwattr $C$DW$T$87, DW_AT_type(*$C$DW$T$12)
.dwattr $C$DW$T$87, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$87, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$87, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$87, DW_AT_decl_column(0x0e)
$C$DW$T$204 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$204, DW_AT_type(*$C$DW$T$87)
.dwattr $C$DW$T$204, DW_AT_language(DW_LANG_C)
$C$DW$160 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$160, DW_AT_type(*$C$DW$T$3)
.dwendtag $C$DW$T$204
$C$DW$T$205 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$205, DW_AT_type(*$C$DW$T$204)
.dwattr $C$DW$T$205, DW_AT_address_class(0x20)
$C$DW$T$206 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$206, DW_AT_name("TaskHookFunction_t")
.dwattr $C$DW$T$206, DW_AT_type(*$C$DW$T$205)
.dwattr $C$DW$T$206, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$206, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$206, DW_AT_decl_line(0x44)
.dwattr $C$DW$T$206, DW_AT_decl_column(0x16)
$C$DW$T$207 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$207, DW_AT_name("__key_t")
.dwattr $C$DW$T$207, DW_AT_type(*$C$DW$T$12)
.dwattr $C$DW$T$207, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$207, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$207, DW_AT_decl_line(0x37)
.dwattr $C$DW$T$207, DW_AT_decl_column(0x0f)
$C$DW$T$208 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$208, DW_AT_name("__suseconds_t")
.dwattr $C$DW$T$208, DW_AT_type(*$C$DW$T$12)
.dwattr $C$DW$T$208, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$208, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$208, DW_AT_decl_line(0x45)
.dwattr $C$DW$T$208, DW_AT_decl_column(0x0f)
$C$DW$T$13 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$13, DW_AT_name("unsigned long")
.dwattr $C$DW$T$13, DW_AT_byte_size(0x04)
$C$DW$T$26 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$26, DW_AT_name("UBaseType_t")
.dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$13)
.dwattr $C$DW$T$26, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$26, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$26, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$26, DW_AT_decl_column(0x17)
$C$DW$T$34 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$34, DW_AT_type(*$C$DW$T$26)
$C$DW$T$57 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$57, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$T$57, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$57, DW_AT_byte_size(0x0c)
$C$DW$161 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$161, DW_AT_upper_bound(0x02)
.dwendtag $C$DW$T$57
$C$DW$T$65 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$65, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$T$65, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$65, DW_AT_byte_size(0x08)
$C$DW$162 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$162, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$65
$C$DW$T$14 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$14, DW_AT_name("long long")
.dwattr $C$DW$T$14, DW_AT_byte_size(0x08)
$C$DW$T$209 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$209, DW_AT_name("__int64_t")
.dwattr $C$DW$T$209, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$T$209, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$209, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$209, DW_AT_decl_line(0x43)
.dwattr $C$DW$T$209, DW_AT_decl_column(0x14)
$C$DW$T$210 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$210, DW_AT_name("__blkcnt_t")
.dwattr $C$DW$T$210, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$210, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$210, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$210, DW_AT_decl_line(0x2f)
.dwattr $C$DW$T$210, DW_AT_decl_column(0x13)
$C$DW$T$211 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$211, DW_AT_name("__id_t")
.dwattr $C$DW$T$211, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$211, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$211, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$211, DW_AT_decl_line(0x35)
.dwattr $C$DW$T$211, DW_AT_decl_column(0x13)
$C$DW$T$212 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$212, DW_AT_name("__int_fast64_t")
.dwattr $C$DW$T$212, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$212, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$212, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$212, DW_AT_decl_line(0x57)
.dwattr $C$DW$T$212, DW_AT_decl_column(0x13)
$C$DW$T$213 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$213, DW_AT_name("int_fast64_t")
.dwattr $C$DW$T$213, DW_AT_type(*$C$DW$T$212)
.dwattr $C$DW$T$213, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$213, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$213, DW_AT_decl_line(0x35)
.dwattr $C$DW$T$213, DW_AT_decl_column(0x19)
$C$DW$T$214 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$214, DW_AT_name("__int_least64_t")
.dwattr $C$DW$T$214, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$214, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$214, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$214, DW_AT_decl_line(0x5b)
.dwattr $C$DW$T$214, DW_AT_decl_column(0x13)
$C$DW$T$215 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$215, DW_AT_name("int_least64_t")
.dwattr $C$DW$T$215, DW_AT_type(*$C$DW$T$214)
.dwattr $C$DW$T$215, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$215, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$215, DW_AT_decl_line(0x2b)
.dwattr $C$DW$T$215, DW_AT_decl_column(0x1a)
$C$DW$T$216 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$216, DW_AT_name("__intmax_t")
.dwattr $C$DW$T$216, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$216, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$216, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$216, DW_AT_decl_line(0x52)
.dwattr $C$DW$T$216, DW_AT_decl_column(0x13)
$C$DW$T$217 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$217, DW_AT_name("intmax_t")
.dwattr $C$DW$T$217, DW_AT_type(*$C$DW$T$216)
.dwattr $C$DW$T$217, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$217, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$217, DW_AT_decl_line(0x54)
.dwattr $C$DW$T$217, DW_AT_decl_column(0x15)
$C$DW$T$218 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$218, DW_AT_name("__off64_t")
.dwattr $C$DW$T$218, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$218, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$218, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$218, DW_AT_decl_line(0x3e)
.dwattr $C$DW$T$218, DW_AT_decl_column(0x13)
$C$DW$T$219 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$219, DW_AT_name("__off_t")
.dwattr $C$DW$T$219, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$219, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$219, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$219, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$219, DW_AT_decl_column(0x13)
$C$DW$T$220 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$220, DW_AT_name("__rlim_t")
.dwattr $C$DW$T$220, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$220, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$220, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$220, DW_AT_decl_line(0x40)
.dwattr $C$DW$T$220, DW_AT_decl_column(0x13)
$C$DW$T$221 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$221, DW_AT_name("int64_t")
.dwattr $C$DW$T$221, DW_AT_type(*$C$DW$T$209)
.dwattr $C$DW$T$221, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$221, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$221, DW_AT_decl_line(0x33)
.dwattr $C$DW$T$221, DW_AT_decl_column(0x14)
$C$DW$T$15 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$15, DW_AT_name("unsigned long long")
.dwattr $C$DW$T$15, DW_AT_byte_size(0x08)
$C$DW$T$222 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$222, DW_AT_name("__uint64_t")
.dwattr $C$DW$T$222, DW_AT_type(*$C$DW$T$15)
.dwattr $C$DW$T$222, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$222, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$222, DW_AT_decl_line(0x48)
.dwattr $C$DW$T$222, DW_AT_decl_column(0x1c)
$C$DW$T$223 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$223, DW_AT_name("__dev_t")
.dwattr $C$DW$T$223, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$223, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$223, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$223, DW_AT_decl_line(0x74)
.dwattr $C$DW$T$223, DW_AT_decl_column(0x14)
$C$DW$T$224 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$224, DW_AT_name("__fsblkcnt_t")
.dwattr $C$DW$T$224, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$224, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$224, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$224, DW_AT_decl_line(0x32)
.dwattr $C$DW$T$224, DW_AT_decl_column(0x14)
$C$DW$T$225 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$225, DW_AT_name("__fsfilcnt_t")
.dwattr $C$DW$T$225, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$225, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$225, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$225, DW_AT_decl_line(0x33)
.dwattr $C$DW$T$225, DW_AT_decl_column(0x14)
$C$DW$T$226 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$226, DW_AT_name("__ino_t")
.dwattr $C$DW$T$226, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$226, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$226, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$226, DW_AT_decl_line(0x36)
.dwattr $C$DW$T$226, DW_AT_decl_column(0x14)
$C$DW$T$227 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$227, DW_AT_name("__nlink_t")
.dwattr $C$DW$T$227, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$227, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$227, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$227, DW_AT_decl_line(0x3c)
.dwattr $C$DW$T$227, DW_AT_decl_column(0x14)
$C$DW$T$228 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$228, DW_AT_name("__uint_fast64_t")
.dwattr $C$DW$T$228, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$228, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$228, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$228, DW_AT_decl_line(0x6c)
.dwattr $C$DW$T$228, DW_AT_decl_column(0x14)
$C$DW$T$229 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$229, DW_AT_name("uint_fast64_t")
.dwattr $C$DW$T$229, DW_AT_type(*$C$DW$T$228)
.dwattr $C$DW$T$229, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$229, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$229, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$229, DW_AT_decl_column(0x1a)
$C$DW$T$230 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$230, DW_AT_name("__uint_least64_t")
.dwattr $C$DW$T$230, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$230, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$230, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$230, DW_AT_decl_line(0x70)
.dwattr $C$DW$T$230, DW_AT_decl_column(0x14)
$C$DW$T$231 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$231, DW_AT_name("uint_least64_t")
.dwattr $C$DW$T$231, DW_AT_type(*$C$DW$T$230)
.dwattr $C$DW$T$231, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$231, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$231, DW_AT_decl_line(0x30)
.dwattr $C$DW$T$231, DW_AT_decl_column(0x1a)
$C$DW$T$232 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$232, DW_AT_name("__uintmax_t")
.dwattr $C$DW$T$232, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$232, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$232, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$232, DW_AT_decl_line(0x67)
.dwattr $C$DW$T$232, DW_AT_decl_column(0x14)
$C$DW$T$233 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$233, DW_AT_name("__rman_res_t")
.dwattr $C$DW$T$233, DW_AT_type(*$C$DW$T$232)
.dwattr $C$DW$T$233, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$233, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$233, DW_AT_decl_line(0x8f)
.dwattr $C$DW$T$233, DW_AT_decl_column(0x19)
$C$DW$T$234 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$234, DW_AT_name("uintmax_t")
.dwattr $C$DW$T$234, DW_AT_type(*$C$DW$T$232)
.dwattr $C$DW$T$234, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$234, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$234, DW_AT_decl_line(0x58)
.dwattr $C$DW$T$234, DW_AT_decl_column(0x16)
$C$DW$T$235 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$235, DW_AT_name("uint64_t")
.dwattr $C$DW$T$235, DW_AT_type(*$C$DW$T$222)
.dwattr $C$DW$T$235, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$235, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$235, DW_AT_decl_line(0x47)
.dwattr $C$DW$T$235, DW_AT_decl_column(0x15)
$C$DW$T$16 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$16, DW_AT_name("float")
.dwattr $C$DW$T$16, DW_AT_byte_size(0x04)
$C$DW$T$236 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$236, DW_AT_name("__float_t")
.dwattr $C$DW$T$236, DW_AT_type(*$C$DW$T$16)
.dwattr $C$DW$T$236, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$236, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$236, DW_AT_decl_line(0x50)
.dwattr $C$DW$T$236, DW_AT_decl_column(0x10)
$C$DW$T$17 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$17, DW_AT_name("double")
.dwattr $C$DW$T$17, DW_AT_byte_size(0x08)
$C$DW$T$237 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$237, DW_AT_name("__double_t")
.dwattr $C$DW$T$237, DW_AT_type(*$C$DW$T$17)
.dwattr $C$DW$T$237, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$237, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$237, DW_AT_decl_line(0x4f)
.dwattr $C$DW$T$237, DW_AT_decl_column(0x11)
$C$DW$T$18 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$18, DW_AT_name("long double")
.dwattr $C$DW$T$18, DW_AT_byte_size(0x08)
$C$DW$T$238 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$238, DW_AT_name("max_align_t")
.dwattr $C$DW$T$238, DW_AT_type(*$C$DW$T$18)
.dwattr $C$DW$T$238, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$238, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$238, DW_AT_decl_line(0x4f)
.dwattr $C$DW$T$238, DW_AT_decl_column(0x15)
$C$DW$T$72 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$72, DW_AT_type(*$C$DW$T$6)
$C$DW$T$73 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$73, DW_AT_type(*$C$DW$T$72)
.dwattr $C$DW$T$73, DW_AT_address_class(0x20)
$C$DW$T$74 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$74, DW_AT_type(*$C$DW$T$73)
$C$DW$T$19 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$19, DW_AT_name("__mq")
.dwattr $C$DW$T$19, DW_AT_declaration
.dwattr $C$DW$T$19, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$19, DW_AT_decl_line(0x47)
.dwattr $C$DW$T$19, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$19
$C$DW$T$239 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$239, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$T$239, DW_AT_address_class(0x20)
$C$DW$T$240 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$240, DW_AT_name("__mqd_t")
.dwattr $C$DW$T$240, DW_AT_type(*$C$DW$T$239)
.dwattr $C$DW$T$240, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$240, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$240, DW_AT_decl_line(0x47)
.dwattr $C$DW$T$240, DW_AT_decl_column(0x16)
$C$DW$T$20 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$20, DW_AT_name("__timer")
.dwattr $C$DW$T$20, DW_AT_declaration
.dwattr $C$DW$T$20, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$20, DW_AT_decl_line(0x46)
.dwattr $C$DW$T$20, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$20
$C$DW$T$241 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$241, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$T$241, DW_AT_address_class(0x20)
$C$DW$T$242 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$242, DW_AT_name("__timer_t")
.dwattr $C$DW$T$242, DW_AT_type(*$C$DW$T$241)
.dwattr $C$DW$T$242, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$242, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$242, DW_AT_decl_line(0x46)
.dwattr $C$DW$T$242, DW_AT_decl_column(0x19)
$C$DW$T$33 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$33, DW_AT_name("__va_list_t")
.dwattr $C$DW$T$33, DW_AT_byte_size(0x04)
$C$DW$163 .dwtag DW_TAG_member
.dwattr $C$DW$163, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$163, DW_AT_name("__ap")
.dwattr $C$DW$163, DW_AT_TI_symbol_name("__ap")
.dwattr $C$DW$163, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$163, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$163, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$163, DW_AT_decl_line(0x88)
.dwattr $C$DW$163, DW_AT_decl_column(0x0c)
.dwattr $C$DW$T$33, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$33, DW_AT_decl_line(0x87)
.dwattr $C$DW$T$33, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$33
$C$DW$T$243 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$243, DW_AT_name("__va_list")
.dwattr $C$DW$T$243, DW_AT_type(*$C$DW$T$33)
.dwattr $C$DW$T$243, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$243, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$243, DW_AT_decl_line(0x89)
.dwattr $C$DW$T$243, DW_AT_decl_column(0x03)
$C$DW$T$21 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$21, DW_AT_name("tskTaskControlBlock")
.dwattr $C$DW$T$21, DW_AT_declaration
.dwattr $C$DW$T$21, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$21, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$21, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$21
$C$DW$T$82 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$82, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$T$82, DW_AT_address_class(0x20)
$C$DW$T$83 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$83, DW_AT_name("TaskHandle_t")
.dwattr $C$DW$T$83, DW_AT_type(*$C$DW$T$82)
.dwattr $C$DW$T$83, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$83, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$83, DW_AT_decl_line(0x3e)
.dwattr $C$DW$T$83, DW_AT_decl_column(0x25)
$C$DW$T$38 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$38, DW_AT_name("xLIST")
.dwattr $C$DW$T$38, DW_AT_byte_size(0x14)
$C$DW$164 .dwtag DW_TAG_member
.dwattr $C$DW$164, DW_AT_type(*$C$DW$T$34)
.dwattr $C$DW$164, DW_AT_name("uxNumberOfItems")
.dwattr $C$DW$164, DW_AT_TI_symbol_name("uxNumberOfItems")
.dwattr $C$DW$164, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$164, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$164, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$164, DW_AT_decl_line(0xa7)
.dwattr $C$DW$164, DW_AT_decl_column(0x17)
$C$DW$165 .dwtag DW_TAG_member
.dwattr $C$DW$165, DW_AT_type(*$C$DW$T$36)
.dwattr $C$DW$165, DW_AT_name("pxIndex")
.dwattr $C$DW$165, DW_AT_TI_symbol_name("pxIndex")
.dwattr $C$DW$165, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$165, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$165, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$165, DW_AT_decl_line(0xa8)
.dwattr $C$DW$165, DW_AT_decl_column(0x23)
$C$DW$166 .dwtag DW_TAG_member
.dwattr $C$DW$166, DW_AT_type(*$C$DW$T$37)
.dwattr $C$DW$166, DW_AT_name("xListEnd")
.dwattr $C$DW$166, DW_AT_TI_symbol_name("xListEnd")
.dwattr $C$DW$166, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$166, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$166, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$166, DW_AT_decl_line(0xa9)
.dwattr $C$DW$166, DW_AT_decl_column(0x11)
.dwattr $C$DW$T$38, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$38, DW_AT_decl_line(0xa4)
.dwattr $C$DW$T$38, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$38
$C$DW$T$244 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$244, DW_AT_name("List_t")
.dwattr $C$DW$T$244, DW_AT_type(*$C$DW$T$38)
.dwattr $C$DW$T$244, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$244, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$244, DW_AT_decl_line(0xab)
.dwattr $C$DW$T$244, DW_AT_decl_column(0x03)
$C$DW$T$43 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$43, DW_AT_type(*$C$DW$T$38)
.dwattr $C$DW$T$43, DW_AT_address_class(0x20)
$C$DW$T$44 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$44, DW_AT_name("xLIST_ITEM")
.dwattr $C$DW$T$44, DW_AT_byte_size(0x14)
$C$DW$167 .dwtag DW_TAG_member
.dwattr $C$DW$167, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$167, DW_AT_name("xItemValue")
.dwattr $C$DW$167, DW_AT_TI_symbol_name("xItemValue")
.dwattr $C$DW$167, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$167, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$167, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$167, DW_AT_decl_line(0x8f)
.dwattr $C$DW$167, DW_AT_decl_column(0x21)
$C$DW$168 .dwtag DW_TAG_member
.dwattr $C$DW$168, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$168, DW_AT_name("pxNext")
.dwattr $C$DW$168, DW_AT_TI_symbol_name("pxNext")
.dwattr $C$DW$168, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$168, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$168, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$168, DW_AT_decl_line(0x90)
.dwattr $C$DW$168, DW_AT_decl_column(0x2a)
$C$DW$169 .dwtag DW_TAG_member
.dwattr $C$DW$169, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$169, DW_AT_name("pxPrevious")
.dwattr $C$DW$169, DW_AT_TI_symbol_name("pxPrevious")
.dwattr $C$DW$169, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$169, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$169, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$169, DW_AT_decl_line(0x91)
.dwattr $C$DW$169, DW_AT_decl_column(0x2a)
$C$DW$170 .dwtag DW_TAG_member
.dwattr $C$DW$170, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$170, DW_AT_name("pvOwner")
.dwattr $C$DW$170, DW_AT_TI_symbol_name("pvOwner")
.dwattr $C$DW$170, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$170, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$170, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$170, DW_AT_decl_line(0x92)
.dwattr $C$DW$170, DW_AT_decl_column(0x09)
$C$DW$171 .dwtag DW_TAG_member
.dwattr $C$DW$171, DW_AT_type(*$C$DW$T$43)
.dwattr $C$DW$171, DW_AT_name("pvContainer")
.dwattr $C$DW$171, DW_AT_TI_symbol_name("pvContainer")
.dwattr $C$DW$171, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$171, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$171, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$171, DW_AT_decl_line(0x93)
.dwattr $C$DW$171, DW_AT_decl_column(0x25)
.dwattr $C$DW$T$44, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$44, DW_AT_decl_line(0x8c)
.dwattr $C$DW$T$44, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$44
$C$DW$T$35 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$35, DW_AT_name("ListItem_t")
.dwattr $C$DW$T$35, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$35, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$35, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$35, DW_AT_decl_line(0x96)
.dwattr $C$DW$T$35, DW_AT_decl_column(0x1b)
$C$DW$T$36 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$36, DW_AT_type(*$C$DW$T$35)
.dwattr $C$DW$T$36, DW_AT_address_class(0x20)
$C$DW$T$42 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$42, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$42, DW_AT_address_class(0x20)
$C$DW$T$45 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$45, DW_AT_name("xMEMORY_REGION")
.dwattr $C$DW$T$45, DW_AT_byte_size(0x0c)
$C$DW$172 .dwtag DW_TAG_member
.dwattr $C$DW$172, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$172, DW_AT_name("pvBaseAddress")
.dwattr $C$DW$172, DW_AT_TI_symbol_name("pvBaseAddress")
.dwattr $C$DW$172, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$172, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$172, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$172, DW_AT_decl_line(0x69)
.dwattr $C$DW$172, DW_AT_decl_column(0x08)
$C$DW$173 .dwtag DW_TAG_member
.dwattr $C$DW$173, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$173, DW_AT_name("ulLengthInBytes")
.dwattr $C$DW$173, DW_AT_TI_symbol_name("ulLengthInBytes")
.dwattr $C$DW$173, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$173, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$173, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$173, DW_AT_decl_line(0x6a)
.dwattr $C$DW$173, DW_AT_decl_column(0x0b)
$C$DW$174 .dwtag DW_TAG_member
.dwattr $C$DW$174, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$174, DW_AT_name("ulParameters")
.dwattr $C$DW$174, DW_AT_TI_symbol_name("ulParameters")
.dwattr $C$DW$174, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$174, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$174, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$174, DW_AT_decl_line(0x6b)
.dwattr $C$DW$174, DW_AT_decl_column(0x0b)
.dwattr $C$DW$T$45, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$45, DW_AT_decl_line(0x67)
.dwattr $C$DW$T$45, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$45
$C$DW$T$79 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$79, DW_AT_name("MemoryRegion_t")
.dwattr $C$DW$T$79, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$T$79, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$79, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$79, DW_AT_decl_line(0x6c)
.dwattr $C$DW$T$79, DW_AT_decl_column(0x03)
$C$DW$T$80 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$80, DW_AT_type(*$C$DW$T$79)
.dwattr $C$DW$T$80, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$80, DW_AT_byte_size(0x0c)
$C$DW$175 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$175, DW_AT_upper_bound(0x00)
.dwendtag $C$DW$T$80
$C$DW$T$46 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$46, DW_AT_name("xMINI_LIST_ITEM")
.dwattr $C$DW$T$46, DW_AT_byte_size(0x0c)
$C$DW$176 .dwtag DW_TAG_member
.dwattr $C$DW$176, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$176, DW_AT_name("xItemValue")
.dwattr $C$DW$176, DW_AT_TI_symbol_name("xItemValue")
.dwattr $C$DW$176, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$176, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$176, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$176, DW_AT_decl_line(0x9b)
.dwattr $C$DW$176, DW_AT_decl_column(0x21)
$C$DW$177 .dwtag DW_TAG_member
.dwattr $C$DW$177, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$177, DW_AT_name("pxNext")
.dwattr $C$DW$177, DW_AT_TI_symbol_name("pxNext")
.dwattr $C$DW$177, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$177, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$177, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$177, DW_AT_decl_line(0x9c)
.dwattr $C$DW$177, DW_AT_decl_column(0x2a)
$C$DW$178 .dwtag DW_TAG_member
.dwattr $C$DW$178, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$178, DW_AT_name("pxPrevious")
.dwattr $C$DW$178, DW_AT_TI_symbol_name("pxPrevious")
.dwattr $C$DW$178, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$178, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$178, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$178, DW_AT_decl_line(0x9d)
.dwattr $C$DW$178, DW_AT_decl_column(0x2a)
.dwattr $C$DW$T$46, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$46, DW_AT_decl_line(0x98)
.dwattr $C$DW$T$46, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$46
$C$DW$T$37 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$37, DW_AT_name("MiniListItem_t")
.dwattr $C$DW$T$37, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$T$37, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$37, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$37, DW_AT_decl_line(0x9f)
.dwattr $C$DW$T$37, DW_AT_decl_column(0x20)
$C$DW$T$48 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$48, DW_AT_name("xSTATIC_EVENT_GROUP")
.dwattr $C$DW$T$48, DW_AT_byte_size(0x1c)
$C$DW$179 .dwtag DW_TAG_member
.dwattr $C$DW$179, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$179, DW_AT_name("xDummy1")
.dwattr $C$DW$179, DW_AT_TI_symbol_name("xDummy1")
.dwattr $C$DW$179, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$179, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$179, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$179, DW_AT_decl_line(0x455)
.dwattr $C$DW$179, DW_AT_decl_column(0x0d)
$C$DW$180 .dwtag DW_TAG_member
.dwattr $C$DW$180, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$180, DW_AT_name("xDummy2")
.dwattr $C$DW$180, DW_AT_TI_symbol_name("xDummy2")
.dwattr $C$DW$180, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$180, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$180, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$180, DW_AT_decl_line(0x456)
.dwattr $C$DW$180, DW_AT_decl_column(0x0f)
$C$DW$181 .dwtag DW_TAG_member
.dwattr $C$DW$181, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$181, DW_AT_name("uxDummy3")
.dwattr $C$DW$181, DW_AT_TI_symbol_name("uxDummy3")
.dwattr $C$DW$181, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$181, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$181, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$181, DW_AT_decl_line(0x459)
.dwattr $C$DW$181, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$48, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$48, DW_AT_decl_line(0x453)
.dwattr $C$DW$T$48, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$48
$C$DW$T$245 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$245, DW_AT_name("StaticEventGroup_t")
.dwattr $C$DW$T$245, DW_AT_type(*$C$DW$T$48)
.dwattr $C$DW$T$245, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$245, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$245, DW_AT_decl_line(0x460)
.dwattr $C$DW$T$245, DW_AT_decl_column(0x03)
$C$DW$T$50 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$50, DW_AT_name("xSTATIC_LIST")
.dwattr $C$DW$T$50, DW_AT_byte_size(0x14)
$C$DW$182 .dwtag DW_TAG_member
.dwattr $C$DW$182, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$182, DW_AT_name("uxDummy1")
.dwattr $C$DW$182, DW_AT_TI_symbol_name("uxDummy1")
.dwattr $C$DW$182, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$182, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$182, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$182, DW_AT_decl_line(0x3d5)
.dwattr $C$DW$182, DW_AT_decl_column(0x0e)
$C$DW$183 .dwtag DW_TAG_member
.dwattr $C$DW$183, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$183, DW_AT_name("pvDummy2")
.dwattr $C$DW$183, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$183, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$183, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$183, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$183, DW_AT_decl_line(0x3d6)
.dwattr $C$DW$183, DW_AT_decl_column(0x08)
$C$DW$184 .dwtag DW_TAG_member
.dwattr $C$DW$184, DW_AT_type(*$C$DW$T$49)
.dwattr $C$DW$184, DW_AT_name("xDummy3")
.dwattr $C$DW$184, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$184, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$184, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$184, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$184, DW_AT_decl_line(0x3d7)
.dwattr $C$DW$184, DW_AT_decl_column(0x17)
.dwattr $C$DW$T$50, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$50, DW_AT_decl_line(0x3d3)
.dwattr $C$DW$T$50, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$50
$C$DW$T$47 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$47, DW_AT_name("StaticList_t")
.dwattr $C$DW$T$47, DW_AT_type(*$C$DW$T$50)
.dwattr $C$DW$T$47, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$47, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$47, DW_AT_decl_line(0x3d8)
.dwattr $C$DW$T$47, DW_AT_decl_column(0x03)
$C$DW$T$56 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$56, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$T$56, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$56, DW_AT_byte_size(0x28)
$C$DW$185 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$185, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$56
$C$DW$T$52 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$52, DW_AT_name("xSTATIC_LIST_ITEM")
.dwattr $C$DW$T$52, DW_AT_byte_size(0x14)
$C$DW$186 .dwtag DW_TAG_member
.dwattr $C$DW$186, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$186, DW_AT_name("xDummy1")
.dwattr $C$DW$186, DW_AT_TI_symbol_name("xDummy1")
.dwattr $C$DW$186, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$186, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$186, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$186, DW_AT_decl_line(0x3c5)
.dwattr $C$DW$186, DW_AT_decl_column(0x0d)
$C$DW$187 .dwtag DW_TAG_member
.dwattr $C$DW$187, DW_AT_type(*$C$DW$T$51)
.dwattr $C$DW$187, DW_AT_name("pvDummy2")
.dwattr $C$DW$187, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$187, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$187, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$187, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$187, DW_AT_decl_line(0x3c6)
.dwattr $C$DW$187, DW_AT_decl_column(0x08)
.dwattr $C$DW$T$52, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$52, DW_AT_decl_line(0x3c3)
.dwattr $C$DW$T$52, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$52
$C$DW$T$62 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$62, DW_AT_name("StaticListItem_t")
.dwattr $C$DW$T$62, DW_AT_type(*$C$DW$T$52)
.dwattr $C$DW$T$62, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$62, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$62, DW_AT_decl_line(0x3c8)
.dwattr $C$DW$T$62, DW_AT_decl_column(0x22)
$C$DW$T$63 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$63, DW_AT_type(*$C$DW$T$62)
.dwattr $C$DW$T$63, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$63, DW_AT_byte_size(0x28)
$C$DW$188 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$188, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$63
$C$DW$T$54 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$54, DW_AT_name("xSTATIC_MINI_LIST_ITEM")
.dwattr $C$DW$T$54, DW_AT_byte_size(0x0c)
$C$DW$189 .dwtag DW_TAG_member
.dwattr $C$DW$189, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$189, DW_AT_name("xDummy1")
.dwattr $C$DW$189, DW_AT_TI_symbol_name("xDummy1")
.dwattr $C$DW$189, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$189, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$189, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$189, DW_AT_decl_line(0x3cd)
.dwattr $C$DW$189, DW_AT_decl_column(0x0d)
$C$DW$190 .dwtag DW_TAG_member
.dwattr $C$DW$190, DW_AT_type(*$C$DW$T$53)
.dwattr $C$DW$190, DW_AT_name("pvDummy2")
.dwattr $C$DW$190, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$190, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$190, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$190, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$190, DW_AT_decl_line(0x3ce)
.dwattr $C$DW$190, DW_AT_decl_column(0x08)
.dwattr $C$DW$T$54, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$54, DW_AT_decl_line(0x3cb)
.dwattr $C$DW$T$54, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$54
$C$DW$T$49 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$49, DW_AT_name("StaticMiniListItem_t")
.dwattr $C$DW$T$49, DW_AT_type(*$C$DW$T$54)
.dwattr $C$DW$T$49, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$49, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$49, DW_AT_decl_line(0x3d0)
.dwattr $C$DW$T$49, DW_AT_decl_column(0x27)
$C$DW$T$59 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$59, DW_AT_name("xSTATIC_QUEUE")
.dwattr $C$DW$T$59, DW_AT_byte_size(0x50)
$C$DW$191 .dwtag DW_TAG_member
.dwattr $C$DW$191, DW_AT_type(*$C$DW$T$55)
.dwattr $C$DW$191, DW_AT_name("pvDummy1")
.dwattr $C$DW$191, DW_AT_TI_symbol_name("pvDummy1")
.dwattr $C$DW$191, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$191, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$191, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$191, DW_AT_decl_line(0x429)
.dwattr $C$DW$191, DW_AT_decl_column(0x08)
$C$DW$192 .dwtag DW_TAG_member
.dwattr $C$DW$192, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$192, DW_AT_name("u")
.dwattr $C$DW$192, DW_AT_TI_symbol_name("u")
.dwattr $C$DW$192, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$192, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$192, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$192, DW_AT_decl_line(0x42f)
.dwattr $C$DW$192, DW_AT_decl_column(0x04)
$C$DW$193 .dwtag DW_TAG_member
.dwattr $C$DW$193, DW_AT_type(*$C$DW$T$56)
.dwattr $C$DW$193, DW_AT_name("xDummy3")
.dwattr $C$DW$193, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$193, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$193, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$193, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$193, DW_AT_decl_line(0x431)
.dwattr $C$DW$193, DW_AT_decl_column(0x0f)
$C$DW$194 .dwtag DW_TAG_member
.dwattr $C$DW$194, DW_AT_type(*$C$DW$T$57)
.dwattr $C$DW$194, DW_AT_name("uxDummy4")
.dwattr $C$DW$194, DW_AT_TI_symbol_name("uxDummy4")
.dwattr $C$DW$194, DW_AT_data_member_location[DW_OP_plus_uconst 0x38]
.dwattr $C$DW$194, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$194, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$194, DW_AT_decl_line(0x432)
.dwattr $C$DW$194, DW_AT_decl_column(0x0e)
$C$DW$195 .dwtag DW_TAG_member
.dwattr $C$DW$195, DW_AT_type(*$C$DW$T$58)
.dwattr $C$DW$195, DW_AT_name("ucDummy5")
.dwattr $C$DW$195, DW_AT_TI_symbol_name("ucDummy5")
.dwattr $C$DW$195, DW_AT_data_member_location[DW_OP_plus_uconst 0x44]
.dwattr $C$DW$195, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$195, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$195, DW_AT_decl_line(0x433)
.dwattr $C$DW$195, DW_AT_decl_column(0x0a)
$C$DW$196 .dwtag DW_TAG_member
.dwattr $C$DW$196, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$196, DW_AT_name("uxDummy8")
.dwattr $C$DW$196, DW_AT_TI_symbol_name("uxDummy8")
.dwattr $C$DW$196, DW_AT_data_member_location[DW_OP_plus_uconst 0x48]
.dwattr $C$DW$196, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$196, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$196, DW_AT_decl_line(0x43e)
.dwattr $C$DW$196, DW_AT_decl_column(0x0f)
$C$DW$197 .dwtag DW_TAG_member
.dwattr $C$DW$197, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$197, DW_AT_name("ucDummy9")
.dwattr $C$DW$197, DW_AT_TI_symbol_name("ucDummy9")
.dwattr $C$DW$197, DW_AT_data_member_location[DW_OP_plus_uconst 0x4c]
.dwattr $C$DW$197, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$197, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$197, DW_AT_decl_line(0x43f)
.dwattr $C$DW$197, DW_AT_decl_column(0x0b)
.dwattr $C$DW$T$59, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$59, DW_AT_decl_line(0x427)
.dwattr $C$DW$T$59, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$59
$C$DW$T$246 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$246, DW_AT_name("StaticQueue_t")
.dwattr $C$DW$T$246, DW_AT_type(*$C$DW$T$59)
.dwattr $C$DW$T$246, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$246, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$246, DW_AT_decl_line(0x442)
.dwattr $C$DW$T$246, DW_AT_decl_column(0x03)
$C$DW$T$247 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$247, DW_AT_name("StaticSemaphore_t")
.dwattr $C$DW$T$247, DW_AT_type(*$C$DW$T$246)
.dwattr $C$DW$T$247, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$247, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$247, DW_AT_decl_line(0x443)
.dwattr $C$DW$T$247, DW_AT_decl_column(0x17)
$C$DW$T$61 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$61, DW_AT_name("xSTATIC_STREAM_BUFFER")
.dwattr $C$DW$T$61, DW_AT_byte_size(0x24)
$C$DW$198 .dwtag DW_TAG_member
.dwattr $C$DW$198, DW_AT_type(*$C$DW$T$60)
.dwattr $C$DW$198, DW_AT_name("uxDummy1")
.dwattr $C$DW$198, DW_AT_TI_symbol_name("uxDummy1")
.dwattr $C$DW$198, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$198, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$198, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$198, DW_AT_decl_line(0x492)
.dwattr $C$DW$198, DW_AT_decl_column(0x09)
$C$DW$199 .dwtag DW_TAG_member
.dwattr $C$DW$199, DW_AT_type(*$C$DW$T$55)
.dwattr $C$DW$199, DW_AT_name("pvDummy2")
.dwattr $C$DW$199, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$199, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$199, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$199, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$199, DW_AT_decl_line(0x493)
.dwattr $C$DW$199, DW_AT_decl_column(0x09)
$C$DW$200 .dwtag DW_TAG_member
.dwattr $C$DW$200, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$200, DW_AT_name("ucDummy3")
.dwattr $C$DW$200, DW_AT_TI_symbol_name("ucDummy3")
.dwattr $C$DW$200, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$200, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$200, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$200, DW_AT_decl_line(0x494)
.dwattr $C$DW$200, DW_AT_decl_column(0x0a)
$C$DW$201 .dwtag DW_TAG_member
.dwattr $C$DW$201, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$201, DW_AT_name("uxDummy4")
.dwattr $C$DW$201, DW_AT_TI_symbol_name("uxDummy4")
.dwattr $C$DW$201, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$201, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$201, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$201, DW_AT_decl_line(0x496)
.dwattr $C$DW$201, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$61, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$61, DW_AT_decl_line(0x490)
.dwattr $C$DW$T$61, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$61
$C$DW$T$248 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$248, DW_AT_name("StaticStreamBuffer_t")
.dwattr $C$DW$T$248, DW_AT_type(*$C$DW$T$61)
.dwattr $C$DW$T$248, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$248, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$248, DW_AT_decl_line(0x498)
.dwattr $C$DW$T$248, DW_AT_decl_column(0x03)
$C$DW$T$249 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$249, DW_AT_name("StaticMessageBuffer_t")
.dwattr $C$DW$T$249, DW_AT_type(*$C$DW$T$248)
.dwattr $C$DW$T$249, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$249, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$249, DW_AT_decl_line(0x49b)
.dwattr $C$DW$T$249, DW_AT_decl_column(0x1e)
$C$DW$T$66 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$66, DW_AT_name("xSTATIC_TCB")
.dwattr $C$DW$T$66, DW_AT_byte_size(0x58)
$C$DW$202 .dwtag DW_TAG_member
.dwattr $C$DW$202, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$202, DW_AT_name("pxDummy1")
.dwattr $C$DW$202, DW_AT_TI_symbol_name("pxDummy1")
.dwattr $C$DW$202, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$202, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$202, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$202, DW_AT_decl_line(0x3e9)
.dwattr $C$DW$202, DW_AT_decl_column(0x0b)
$C$DW$203 .dwtag DW_TAG_member
.dwattr $C$DW$203, DW_AT_type(*$C$DW$T$63)
.dwattr $C$DW$203, DW_AT_name("xDummy3")
.dwattr $C$DW$203, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$203, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$203, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$203, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$203, DW_AT_decl_line(0x3ed)
.dwattr $C$DW$203, DW_AT_decl_column(0x13)
$C$DW$204 .dwtag DW_TAG_member
.dwattr $C$DW$204, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$204, DW_AT_name("uxDummy5")
.dwattr $C$DW$204, DW_AT_TI_symbol_name("uxDummy5")
.dwattr $C$DW$204, DW_AT_data_member_location[DW_OP_plus_uconst 0x2c]
.dwattr $C$DW$204, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$204, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$204, DW_AT_decl_line(0x3ee)
.dwattr $C$DW$204, DW_AT_decl_column(0x10)
$C$DW$205 .dwtag DW_TAG_member
.dwattr $C$DW$205, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$205, DW_AT_name("pxDummy6")
.dwattr $C$DW$205, DW_AT_TI_symbol_name("pxDummy6")
.dwattr $C$DW$205, DW_AT_data_member_location[DW_OP_plus_uconst 0x30]
.dwattr $C$DW$205, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$205, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$205, DW_AT_decl_line(0x3ef)
.dwattr $C$DW$205, DW_AT_decl_column(0x0b)
$C$DW$206 .dwtag DW_TAG_member
.dwattr $C$DW$206, DW_AT_type(*$C$DW$T$64)
.dwattr $C$DW$206, DW_AT_name("ucDummy7")
.dwattr $C$DW$206, DW_AT_TI_symbol_name("ucDummy7")
.dwattr $C$DW$206, DW_AT_data_member_location[DW_OP_plus_uconst 0x34]
.dwattr $C$DW$206, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$206, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$206, DW_AT_decl_line(0x3f0)
.dwattr $C$DW$206, DW_AT_decl_column(0x0d)
$C$DW$207 .dwtag DW_TAG_member
.dwattr $C$DW$207, DW_AT_type(*$C$DW$T$65)
.dwattr $C$DW$207, DW_AT_name("uxDummy10")
.dwattr $C$DW$207, DW_AT_TI_symbol_name("uxDummy10")
.dwattr $C$DW$207, DW_AT_data_member_location[DW_OP_plus_uconst 0x40]
.dwattr $C$DW$207, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$207, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$207, DW_AT_decl_line(0x3f8)
.dwattr $C$DW$207, DW_AT_decl_column(0x10)
$C$DW$208 .dwtag DW_TAG_member
.dwattr $C$DW$208, DW_AT_type(*$C$DW$T$65)
.dwattr $C$DW$208, DW_AT_name("uxDummy12")
.dwattr $C$DW$208, DW_AT_TI_symbol_name("uxDummy12")
.dwattr $C$DW$208, DW_AT_data_member_location[DW_OP_plus_uconst 0x48]
.dwattr $C$DW$208, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$208, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$208, DW_AT_decl_line(0x3fb)
.dwattr $C$DW$208, DW_AT_decl_column(0x10)
$C$DW$209 .dwtag DW_TAG_member
.dwattr $C$DW$209, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$209, DW_AT_name("ulDummy18")
.dwattr $C$DW$209, DW_AT_TI_symbol_name("ulDummy18")
.dwattr $C$DW$209, DW_AT_data_member_location[DW_OP_plus_uconst 0x50]
.dwattr $C$DW$209, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$209, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$209, DW_AT_decl_line(0x40a)
.dwattr $C$DW$209, DW_AT_decl_column(0x0e)
$C$DW$210 .dwtag DW_TAG_member
.dwattr $C$DW$210, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$210, DW_AT_name("ucDummy19")
.dwattr $C$DW$210, DW_AT_TI_symbol_name("ucDummy19")
.dwattr $C$DW$210, DW_AT_data_member_location[DW_OP_plus_uconst 0x54]
.dwattr $C$DW$210, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$210, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$210, DW_AT_decl_line(0x40b)
.dwattr $C$DW$210, DW_AT_decl_column(0x0d)
.dwattr $C$DW$T$66, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$66, DW_AT_decl_line(0x3e7)
.dwattr $C$DW$T$66, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$66
$C$DW$T$250 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$250, DW_AT_name("StaticTask_t")
.dwattr $C$DW$T$250, DW_AT_type(*$C$DW$T$66)
.dwattr $C$DW$T$250, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$250, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$250, DW_AT_decl_line(0x417)
.dwattr $C$DW$T$250, DW_AT_decl_column(0x03)
$C$DW$T$70 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$70, DW_AT_name("xSTATIC_TIMER")
.dwattr $C$DW$T$70, DW_AT_byte_size(0x2c)
$C$DW$211 .dwtag DW_TAG_member
.dwattr $C$DW$211, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$211, DW_AT_name("pvDummy1")
.dwattr $C$DW$211, DW_AT_TI_symbol_name("pvDummy1")
.dwattr $C$DW$211, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$211, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$211, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$211, DW_AT_decl_line(0x472)
.dwattr $C$DW$211, DW_AT_decl_column(0x0b)
$C$DW$212 .dwtag DW_TAG_member
.dwattr $C$DW$212, DW_AT_type(*$C$DW$T$62)
.dwattr $C$DW$212, DW_AT_name("xDummy2")
.dwattr $C$DW$212, DW_AT_TI_symbol_name("xDummy2")
.dwattr $C$DW$212, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$212, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$212, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$212, DW_AT_decl_line(0x473)
.dwattr $C$DW$212, DW_AT_decl_column(0x13)
$C$DW$213 .dwtag DW_TAG_member
.dwattr $C$DW$213, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$213, DW_AT_name("xDummy3")
.dwattr $C$DW$213, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$213, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$213, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$213, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$213, DW_AT_decl_line(0x474)
.dwattr $C$DW$213, DW_AT_decl_column(0x0f)
$C$DW$214 .dwtag DW_TAG_member
.dwattr $C$DW$214, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$214, DW_AT_name("uxDummy4")
.dwattr $C$DW$214, DW_AT_TI_symbol_name("uxDummy4")
.dwattr $C$DW$214, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$214, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$214, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$214, DW_AT_decl_line(0x475)
.dwattr $C$DW$214, DW_AT_decl_column(0x10)
$C$DW$215 .dwtag DW_TAG_member
.dwattr $C$DW$215, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$215, DW_AT_name("pvDummy5")
.dwattr $C$DW$215, DW_AT_TI_symbol_name("pvDummy5")
.dwattr $C$DW$215, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$215, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$215, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$215, DW_AT_decl_line(0x476)
.dwattr $C$DW$215, DW_AT_decl_column(0x0c)
$C$DW$216 .dwtag DW_TAG_member
.dwattr $C$DW$216, DW_AT_type(*$C$DW$T$69)
.dwattr $C$DW$216, DW_AT_name("pvDummy6")
.dwattr $C$DW$216, DW_AT_TI_symbol_name("pvDummy6")
.dwattr $C$DW$216, DW_AT_data_member_location[DW_OP_plus_uconst 0x24]
.dwattr $C$DW$216, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$216, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$216, DW_AT_decl_line(0x477)
.dwattr $C$DW$216, DW_AT_decl_column(0x12)
$C$DW$217 .dwtag DW_TAG_member
.dwattr $C$DW$217, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$217, DW_AT_name("uxDummy7")
.dwattr $C$DW$217, DW_AT_TI_symbol_name("uxDummy7")
.dwattr $C$DW$217, DW_AT_data_member_location[DW_OP_plus_uconst 0x28]
.dwattr $C$DW$217, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$217, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$217, DW_AT_decl_line(0x479)
.dwattr $C$DW$217, DW_AT_decl_column(0x10)
.dwattr $C$DW$T$70, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$70, DW_AT_decl_line(0x470)
.dwattr $C$DW$T$70, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$70
$C$DW$T$251 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$251, DW_AT_name("StaticTimer_t")
.dwattr $C$DW$T$251, DW_AT_type(*$C$DW$T$70)
.dwattr $C$DW$T$251, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$251, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$251, DW_AT_decl_line(0x480)
.dwattr $C$DW$T$251, DW_AT_decl_column(0x03)
$C$DW$T$81 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$81, DW_AT_name("xTASK_PARAMETERS")
.dwattr $C$DW$T$81, DW_AT_byte_size(0x24)
$C$DW$218 .dwtag DW_TAG_member
.dwattr $C$DW$218, DW_AT_type(*$C$DW$T$69)
.dwattr $C$DW$218, DW_AT_name("pvTaskCode")
.dwattr $C$DW$218, DW_AT_TI_symbol_name("pvTaskCode")
.dwattr $C$DW$218, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$218, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$218, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$218, DW_AT_decl_line(0x73)
.dwattr $C$DW$218, DW_AT_decl_column(0x11)
$C$DW$219 .dwtag DW_TAG_member
.dwattr $C$DW$219, DW_AT_type(*$C$DW$T$74)
.dwattr $C$DW$219, DW_AT_name("pcName")
.dwattr $C$DW$219, DW_AT_TI_symbol_name("pcName")
.dwattr $C$DW$219, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$219, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$219, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$219, DW_AT_decl_line(0x74)
.dwattr $C$DW$219, DW_AT_decl_column(0x15)
$C$DW$220 .dwtag DW_TAG_member
.dwattr $C$DW$220, DW_AT_type(*$C$DW$T$76)
.dwattr $C$DW$220, DW_AT_name("usStackDepth")
.dwattr $C$DW$220, DW_AT_TI_symbol_name("usStackDepth")
.dwattr $C$DW$220, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$220, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$220, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$220, DW_AT_decl_line(0x75)
.dwattr $C$DW$220, DW_AT_decl_column(0x0b)
$C$DW$221 .dwtag DW_TAG_member
.dwattr $C$DW$221, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$221, DW_AT_name("pvParameters")
.dwattr $C$DW$221, DW_AT_TI_symbol_name("pvParameters")
.dwattr $C$DW$221, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$221, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$221, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$221, DW_AT_decl_line(0x76)
.dwattr $C$DW$221, DW_AT_decl_column(0x08)
$C$DW$222 .dwtag DW_TAG_member
.dwattr $C$DW$222, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$222, DW_AT_name("uxPriority")
.dwattr $C$DW$222, DW_AT_TI_symbol_name("uxPriority")
.dwattr $C$DW$222, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$222, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$222, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$222, DW_AT_decl_line(0x77)
.dwattr $C$DW$222, DW_AT_decl_column(0x0e)
$C$DW$223 .dwtag DW_TAG_member
.dwattr $C$DW$223, DW_AT_type(*$C$DW$T$78)
.dwattr $C$DW$223, DW_AT_name("puxStackBuffer")
.dwattr $C$DW$223, DW_AT_TI_symbol_name("puxStackBuffer")
.dwattr $C$DW$223, DW_AT_data_member_location[DW_OP_plus_uconst 0x14]
.dwattr $C$DW$223, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$223, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$223, DW_AT_decl_line(0x78)
.dwattr $C$DW$223, DW_AT_decl_column(0x0f)
$C$DW$224 .dwtag DW_TAG_member
.dwattr $C$DW$224, DW_AT_type(*$C$DW$T$80)
.dwattr $C$DW$224, DW_AT_name("xRegions")
.dwattr $C$DW$224, DW_AT_TI_symbol_name("xRegions")
.dwattr $C$DW$224, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$224, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$224, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$224, DW_AT_decl_line(0x79)
.dwattr $C$DW$224, DW_AT_decl_column(0x11)
.dwattr $C$DW$T$81, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$81, DW_AT_decl_line(0x71)
.dwattr $C$DW$T$81, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$81
$C$DW$T$252 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$252, DW_AT_name("TaskParameters_t")
.dwattr $C$DW$T$252, DW_AT_type(*$C$DW$T$81)
.dwattr $C$DW$T$252, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$252, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$252, DW_AT_decl_line(0x7d)
.dwattr $C$DW$T$252, DW_AT_decl_column(0x03)
$C$DW$T$86 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$86, DW_AT_name("xTASK_STATUS")
.dwattr $C$DW$T$86, DW_AT_byte_size(0x24)
$C$DW$225 .dwtag DW_TAG_member
.dwattr $C$DW$225, DW_AT_type(*$C$DW$T$83)
.dwattr $C$DW$225, DW_AT_name("xHandle")
.dwattr $C$DW$225, DW_AT_TI_symbol_name("xHandle")
.dwattr $C$DW$225, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$225, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$225, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$225, DW_AT_decl_line(0x83)
.dwattr $C$DW$225, DW_AT_decl_column(0x0f)
$C$DW$226 .dwtag DW_TAG_member
.dwattr $C$DW$226, DW_AT_type(*$C$DW$T$73)
.dwattr $C$DW$226, DW_AT_name("pcTaskName")
.dwattr $C$DW$226, DW_AT_TI_symbol_name("pcTaskName")
.dwattr $C$DW$226, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$226, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$226, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$226, DW_AT_decl_line(0x84)
.dwattr $C$DW$226, DW_AT_decl_column(0x0e)
$C$DW$227 .dwtag DW_TAG_member
.dwattr $C$DW$227, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$227, DW_AT_name("xTaskNumber")
.dwattr $C$DW$227, DW_AT_TI_symbol_name("xTaskNumber")
.dwattr $C$DW$227, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$227, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$227, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$227, DW_AT_decl_line(0x85)
.dwattr $C$DW$227, DW_AT_decl_column(0x0e)
$C$DW$228 .dwtag DW_TAG_member
.dwattr $C$DW$228, DW_AT_type(*$C$DW$T$85)
.dwattr $C$DW$228, DW_AT_name("eCurrentState")
.dwattr $C$DW$228, DW_AT_TI_symbol_name("eCurrentState")
.dwattr $C$DW$228, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$228, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$228, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$228, DW_AT_decl_line(0x86)
.dwattr $C$DW$228, DW_AT_decl_column(0x0d)
$C$DW$229 .dwtag DW_TAG_member
.dwattr $C$DW$229, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$229, DW_AT_name("uxCurrentPriority")
.dwattr $C$DW$229, DW_AT_TI_symbol_name("uxCurrentPriority")
.dwattr $C$DW$229, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$229, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$229, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$229, DW_AT_decl_line(0x87)
.dwattr $C$DW$229, DW_AT_decl_column(0x0e)
$C$DW$230 .dwtag DW_TAG_member
.dwattr $C$DW$230, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$230, DW_AT_name("uxBasePriority")
.dwattr $C$DW$230, DW_AT_TI_symbol_name("uxBasePriority")
.dwattr $C$DW$230, DW_AT_data_member_location[DW_OP_plus_uconst 0x14]
.dwattr $C$DW$230, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$230, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$230, DW_AT_decl_line(0x88)
.dwattr $C$DW$230, DW_AT_decl_column(0x0e)
$C$DW$231 .dwtag DW_TAG_member
.dwattr $C$DW$231, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$231, DW_AT_name("ulRunTimeCounter")
.dwattr $C$DW$231, DW_AT_TI_symbol_name("ulRunTimeCounter")
.dwattr $C$DW$231, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$231, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$231, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$231, DW_AT_decl_line(0x89)
.dwattr $C$DW$231, DW_AT_decl_column(0x0b)
$C$DW$232 .dwtag DW_TAG_member
.dwattr $C$DW$232, DW_AT_type(*$C$DW$T$78)
.dwattr $C$DW$232, DW_AT_name("pxStackBase")
.dwattr $C$DW$232, DW_AT_TI_symbol_name("pxStackBase")
.dwattr $C$DW$232, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$232, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$232, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$232, DW_AT_decl_line(0x8a)
.dwattr $C$DW$232, DW_AT_decl_column(0x0f)
$C$DW$233 .dwtag DW_TAG_member
.dwattr $C$DW$233, DW_AT_type(*$C$DW$T$76)
.dwattr $C$DW$233, DW_AT_name("usStackHighWaterMark")
.dwattr $C$DW$233, DW_AT_TI_symbol_name("usStackHighWaterMark")
.dwattr $C$DW$233, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$233, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$233, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$233, DW_AT_decl_line(0x8b)
.dwattr $C$DW$233, DW_AT_decl_column(0x19)
.dwattr $C$DW$T$86, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$86, DW_AT_decl_line(0x81)
.dwattr $C$DW$T$86, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$86
$C$DW$T$253 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$253, DW_AT_name("TaskStatus_t")
.dwattr $C$DW$T$253, DW_AT_type(*$C$DW$T$86)
.dwattr $C$DW$T$253, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$253, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$253, DW_AT_decl_line(0x8c)
.dwattr $C$DW$T$253, DW_AT_decl_column(0x03)
$C$DW$T$88 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$88, DW_AT_name("xTIME_OUT")
.dwattr $C$DW$T$88, DW_AT_byte_size(0x08)
$C$DW$234 .dwtag DW_TAG_member
.dwattr $C$DW$234, DW_AT_type(*$C$DW$T$87)
.dwattr $C$DW$234, DW_AT_name("xOverflowCount")
.dwattr $C$DW$234, DW_AT_TI_symbol_name("xOverflowCount")
.dwattr $C$DW$234, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$234, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$234, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$234, DW_AT_decl_line(0x60)
.dwattr $C$DW$234, DW_AT_decl_column(0x0d)
$C$DW$235 .dwtag DW_TAG_member
.dwattr $C$DW$235, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$235, DW_AT_name("xTimeOnEntering")
.dwattr $C$DW$235, DW_AT_TI_symbol_name("xTimeOnEntering")
.dwattr $C$DW$235, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$235, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$235, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$235, DW_AT_decl_line(0x61)
.dwattr $C$DW$235, DW_AT_decl_column(0x0d)
.dwattr $C$DW$T$88, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$88, DW_AT_decl_line(0x5e)
.dwattr $C$DW$T$88, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$88
$C$DW$T$254 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$254, DW_AT_name("TimeOut_t")
.dwattr $C$DW$T$254, DW_AT_type(*$C$DW$T$88)
.dwattr $C$DW$T$254, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$254, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$254, DW_AT_decl_line(0x62)
.dwattr $C$DW$T$254, DW_AT_decl_column(0x03)
.dwattr $C$DW$CU, DW_AT_language(DW_LANG_C)
;***************************************************************
;* DWARF CIE ENTRIES *
;***************************************************************
$C$DW$CIE .dwcie 14
.dwcfi cfa_register, 13
.dwcfi cfa_offset, 0
.dwcfi same_value, 4
.dwcfi same_value, 5
.dwcfi same_value, 6
.dwcfi same_value, 7
.dwcfi same_value, 8
.dwcfi same_value, 9
.dwcfi same_value, 10
.dwcfi same_value, 11
.dwcfi same_value, 80
.dwcfi same_value, 81
.dwcfi same_value, 82
.dwcfi same_value, 83
.dwcfi same_value, 84
.dwcfi same_value, 85
.dwcfi same_value, 86
.dwcfi same_value, 87
.dwcfi same_value, 88
.dwcfi same_value, 89
.dwcfi same_value, 90
.dwcfi same_value, 91
.dwcfi same_value, 92
.dwcfi same_value, 93
.dwcfi same_value, 94
.dwcfi same_value, 95
.dwendentry
;***************************************************************
;* DWARF REGISTER MAP *
;***************************************************************
$C$DW$236 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$236, DW_AT_name("A1")
.dwattr $C$DW$236, DW_AT_location[DW_OP_reg0]
$C$DW$237 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$237, DW_AT_name("A2")
.dwattr $C$DW$237, DW_AT_location[DW_OP_reg1]
$C$DW$238 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$238, DW_AT_name("A3")
.dwattr $C$DW$238, DW_AT_location[DW_OP_reg2]
$C$DW$239 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$239, DW_AT_name("A4")
.dwattr $C$DW$239, DW_AT_location[DW_OP_reg3]
$C$DW$240 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$240, DW_AT_name("V1")
.dwattr $C$DW$240, DW_AT_location[DW_OP_reg4]
$C$DW$241 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$241, DW_AT_name("V2")
.dwattr $C$DW$241, DW_AT_location[DW_OP_reg5]
$C$DW$242 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$242, DW_AT_name("V3")
.dwattr $C$DW$242, DW_AT_location[DW_OP_reg6]
$C$DW$243 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$243, DW_AT_name("V4")
.dwattr $C$DW$243, DW_AT_location[DW_OP_reg7]
$C$DW$244 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$244, DW_AT_name("V5")
.dwattr $C$DW$244, DW_AT_location[DW_OP_reg8]
$C$DW$245 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$245, DW_AT_name("V6")
.dwattr $C$DW$245, DW_AT_location[DW_OP_reg9]
$C$DW$246 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$246, DW_AT_name("V7")
.dwattr $C$DW$246, DW_AT_location[DW_OP_reg10]
$C$DW$247 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$247, DW_AT_name("V8")
.dwattr $C$DW$247, DW_AT_location[DW_OP_reg11]
$C$DW$248 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$248, DW_AT_name("V9")
.dwattr $C$DW$248, DW_AT_location[DW_OP_reg12]
$C$DW$249 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$249, DW_AT_name("SP")
.dwattr $C$DW$249, DW_AT_location[DW_OP_reg13]
$C$DW$250 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$250, DW_AT_name("LR")
.dwattr $C$DW$250, DW_AT_location[DW_OP_reg14]
$C$DW$251 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$251, DW_AT_name("PC")
.dwattr $C$DW$251, DW_AT_location[DW_OP_reg15]
$C$DW$252 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$252, DW_AT_name("SR")
.dwattr $C$DW$252, DW_AT_location[DW_OP_reg17]
$C$DW$253 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$253, DW_AT_name("AP")
.dwattr $C$DW$253, DW_AT_location[DW_OP_reg7]
$C$DW$254 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$254, DW_AT_name("D0")
.dwattr $C$DW$254, DW_AT_location[DW_OP_regx 0x40]
$C$DW$255 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$255, DW_AT_name("D0_hi")
.dwattr $C$DW$255, DW_AT_location[DW_OP_regx 0x41]
$C$DW$256 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$256, DW_AT_name("D1")
.dwattr $C$DW$256, DW_AT_location[DW_OP_regx 0x42]
$C$DW$257 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$257, DW_AT_name("D1_hi")
.dwattr $C$DW$257, DW_AT_location[DW_OP_regx 0x43]
$C$DW$258 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$258, DW_AT_name("D2")
.dwattr $C$DW$258, DW_AT_location[DW_OP_regx 0x44]
$C$DW$259 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$259, DW_AT_name("D2_hi")
.dwattr $C$DW$259, DW_AT_location[DW_OP_regx 0x45]
$C$DW$260 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$260, DW_AT_name("D3")
.dwattr $C$DW$260, DW_AT_location[DW_OP_regx 0x46]
$C$DW$261 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$261, DW_AT_name("D3_hi")
.dwattr $C$DW$261, DW_AT_location[DW_OP_regx 0x47]
$C$DW$262 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$262, DW_AT_name("D4")
.dwattr $C$DW$262, DW_AT_location[DW_OP_regx 0x48]
$C$DW$263 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$263, DW_AT_name("D4_hi")
.dwattr $C$DW$263, DW_AT_location[DW_OP_regx 0x49]
$C$DW$264 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$264, DW_AT_name("D5")
.dwattr $C$DW$264, DW_AT_location[DW_OP_regx 0x4a]
$C$DW$265 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$265, DW_AT_name("D5_hi")
.dwattr $C$DW$265, DW_AT_location[DW_OP_regx 0x4b]
$C$DW$266 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$266, DW_AT_name("D6")
.dwattr $C$DW$266, DW_AT_location[DW_OP_regx 0x4c]
$C$DW$267 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$267, DW_AT_name("D6_hi")
.dwattr $C$DW$267, DW_AT_location[DW_OP_regx 0x4d]
$C$DW$268 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$268, DW_AT_name("D7")
.dwattr $C$DW$268, DW_AT_location[DW_OP_regx 0x4e]
$C$DW$269 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$269, DW_AT_name("D7_hi")
.dwattr $C$DW$269, DW_AT_location[DW_OP_regx 0x4f]
$C$DW$270 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$270, DW_AT_name("D8")
.dwattr $C$DW$270, DW_AT_location[DW_OP_regx 0x50]
$C$DW$271 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$271, DW_AT_name("D8_hi")
.dwattr $C$DW$271, DW_AT_location[DW_OP_regx 0x51]
$C$DW$272 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$272, DW_AT_name("D9")
.dwattr $C$DW$272, DW_AT_location[DW_OP_regx 0x52]
$C$DW$273 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$273, DW_AT_name("D9_hi")
.dwattr $C$DW$273, DW_AT_location[DW_OP_regx 0x53]
$C$DW$274 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$274, DW_AT_name("D10")
.dwattr $C$DW$274, DW_AT_location[DW_OP_regx 0x54]
$C$DW$275 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$275, DW_AT_name("D10_hi")
.dwattr $C$DW$275, DW_AT_location[DW_OP_regx 0x55]
$C$DW$276 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$276, DW_AT_name("D11")
.dwattr $C$DW$276, DW_AT_location[DW_OP_regx 0x56]
$C$DW$277 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$277, DW_AT_name("D11_hi")
.dwattr $C$DW$277, DW_AT_location[DW_OP_regx 0x57]
$C$DW$278 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$278, DW_AT_name("D12")
.dwattr $C$DW$278, DW_AT_location[DW_OP_regx 0x58]
$C$DW$279 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$279, DW_AT_name("D12_hi")
.dwattr $C$DW$279, DW_AT_location[DW_OP_regx 0x59]
$C$DW$280 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$280, DW_AT_name("D13")
.dwattr $C$DW$280, DW_AT_location[DW_OP_regx 0x5a]
$C$DW$281 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$281, DW_AT_name("D13_hi")
.dwattr $C$DW$281, DW_AT_location[DW_OP_regx 0x5b]
$C$DW$282 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$282, DW_AT_name("D14")
.dwattr $C$DW$282, DW_AT_location[DW_OP_regx 0x5c]
$C$DW$283 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$283, DW_AT_name("D14_hi")
.dwattr $C$DW$283, DW_AT_location[DW_OP_regx 0x5d]
$C$DW$284 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$284, DW_AT_name("D15")
.dwattr $C$DW$284, DW_AT_location[DW_OP_regx 0x5e]
$C$DW$285 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$285, DW_AT_name("D15_hi")
.dwattr $C$DW$285, DW_AT_location[DW_OP_regx 0x5f]
$C$DW$286 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$286, DW_AT_name("FPEXC")
.dwattr $C$DW$286, DW_AT_location[DW_OP_reg18]
$C$DW$287 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$287, DW_AT_name("FPSCR")
.dwattr $C$DW$287, DW_AT_location[DW_OP_reg19]
.dwendtag $C$DW$CU
| 43.565876
| 278
| 0.63341
|
e47141c5f59ebdfa3c866126b9bfc8690cfa3519
| 5,481
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_120_2426.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_120_2426.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_120_2426.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 %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17ff8, %rsi
lea addresses_A_ht+0xfff8, %rdi
add $56657, %r8
mov $56, %rcx
rep movsq
nop
nop
nop
nop
inc %r11
lea addresses_WC_ht+0x17ccc, %rsi
lea addresses_normal_ht+0x16e8c, %rdi
nop
nop
nop
nop
xor $30011, %r9
mov $31, %rcx
rep movsl
xor $20314, %rdi
lea addresses_WC_ht+0x111c3, %rsi
nop
and $3677, %r15
mov $0x6162636465666768, %rdi
movq %rdi, %xmm5
movups %xmm5, (%rsi)
nop
nop
cmp $17707, %r11
lea addresses_normal_ht+0x11d90, %rsi
lea addresses_normal_ht+0xb93f, %rdi
clflush (%rdi)
nop
nop
nop
dec %rbx
mov $16, %rcx
rep movsb
xor %rbx, %rbx
lea addresses_UC_ht+0x1d605, %r9
nop
add $17462, %rdi
movb (%r9), %r11b
nop
cmp $51127, %rdi
lea addresses_D_ht+0x1abf8, %rsi
lea addresses_WC_ht+0xe7f8, %rdi
nop
nop
nop
and $64843, %r9
mov $101, %rcx
rep movsb
nop
nop
nop
nop
nop
and $39298, %rsi
lea addresses_WC_ht+0x9de8, %rsi
nop
nop
nop
nop
xor %r9, %r9
movw $0x6162, (%rsi)
nop
xor %rsi, %rsi
lea addresses_UC_ht+0x3df8, %r15
nop
nop
and $30058, %r8
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
vmovups %ymm1, (%r15)
cmp %r15, %r15
lea addresses_normal_ht+0x147f0, %rbx
nop
nop
nop
nop
nop
xor $1526, %r8
mov $0x6162636465666768, %rcx
movq %rcx, (%rbx)
cmp $37275, %rbx
lea addresses_D_ht+0xad38, %r9
clflush (%r9)
cmp $3976, %r15
movb $0x61, (%r9)
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0xa508, %rsi
lea addresses_A_ht+0x1d378, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
dec %r15
mov $46, %rcx
rep movsw
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x9578, %rsi
lea addresses_WT_ht+0x18ff8, %rdi
nop
nop
nop
nop
add $33318, %r11
mov $93, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp $17281, %rcx
lea addresses_normal_ht+0x18a06, %rdi
nop
and %rbx, %rbx
movl $0x61626364, (%rdi)
nop
nop
nop
dec %rdi
lea addresses_normal_ht+0x105f8, %rsi
lea addresses_UC_ht+0x41b8, %rdi
inc %r9
mov $71, %rcx
rep movsl
nop
nop
nop
sub $47763, %r15
lea addresses_WC_ht+0x7f18, %r8
nop
nop
nop
nop
cmp %rsi, %rsi
movb $0x61, (%r8)
nop
nop
nop
nop
nop
xor $30591, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %r9
push %rbp
push %rsi
// Load
lea addresses_A+0xadf8, %r10
nop
nop
nop
nop
nop
add $46334, %r15
movb (%r10), %r14b
nop
nop
sub $49878, %r10
// Faulty Load
lea addresses_US+0xf7f8, %rbp
add %r11, %r11
mov (%rbp), %r15
lea oracles, %r10
and $0xff, %r15
shlq $12, %r15
mov (%r10,%r15,1), %r15
pop %rsi
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': True, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'00': 120}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 23.029412
| 359
| 0.65572
|
f2a5139d9b42f4c70ab0da26ec0ea037852b42ba
| 705
|
asm
|
Assembly
|
oeis/094/A094734.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/094/A094734.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/094/A094734.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A094734: Number of connected 2-element multiantichains on a labeled n-set.
; 0,1,1,4,19,76,271,904,2899,9076,27991,85504,259579,784876,2366911,7125304,21425059,64373476,193317031,580344304,1741819339,5227030876,15684238351,47059006504,141189602419,423593973076,1270832250871,3812597415904,11437993574299,34314383376076,102943955434591,308833476916504,926503651974979,2779517398375876,8338565080029511,25015721009892304,75047214569284459,225141746787068476,675425446519635631,2026276751875767304,6078831080261022739,18236494890050509876,54709487968686412951
lpb $0
mov $2,$0
mul $0,0
seq $2,94033 ; Number of connected 2-element antichains on a labeled n-set.
add $1,$2
add $1,1
lpe
mov $0,$1
| 58.75
| 481
| 0.834043
|
576dd159849fde200464538fed557cac2433cf30
| 776
|
asm
|
Assembly
|
Experiments/LCD Display/main.asm
|
tustunkok/CMPE236-Labs
|
0592cf993a9c0b360973654bc6171a29a0e3335c
|
[
"MIT"
] | null | null | null |
Experiments/LCD Display/main.asm
|
tustunkok/CMPE236-Labs
|
0592cf993a9c0b360973654bc6171a29a0e3335c
|
[
"MIT"
] | null | null | null |
Experiments/LCD Display/main.asm
|
tustunkok/CMPE236-Labs
|
0592cf993a9c0b360973654bc6171a29a0e3335c
|
[
"MIT"
] | null | null | null |
ORG 00H
SJMP MAIN
ORG 30H
MAIN: MOV R2, #38H
ACALL CMDWRT
ACALL DELAY
MOV R2, #0EH
ACALL CMDWRT
ACALL DELAY
MOV R2, #01H
ACALL CMDWRT
ACALL DELAY
MOV R2, #06H
ACALL CMDWRT
ACALL DELAY
MOV R2, #84H
ACALL CMDWRT
ACALL DELAY
MOV R2, #'H'
ACALL DATAWRT
ACALL DELAY
MOV R2, #'E'
ACALL DATAWRT
ACALL DELAY
MOV R2, #'L'
ACALL DATAWRT
ACALL DELAY
MOV R2, #'L'
ACALL DATAWRT
ACALL DELAY
MOV R2, #'O'
ACALL DATAWRT
ACALL DELAY
SJMP $
CMDWRT: MOV P1, R2
CLR P2.0
CLR P2.1
SETB P2.2
ACALL DELAY
CLR P2.2
RET
DATAWRT: MOV P1, R2
SETB P2.0
CLR P2.1
SETB P2.2
ACALL DELAY
CLR P2.2
RET
DELAY: MOV R3, #50
HERE2: MOV R4, #255
HERE: DJNZ R4, HERE
DJNZ R3, HERE2
RET
END
| 11.411765
| 20
| 0.609536
|
494671bf24eb5428008a45af8e96ae4feb1db4f9
| 468
|
asm
|
Assembly
|
oeis/171/A171631.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/171/A171631.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/171/A171631.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A171631: Triangle read by rows: T(n,k) = n*(binomial(n-2, k-1) + n*binomial(n-2, k)), n > 0 and 0 <= k <= n - 1.
; Submitted by Christian Krause
; 1,4,2,9,12,3,16,36,24,4,25,80,90,40,5,36,150,240,180,60,6,49,252,525,560,315,84,7,64,392,1008,1400,1120,504,112,8,81,576,1764,3024,3150,2016,756,144,9,100,810,2880,5880,7560,6300,3360,1080,180,10,121,1100
mov $2,1
lpb $0
add $1,1
sub $0,$1
add $2,1
lpe
add $1,1
bin $1,$0
sub $2,$0
pow $2,2
mul $1,$2
mov $0,$1
| 27.529412
| 206
| 0.626068
|
5adc32b41bd1d2d3a66156f752e1a57d2f337946
| 451
|
asm
|
Assembly
|
oeis/179/A179134.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/179/A179134.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/179/A179134.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A179134: a(n) = (F(2*n-1) + F(2*n+2)) * (5/6 - cos(2*Pi*n/3)/3), where F(n) = Fibonacci(n).
; Submitted by Christian Krause
; 1,4,10,13,68,178,233,1220,3194,4181,21892,57314,75025,392836,1028458,1346269,7049156,18454930,24157817,126491972,331160282,433494437,2269806340,5942430146,7778742049,40730022148,106632582346
mov $1,1
mov $2,1
mov $3,$0
lpb $3
add $1,$2
add $2,$1
sub $3,1
lpe
add $2,$1
mul $1,6
gcd $2,2
div $1,$2
mov $0,$1
div $0,3
| 23.736842
| 192
| 0.669623
|
91638842aa3a0f592c09aaff334e5e8cfafd6126
| 3,368
|
asm
|
Assembly
|
Appl/Art/Decks/GeoDeck/LCSpadeA.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Appl/Art/Decks/GeoDeck/LCSpadeA.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Appl/Art/Decks/GeoDeck/LCSpadeA.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
LCSpadeA label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x00, 0x80, 0xfa, 0x00
db 0x01, 0x00, 0x80, 0xfa, 0x00
db 0x01, 0x01, 0xc0, 0xfa, 0x00
db 0x01, 0x01, 0xc0, 0xfa, 0x00
db 0x01, 0x03, 0xe0, 0xfa, 0x00
db 0x01, 0x03, 0x60, 0xfa, 0x00
db 0x01, 0x03, 0x60, 0xfa, 0x00
db 0x01, 0x06, 0x30, 0xfa, 0x00
db 0x01, 0x06, 0x30, 0xfa, 0x00
db 0x01, 0x07, 0xf0, 0xfa, 0x00
db 0x01, 0x0f, 0xf8, 0xfa, 0x00
db 0x01, 0x0c, 0x18, 0xfa, 0x00
db 0x01, 0x0c, 0x18, 0xfa, 0x00
db 0x01, 0x3f, 0x7e, 0xfa, 0x00
db 0x01, 0x3f, 0x7e, 0xfa, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x00, 0x80, 0xfa, 0x00
db 0x01, 0x01, 0xc0, 0xfa, 0x00
db 0x01, 0x02, 0xe0, 0xfa, 0x00
db 0x01, 0x05, 0xf0, 0xfa, 0x00
db 0x01, 0x0b, 0xf8, 0xfa, 0x00
db 0x01, 0x0f, 0xf8, 0xfa, 0x00
db 0x01, 0x0f, 0xf8, 0xfa, 0x00
db 0x01, 0x06, 0xb0, 0xfa, 0x00
db 0x01, 0x01, 0xc0, 0xfa, 0x00
db 0x01, 0x03, 0xe0, 0xfa, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xfd, 0x00, 0x00, 0x10, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x38, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x7c, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xfe, 0xfd, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xff, 0xfd, 0x00
db 0xfe, 0x00, 0x02, 0x03, 0xdf, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x07, 0x9f, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x0f, 0x3f, 0xe0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x1e, 0x7f, 0xf0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x3c, 0xff, 0xf8, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x39, 0xff, 0xf8, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x73, 0xff, 0xfc, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x77, 0xff, 0xfc, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0xe7, 0xff, 0xfe, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0xef, 0xff, 0xfe, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0xef, 0xff, 0xfe, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0xff, 0xff, 0xfe, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0xff, 0xff, 0xfe, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0xff, 0xff, 0xfe, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x7f, 0xd7, 0xfc, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x3f, 0xbb, 0xf8, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x0e, 0x5c, 0xe0, 0xfe, 0x00
db 0xfd, 0x00, 0x00, 0xbe, 0xfd, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xff, 0xfd, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xfa, 0x00, 0x01, 0x0f, 0x80
db 0xfa, 0x00, 0x01, 0x07, 0x00
db 0xfa, 0x00, 0x01, 0x1a, 0xc0
db 0xfa, 0x00, 0x01, 0x2f, 0x60
db 0xfa, 0x00, 0x01, 0x3f, 0xe0
db 0xfa, 0x00, 0x01, 0x3f, 0xe0
db 0xfa, 0x00, 0x01, 0x1f, 0xc0
db 0xfa, 0x00, 0x01, 0x0f, 0x80
db 0xfa, 0x00, 0x01, 0x07, 0x00
db 0xfa, 0x00, 0x01, 0x02, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xfa, 0x00, 0x01, 0xfd, 0xf8
db 0xfa, 0x00, 0x01, 0xfd, 0xf8
db 0xfa, 0x00, 0x01, 0x30, 0x60
db 0xfa, 0x00, 0x01, 0x30, 0x60
db 0xfa, 0x00, 0x01, 0x3f, 0xe0
db 0xfa, 0x00, 0x01, 0x1f, 0xc0
db 0xfa, 0x00, 0x01, 0x18, 0xc0
db 0xfa, 0x00, 0x01, 0x18, 0xc0
db 0xfa, 0x00, 0x01, 0x0d, 0x80
db 0xfa, 0x00, 0x01, 0x0d, 0x80
db 0xfa, 0x00, 0x01, 0x0f, 0x80
db 0xfa, 0x00, 0x01, 0x07, 0x00
db 0xfa, 0x00, 0x01, 0x07, 0x00
db 0xfa, 0x00, 0x01, 0x02, 0x00
db 0xfa, 0x00, 0x01, 0x02, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
| 32.384615
| 51
| 0.649347
|
d3dc22fde52e3146f653df7e13845ade75d69855
| 699
|
asm
|
Assembly
|
oeis/062/A062879.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/062/A062879.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/062/A062879.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A062879: Integers whose Zeckendorf expansion does not contain ones at even positions.
; Submitted by Jon Maiga
; 0,2,5,7,13,15,18,20,34,36,39,41,47,49,52,54,89,91,94,96,102,104,107,109,123,125,128,130,136,138,141,143,233,235,238,240,246,248,251,253,267,269,272,274,280,282,285,287,322,324,327,329,335,337,340,342,356,358,361,363,369,371,374,376,610,612,615,617,623,625,628,630,644,646,649,651,657,659,662,664,699,701,704,706,712,714,717,719,733,735,738,740,746,748,751,753,843,845,848,850
mov $2,$0
mov $4,2
mov $5,$0
lpb $2
mov $0,$5
mov $1,1
sub $2,1
sub $0,$2
mov $3,1
lpb $0
dif $0,2
add $1,$3
add $3,$1
lpe
mov $0,$1
add $0,1
add $4,$0
lpe
mov $0,$4
sub $0,2
| 27.96
| 377
| 0.659514
|
b981baac8775fe9efc7b31f6e925bde2671370c1
| 2,054
|
asm
|
Assembly
|
src/envelopes_song4.6502.asm
|
mrpopogod/nes-fun
|
80e6af809874f2de89bd52f05f04c451dc29b333
|
[
"MIT"
] | null | null | null |
src/envelopes_song4.6502.asm
|
mrpopogod/nes-fun
|
80e6af809874f2de89bd52f05f04c451dc29b333
|
[
"MIT"
] | null | null | null |
src/envelopes_song4.6502.asm
|
mrpopogod/nes-fun
|
80e6af809874f2de89bd52f05f04c451dc29b333
|
[
"MIT"
] | null | null | null |
song4_header:
.byte $04 ;4 streams
.byte MUSIC_SQ1 ;which stream
.byte $01 ;status byte (stream enabled)
.byte SQUARE_1 ;which channel
.byte $B0 ;initial duty (10)
.byte ve_loud_long ;volume envelope
.word song4_square1 ;pointer to stream
.byte $60 ;tempo
.byte MUSIC_SQ2 ;which stream
.byte $01 ;status byte (stream enabled)
.byte SQUARE_2 ;which channel
.byte $30 ;initial duty (00)
.byte ve_short_staccato ;volume envelope
.word song4_square2 ;pointer to stream
.byte $60 ;tempo
.byte MUSIC_TRI ;which stream
.byte $01 ;status byte (stream enabled)
.byte TRIANGLE ;which channel
.byte $81 ;initial volume (on)
.byte ve_loud_long ;volume envelope
.word song4_tri ;pointer to stream
.byte $60 ;tempo
.byte MUSIC_NOI ;which stream
.byte $00 ;disabled. Our load routine will skip the
; rest of the reads if the status byte is 0.
; We are disabling Noise because we haven't covered it yet.
song4_square1:
.byte half, E4, quarter, G4, eighth, Fs4, E4, d_sixteenth, Eb4, E4, Fs4, t_quarter, rest, half, rest
.byte Fs4, quarter, A4, eighth, G4, Fs4, d_sixteenth, E4, Fs4, G4, t_quarter, rest, half, rest
.byte G4, quarter, B4, eighth, A4, G4, quarter, A4, B4, C5, eighth, B4, A4
.byte B4, A4, G4, Fs4, Eb4, E4, Fs4, G4, Fs4, E4, d_half, rest
.byte $FF
song4_square2:
.byte quarter
.byte E3, B3, B3, B3, B2, Fs3, Fs3, Fs3
.byte Fs3, A3, A3, A3, B2, E3, E3, E3
.byte E3, B3, B3, B3, B3, A3, G3, Fs3
.byte E3, B3, A3, Fs3, E3, d_half, rest
.byte $FF
song4_tri:
.byte half, E4, G4, B3, Eb4
.byte Fs4, A4, B3, E4
.byte G4, B4, quarter, A4, B4, half, C5
.byte eighth, E4, Fs4, G4, A4, B3, C4, D4, Eb4, A3, E4, d_half, rest
.byte $FF
| 38.754717
| 104
| 0.559883
|
f90e6ebb1fba73803d1b6e0293f30668dd1767c4
| 664
|
asm
|
Assembly
|
oeis/241/A241219.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/241/A241219.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/241/A241219.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A241219: Number of ways to choose two points on a centered hexagonal grid of size n.
; 0,21,171,666,1830,4095,8001,14196,23436,36585,54615,78606,109746,149331,198765,259560,333336,421821,526851,650370,794430,961191,1152921,1371996,1620900,1902225,2218671,2573046,2968266,3407355,3893445,4429776,5019696,5666661,6374235,7146090,7986006,8897871,9885681,10953540,12105660,13346361,14680071,16111326,17644770,19285155,21037341,22906296,24897096,27014925,29265075,31652946,34184046,36863991,39698505,42693420,45854676,49188321,52700511,56397510,60285690,64371531,68661621,73162656,77881440
add $0,1
bin $0,2
mov $1,$0
mov $2,6
mul $2,$0
mul $1,$2
add $0,$1
mul $0,3
| 55.333333
| 499
| 0.813253
|
d52da5404b94c09c5fda7feed76d375c14f1a1d1
| 5,775
|
asm
|
Assembly
|
Appendix E - Microcontroller Code/Redundant/Buffers.asm
|
liwenyip/adhoc
|
d5402c347b229847a8242c89eb0ee97ee4d67d26
|
[
"MIT"
] | null | null | null |
Appendix E - Microcontroller Code/Redundant/Buffers.asm
|
liwenyip/adhoc
|
d5402c347b229847a8242c89eb0ee97ee4d67d26
|
[
"MIT"
] | null | null | null |
Appendix E - Microcontroller Code/Redundant/Buffers.asm
|
liwenyip/adhoc
|
d5402c347b229847a8242c89eb0ee97ee4d67d26
|
[
"MIT"
] | null | null | null |
;*************************************************************************
; SOFTWARE BUFFERS MODULE
;
; Version 0.10
; 17/07/2005
;
; Li-Wen Yip
; Ad Hoc Radio Networking Research Project
; School Of Engineering
; James Cook University
;
;
; The RAM allocated for each buffer must not overlap two RAM banks. This allows
; faster loading and saving of the pointer values.
;
; Resources Requiring Exclusive Use:
; RAM Bank 4, FSR0
;
; Notes:
;
;
; What you need to understand to work with this code:
;
;
;
;
;*************************************************************************
; INCLUDE FILES
LIST P=18C452, F=INHX32 ;directive to define processor and file format
#include <P18C452.INC> ;processor specific variable definitions
#include "macrolib.inc" ; common macros
#include "swstack.inc" ; software stack
;*************************************************************************
; CONFIGURATION SECTION
;*************************************************************************
; CONSTANTS
getter equ 0
putter equ 1
bdata equ 2
;*************************************************************************
; VARIABLES
; Access RAM
udata_acs
BUF_FLAGS res 1
#define BUF_EOF BUF_FLAGS, 0
#define BUF_FULL BUF_FLAGS, 1
#define RXBUF_SW BUF_FLAGS, 2
#define TXBUF_SW BUF_FLAGS, 3
#define RXBUF_LOCK BUF_FLAGS, 4
#define TXBUF_LOCK BUF_FLAGS, 5
; Put all buffer storage in a high bank, as it will never be addressed directly
; Byte 0 = Read Pointer (Getter)
; Byte 1 = Write Pointer (Putter)
; Bytes 2->63 = Buffer Storage
.BUFFERS udata 0x400
BUF0 res 0x40 ; Buffer 0
BUF1 res 0x40 ; Buffer 1
BUF2 res 0x40 ; Buffer 2
BUF3 res 0x40 ; Buffer 3
;*************************************************************************
; START OF CODE
CODE
;***************************************************************
; MACRO: BUFPUT
;
; Description: Push WREG into the buffer.
; Arguments: buf - The buffer to push to.
; Precond'ns: -
; Postcond'ns: WREG -> BUFn + PUTTERn++.
; Regs Used: FSRO (Stacked).
;***************************************************************
BUFPUT macro buf
; Context Saving
SWPUSH FSR0L, 2 ; Stack FSR0.
SWPUSH BSR, 1 ; Stack BSR.
; Save WREG, Set BSR
SWPUSH WREG, 1 ; WREG -> TOS.
movlb high buf ; Select bank containing buffer.
; Load the address of the buffer & offset, write to the buffer.
lfsr 0, buf + bdata ; Address of buffer data -> FSR0.
movf buf + putter, w ; Putter -> WREG.
SWPOP PLUSW0, 1 ; TOS -> Buffer Addr + Putter.
; Increment the putter and check if the buffer is full.
incf buf + putter ; Putter + 1 -> Putter.
movlw scnsz_low buf - 2 ; Calculate buffer length.
bcf BUF_FULL ; Clear the FULL flag.
cpfslt buf + putter ; Is putter < buffer length?
bsf BUF_FULL ; NO - set the FULL flag.
; Context Restoring
SWPOP BSR, 1 ; Unstack BSR.
SWPOP FSR0L, 2 ; Unstack FSR0.
return
endm
;***************************************************************
; MACRO: BUFGET
;
; Description: Pop to WREG from buffer.
; Arguments: buf - The buffer to pop from.
; Precond'ns: -
; Postcond'ns: BUFn + PUTTERn-- -> WREG.
; Regs Used: FSRO (Stacked).
;***************************************************************
BUFGET macro buf
; Context Saving
SWPUSH FSR0L, 2 ; Stack FSR0.
SWPUSH BSR, 1 ; Stack BSR.
movlb high buf ; Select bank containing buffer.
; Load the address of the buffer & offset, read from the buffer.
lfsr 0, buf + bdata ; Address of buffer data -> FSR0.
movf buf + getter, w ; Getter -> WREG.
SWPUSH PLUSW0, 1 ; Buffer Addr + Getter -> TOS.
; Increment the getter and check for EOF.
incf buf + getter ; Increment the getter.
movf buf + putter, w ; Load up the putter.
bcf BUF_EOF ; Clear the EOF flag.
cpfslt buf + getter ; Is getter < putter?
bsf BUF_EOF ; NO - Set the EOF flag.
; Put result in WREG
SWPOP WREG, 1 ; TOS -> WREG.
; Context Restoring
SWPOP BSR, 1 ; Unstack BSR.
SWPOP FSR0L, 2 ; Unstack FSR0.
return
endm
;***************************************************************
; MACRO: BUFCLR
;
; Description: Clear buffer.
; Arguments: buf - The buffer to clear.
; Precond'ns: -
; Postcond'ns: putter = getter = 0.
; Regs Used:
;***************************************************************
BUFCLR macro buf
clrf buf + getter ; 0 -> Getter.
clrf buf + putter ; 0 -> Putter.
return
endm
;***************************************************************
; MACRO: BUFRST
;
; Description: Reset buffer.
; Arguments: buf - The buffer to clear.
; Precond'ns: -
; Postcond'ns: getter = 0.
; Regs Used:
;***************************************************************
BUFRST macro buf
clrf buf + getter ; 0 -> Getter.
return
endm
; Subroutines for each buffer
PUT0: BUFPUT 0
GET0: BUFGET 0
CLR0: BUFCLR 0
PUT1: BUFPUT 1
GET1: BUFGET 1
CLR1: BUFCLR 1
PUT2: BUFPUT 2
GET2: BUFGET 2
CLR2: BUFCLR 2
PUT3: BUFPUT 3
GET3: BUFGET 3
CLR3: BUFCLR 3
RXBUFA_PUT:
btfss RXBUF_SW
bra PUT0
bra PUT1
RXBUFA_GET:
btfss RXBUF_SW
bra GET0
bra GET1
RXBUFA_CLR:
btfss RXBUF_SW
bra CLR0
bra CLR1
RXBUFA_RST:
btfss RXBUF_SW
bra RST0
bra RST1
RXBUFB_PUT:
btfss RXBUF_SW
bra PUT1
bra PUT0
RXBUFB_GET:
btfss RXBUF_SW
bra GET1
bra GET0
RXBUFB_CLR:
btfss RXBUF_SW
bra CLR1
bra CLR0
RXBUFB_RST:
btfss RXBUF_SW
bra RST1
bra RST0
TXBUFA_PUT:
btfss TXBUF_SW
bra PUT2
bra PUT3
TXBUFA_GET:
btfss TXBUF_SW
bra GET2
bra GET3
TXBUFA_CLR:
btfss TXBUF_SW
bra CLR2
bra CLR3
TXBUFA_RST:
btfss TXBUF_SW
bra RST2
bra RST3
TXBUFB_PUT:
btfss TXBUF_SW
bra PUT3
bra PUT2
TXBUFB_GET:
btfss TXBUF_SW
bra GET3
bra GET2
TXBUFB_CLR:
btfss TXBUF_SW
bra CLR3
bra CLR2
TXBUFB_RST:
btfss TXBUF_SW
bra RST3
bra RST2
end
| 21.548507
| 79
| 0.575931
|
e9101e412886e75171c1656d0ffe831a4eb978f4
| 731
|
asm
|
Assembly
|
oeis/319/A319534.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/319/A319534.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/319/A319534.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A319534: Number of integers x such that 1 <= x <= n and gcd(x,n) = gcd(x+2,n) = gcd(x+6,n) = 1.
; Submitted by Jon Maiga
; 1,1,1,2,2,1,4,4,3,2,8,2,10,4,2,8,14,3,16,4,4,8,20,4,10,10,9,8,26,2,28,16,8,14,8,6,34,16,10,8,38,4,40,16,6,20,44,8,28,10,14,20,50,9,16,16,16,26,56,4,58,28,12,32,20,8,64,28,20,8,68,12,70,34,10,32,32,10,76,16,27,38,80,8,28,40,26,32,86,6,40,40,28,44,32,16,94,28,24,20
add $0,1
mov $1,1
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mov $6,$2
cmp $6,0
add $2,$6
mod $4,$2
cmp $4,0
cmp $4,0
mov $5,$2
add $2,1
cmp $5,1
max $4,$5
sub $3,$4
lpe
mov $5,1
lpb $0
dif $0,$2
mul $5,$2
lpe
dif $5,$2
mul $1,$5
trn $2,4
add $2,1
mul $1,$2
lpe
mov $0,$1
| 20.885714
| 265
| 0.519836
|
b6adebc17afb731821e8d6bf6a3417af82a1642a
| 253
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_saddr2px.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_saddr2px.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_saddr2px.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; uchar tshc_saddr2px(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_saddr2px
EXTERN zx_saddr2px
defc tshc_saddr2px = zx_saddr2px
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_saddr2px
defc _tshc_saddr2px = tshc_saddr2px
ENDIF
| 14.055556
| 35
| 0.83004
|
333881c3b5140d1b7b6c3dcc380a3308feffdce9
| 388
|
asm
|
Assembly
|
programs/oeis/113/A113836.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/113/A113836.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/113/A113836.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A113836: a(n) = Sum[2^(A001651(i-1)-1), {i,1,n}].
; 1,3,11,27,91,219,731,1755,5851,14043,46811,112347,374491,898779,2995931,7190235,23967451,57521883,191739611,460175067,1533916891,3681400539,12271335131,29451204315,98170681051,235609634523
mov $3,$0
add $3,1
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
sub $0,$3
mov $2,2
mov $4,$0
mul $4,6
div $4,4
pow $2,$4
add $1,$2
lpe
| 21.555556
| 190
| 0.659794
|
d9128ddcda149d440c49dbe0108408f254137f6a
| 4,831
|
asm
|
Assembly
|
reverse_engineering/delco/vw_premium_5/custom/loopback_poll/loopback_poll.asm
|
mnaberez/vwradio
|
5a70aa5d9ebfa0d6593bc02f33cb356f02c5a75d
|
[
"BSD-3-Clause"
] | 45
|
2018-06-16T07:52:05.000Z
|
2022-03-08T15:55:02.000Z
|
reverse_engineering/delco/vw_premium_5/custom/loopback_poll/loopback_poll.asm
|
mnaberez/vwradio
|
5a70aa5d9ebfa0d6593bc02f33cb356f02c5a75d
|
[
"BSD-3-Clause"
] | 1
|
2018-03-28T17:13:53.000Z
|
2019-03-02T19:06:34.000Z
|
reverse_engineering/delco/vw_premium_5/custom/loopback_poll/loopback_poll.asm
|
mnaberez/vwradio
|
5a70aa5d9ebfa0d6593bc02f33cb356f02c5a75d
|
[
"BSD-3-Clause"
] | 8
|
2018-06-15T09:22:44.000Z
|
2021-09-23T20:16:54.000Z
|
.area CODE1 (ABS)
.org 0
rxb0_txs0 = 0xff18 ;Transmit shift register 0 / Receive buffer register 0
pm2 = 0xff22 ;Port mode register 2
asim0 = 0xffa0 ;Asynchronous serial interface mode register 0
asis0 = 0xffa1 ;Asynchronous serial interface status register 0
brgc0 = 0xffa2 ;Baud rate generator control register 0
if0h = 0xffe1 ;Interrupt request flag register 0H
ims = 0xfff0 ;Memory size switching register
ixs = 0xfff4 ;Internal expansion RAM size switching register
wdtm = 0xfff9 ;Watchdog timer mode register
pcc = 0xfffb ;Processor clock control register
.word reset ;VECTOR RST
.word irq_unexpected ;VECTOR (unused)
.word irq_unexpected ;VECTOR INTWDT
.word irq_unexpected ;VECTOR INTP0
.word irq_unexpected ;VECTOR INTP1
.word irq_unexpected ;VECTOR INTP2
.word irq_unexpected ;VECTOR INTP3
.word irq_unexpected ;VECTOR INTP4
.word irq_unexpected ;VECTOR INTP5
.word irq_unexpected ;VECTOR INTP6
.word irq_unexpected ;VECTOR INTP7
.word irq_unexpected ;VECTOR INTSER0
.word irq_unexpected ;VECTOR INTSR0
.word irq_unexpected ;VECTOR INTST0
.word irq_unexpected ;VECTOR INTCSI30
.word irq_unexpected ;VECTOR INTCSI31
.word irq_unexpected ;VECTOR INTIIC0
.word irq_unexpected ;VECTOR INTC2
.word irq_unexpected ;VECTOR INTWTNI0
.word irq_unexpected ;VECTOR INTTM000
.word irq_unexpected ;VECTOR INTTM010
.word irq_unexpected ;VECTOR INTTM001
.word irq_unexpected ;VECTOR INTTM011
.word irq_unexpected ;VECTOR INTAD00
.word irq_unexpected ;VECTOR INTAD01
.word irq_unexpected ;VECTOR (unused)
.word irq_unexpected ;VECTOR INTWTN0
.word irq_unexpected ;VECTOR INTKR
.word irq_unexpected ;VECTOR (unused)
.word irq_unexpected ;VECTOR (unused)
.word irq_unexpected ;VECTOR (unused)
.word irq_unexpected ;VECTOR BRK_I
.word irq_unexpected ;VECTOR CALLT #0
.word irq_unexpected ;VECTOR CALLT #1
.word irq_unexpected ;VECTOR CALLT #2
.word irq_unexpected ;VECTOR CALLT #3
.word irq_unexpected ;VECTOR CALLT #4
.word irq_unexpected ;VECTOR CALLT #5
.word irq_unexpected ;VECTOR CALLT #6
.word irq_unexpected ;VECTOR CALLT #7
.word irq_unexpected ;VECTOR CALLT #8
.word irq_unexpected ;VECTOR CALLT #9
.word irq_unexpected ;VECTOR CALLT #10
.word irq_unexpected ;VECTOR CALLT #11
.word irq_unexpected ;VECTOR CALLT #12
.word irq_unexpected ;VECTOR CALLT #13
.word irq_unexpected ;VECTOR CALLT #14
.word irq_unexpected ;VECTOR CALLT #15
.word irq_unexpected ;VECTOR CALLT #16
.word irq_unexpected ;VECTOR CALLT #17
.word irq_unexpected ;VECTOR CALLT #18
.word irq_unexpected ;VECTOR CALLT #19
.word irq_unexpected ;VECTOR CALLT #20
.word irq_unexpected ;VECTOR CALLT #21
.word irq_unexpected ;VECTOR CALLT #22
.word irq_unexpected ;VECTOR CALLT #23
.word irq_unexpected ;VECTOR CALLT #24
.word irq_unexpected ;VECTOR CALLT #25
.word irq_unexpected ;VECTOR CALLT #26
.word irq_unexpected ;VECTOR CALLT #27
.word irq_unexpected ;VECTOR CALLT #28
.word irq_unexpected ;VECTOR CALLT #29
.word irq_unexpected ;VECTOR CALLT #30
.word irq_unexpected ;VECTOR CALLT #31
irq_unexpected:
br irq_unexpected
reset:
di ;Disable interrupts
mov pcc,#0 ;Processor clock = full speed
mov wdtm,#0 ;Watchdog disabled
mov ixs,#8 ;Expansion RAM size = 2K
mov ims,#0xcf ;High speed RAM size = 1K, ROM size = 60K
movw sp,#0xfe1f ;Initialize stack pointer
mov asim0,#0 ;Disable UART
mov brgc0,#0x1b ;Set baud rate to 38400 bps
clr1 if0h.2 ;Clear receive complete interrupt flag
clr1 if0h.3 ;Clear transmit complete interrupt flag
mov asim0,#0b11001010 ;Enable UART for tx/rx and 8-N-1
clr1 pm2.5 ;PM25=output (TxD0)
loop:
call recv_byte ;Wait for a byte from UART0, store it in A
call send_byte ;Send byte in A on UART0
br loop
recv_byte:
bf if0h.2, recv_byte ;Wait until IF0H.2=1 (receive complete)
clr1 if0h.2 ;Clear receive complete interrupt flag
mov a,rxb0_txs0 ;A = byte received
ret
send_byte:
mov rxb0_txs0,a ;Send byte in A
send_wait:
bf if0h.3, send_wait ;Wait until IF0H.3=1 (transmit complete)
clr1 if0h.3 ;Clear transmit complete interrupt flag
ret
| 42.377193
| 82
| 0.649555
|
0516861a2524d1e9bafaf46b8d6180eedca09d6f
| 796
|
asm
|
Assembly
|
data/pokemon/base_stats/cleffa.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
data/pokemon/base_stats/cleffa.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
data/pokemon/base_stats/cleffa.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
db 0 ; species ID placeholder
db 50, 25, 28, 15, 45, 55
; hp atk def spd sat sdf
db FAIRY, FAIRY ; type
db 150 ; catch rate
db 37 ; base exp
db MYSTERYBERRY, MOON_STONE ; items
db GENDER_F75 ; gender ratio
db 100 ; unknown 1
db 10 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/cleffa/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_FAST ; growth rate
dn EGG_NONE, EGG_NONE ; egg groups
; tm/hm learnset
tmhm HEADBUTT, CURSE, ROLLOUT, TOXIC, ZAP_CANNON, PSYCH_UP, HIDDEN_POWER, SUNNY_DAY, SNORE, ICY_WIND, PROTECT, RAIN_DANCE, ENDURE, FRUSTRATION, SOLARBEAM, IRON_TAIL, RETURN, PSYCHIC_M, SHADOW_BALL, MUD_SLAP, DOUBLE_TEAM, SWAGGER, SLEEP_TALK, FIRE_BLAST, DEFENSE_CURL, DREAM_EATER, DETECT, REST, ATTRACT, NIGHTMARE, FLASH, FLAMETHROWER
; end
| 36.181818
| 335
| 0.726131
|
fb8c5e994975a3812a00c6df851d4c87f52dbcde
| 3,425
|
asm
|
Assembly
|
shell/string.asm
|
leonardoruilova/xos
|
1e72d2294a7373dbbd601e6796a8a95d0d7056a8
|
[
"MIT"
] | 1
|
2021-03-21T19:49:05.000Z
|
2021-03-21T19:49:05.000Z
|
shell/string.asm
|
leonardoruilova/xos
|
1e72d2294a7373dbbd601e6796a8a95d0d7056a8
|
[
"MIT"
] | null | null | null |
shell/string.asm
|
leonardoruilova/xos
|
1e72d2294a7373dbbd601e6796a8a95d0d7056a8
|
[
"MIT"
] | null | null | null |
;; xOS Shell
;; Copyright (c) 2017 by Omar Mohammad.
use32
; strlen:
; Gets length of string
; In\ ESI = String
; Out\ EAX = Length in byte
strlen:
pusha
mov ecx, 0
.loop:
lodsb
cmp al, 0
je .done
inc ecx
jmp .loop
.done:
mov [.tmp], ecx
popa
mov eax, [.tmp]
ret
align 4
.tmp dd 0
; find_byte_in_string:
; Find a byte within a string
; In\ ESI = String
; In\ DL = Byte to find
; In\ ECX = Total bytes to search
; Out\ EFLAGS = Carry clear if byte found
; Out\ ESI = Pointer to byte in string
find_byte_in_string:
.loop:
lodsb
cmp al, dl
je .found
loop .loop
stc
ret
.found:
dec esi
clc
ret
; replace_byte_in_string:
; Replaces a byte in a string
; In\ ECX = Size of string
; In\ ESI = String
; In\ DL = Byte to find
; In\ DH = Byte to replace with
; Out\ Nothing
replace_byte_in_string:
mov [.byte_to_find], dl
mov [.byte_to_replace], dh
;call strlen
;mov ecx, eax
.loop:
mov al, [esi]
cmp al, [.byte_to_find]
je .found
inc esi
dec ecx
cmp ecx, 0
je .done
jmp .loop
.found:
mov al, [.byte_to_replace]
mov [esi], al
inc esi
dec ecx
cmp ecx, 0
je .done
jmp .loop
.done:
ret
.byte_to_find db 0
.byte_to_replace db 0
; int_to_string:
; Converts an unsigned integer to a string
; In\ EAX = Integer
; Out\ ESI = ASCIIZ string
int_to_string:
push eax
mov [.counter], 10
mov edi, .string
mov ecx, 10
mov eax, 0
rep stosb
mov esi, .string
add esi, 9
pop eax
.loop:
cmp eax, 0
je .done2
mov ebx, 10
mov edx, 0
div ebx
add dl, 48
mov byte[esi], dl
dec esi
sub byte[.counter], 1
cmp byte[.counter], 0
je .done
jmp .loop
.done:
mov esi, .string
ret
.done2:
cmp byte[.counter], 10
je .zero
mov esi, .string
.find_string_loop:
lodsb
cmp al, 0
jne .found_string
jmp .find_string_loop
.found_string:
dec esi
ret
.zero:
mov edi, .string
mov al, '0'
stosb
mov al, 0
stosb
mov esi, .string
ret
.string: times 11 db 0
.counter db 0
; update_time:
; Updates the time in the task bar
update_time:
mov al, [.hour]
mov [.hour_old], al
mov al, [.minute]
mov [.minute_old], al
mov ebp, XOS_GET_TIME
int 0x60
mov [.hour], ah
mov [.minute], al
;mov [.second], bl
cmp ah, [.hour_old]
jne .do_minute
cmp al, [.minute_old]
je .quit
.do_minute:
cmp [.minute], 9
jle .minute_small
movzx eax, [.minute]
call int_to_string
mov edi, time_text+3
movsw
jmp .do_hour
.minute_small:
movzx eax, [.minute]
add al, 48 ; '0'
mov byte[time_text+3], "0"
mov byte[time_text+4], al
.do_hour:
cmp [.hour], 0
je .midnight
cmp [.hour], 9
jle .hour_small
cmp [.hour], 12
jg .pm
.am:
movzx eax, [.hour]
call int_to_string
mov edi, time_text
movsw
mov word[time_text+6], "AM"
jmp .done
.midnight:
mov word[time_text], "12"
mov word[time_text+6], "AM"
jmp .done
.hour_small:
movzx eax, [.hour]
add al, 48
mov byte[time_text], "0"
mov byte[time_text+1], al
mov word[time_text+6], "AM"
jmp .done
.pm:
movzx eax, [.hour]
sub eax, 12
cmp eax, 0
je .12_pm
cmp eax, 9
jle .pm_small
call int_to_string
mov edi, time_text
movsw
mov word[time_text+6], "PM"
jmp .done
.pm_small:
add al, 48
mov byte[time_text], "0"
mov byte[time_text+1], al
mov word[time_text+6], "PM"
jmp .done
.12_pm:
mov word[time_text], "12"
mov word[time_text+6], "PM"
jmp .done
.done:
mov eax, [window_handle]
call xwidget_redraw
.quit:
ret
.hour db 0
.minute db 0
.hour_old db 0
.minute_old db 0
| 12.454545
| 42
| 0.655182
|
da62b1f712b2d52f454de294248d797e4850ddd7
| 5,646
|
asm
|
Assembly
|
src/pm/smx/_event.asm
|
OS2World/DEV-UTIL-ScitechOS_PML
|
fd285be7203a6bac25aebd0a856fa17058c8a4c0
|
[
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
src/pm/smx/_event.asm
|
OS2World/DEV-UTIL-ScitechOS_PML
|
fd285be7203a6bac25aebd0a856fa17058c8a4c0
|
[
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
src/pm/smx/_event.asm
|
OS2World/DEV-UTIL-ScitechOS_PML
|
fd285be7203a6bac25aebd0a856fa17058c8a4c0
|
[
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
;****************************************************************************
;*
;* SciTech Multi-platform Graphics Library
;*
;* ========================================================================
;*
;* The contents of this file are subject to the SciTech MGL Public
;* License Version 1.0 (the "License"); you may not use this file
;* except in compliance with the License. You may obtain a copy of
;* the License at http://www.scitechsoft.com/mgl-license.txt
;*
;* Software distributed under the License is distributed on an
;* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
;* implied. See the License for the specific language governing
;* rights and limitations under the License.
;*
;* The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
;*
;* The Initial Developer of the Original Code is SciTech Software, Inc.
;* All Rights Reserved.
;*
;* ========================================================================
;*
;* Language: 80386 Assembler
;* Environment: IBM PC (MS DOS)
;*
;* Description: Assembly language support routines for the event module.
;*
;****************************************************************************
ideal
include "scitech.mac" ; Memory model macros
ifdef flatmodel
header _event ; Set up memory model
begdataseg _event
cextern _EVT_biosPtr,DPTR
cpublic _EVT_dataStart
ifdef USE_NASM
%define KB_HEAD WORD esi+01Ah ; Keyboard buffer head in BIOS data area
%define KB_TAIL WORD esi+01Ch ; Keyboard buffer tail in BIOS data area
%define KB_START WORD esi+080h ; Start of keyboard buffer in BIOS data area
%define KB_END WORD esi+082h ; End of keyboard buffer in BIOS data area
else
KB_HEAD EQU WORD esi+01Ah ; Keyboard buffer head in BIOS data area
KB_TAIL EQU WORD esi+01Ch ; Keyboard buffer tail in BIOS data area
KB_START EQU WORD esi+080h ; Start of keyboard buffer in BIOS data area
KB_END EQU WORD esi+082h ; End of keyboard buffer in BIOS data area
endif
cpublic _EVT_dataEnd
enddataseg _event
begcodeseg _event ; Start of code segment
cpublic _EVT_codeStart
;----------------------------------------------------------------------------
; int _EVT_getKeyCode(void)
;----------------------------------------------------------------------------
; Returns the key code for the next available key by extracting it from
; the BIOS keyboard buffer.
;----------------------------------------------------------------------------
cprocstart _EVT_getKeyCode
enter_c
mov esi,[_EVT_biosPtr]
xor ebx,ebx
xor eax,eax
mov bx,[KB_HEAD]
cmp bx,[KB_TAIL]
jz @@Done
xor eax,eax
mov ax,[esi+ebx] ; EAX := character from keyboard buffer
inc _bx
inc _bx
cmp bx,[KB_END] ; Hit the end of the keyboard buffer?
jl @@1
mov bx,[KB_START]
@@1: mov [KB_HEAD],bx ; Update keyboard buffer head pointer
@@Done: leave_c
ret
cprocend
;----------------------------------------------------------------------------
; int _EVT_disableInt(void);
;----------------------------------------------------------------------------
; Return processor interrupt status and disable interrupts.
;----------------------------------------------------------------------------
cprocstart _EVT_disableInt
pushf ; Put flag word on stack
cli ; Disable interrupts!
pop eax ; deposit flag word in return register
ret
cprocend
;----------------------------------------------------------------------------
; void _EVT_restoreInt(int ps);
;----------------------------------------------------------------------------
; Restore processor interrupt status.
;----------------------------------------------------------------------------
cprocstart _EVT_restoreInt
ARG ps:UINT
push ebp
mov ebp,esp ; Set up stack frame
push [DWORD ps]
popf ; Restore processor status (and interrupts)
pop ebp
ret
cprocend
;----------------------------------------------------------------------------
; int EVT_rdinx(int port,int index)
;----------------------------------------------------------------------------
; Reads an indexed register value from an I/O port.
;----------------------------------------------------------------------------
cprocstart EVT_rdinx
ARG port:UINT, index:UINT
push ebp
mov ebp,esp
mov edx,[port]
mov al,[BYTE index]
out dx,al
inc dx
in al,dx
movzx eax,al
pop ebp
ret
cprocend
;----------------------------------------------------------------------------
; void EVT_wrinx(int port,int index,int value)
;----------------------------------------------------------------------------
; Writes an indexed register value to an I/O port.
;----------------------------------------------------------------------------
cprocstart EVT_wrinx
ARG port:UINT, index:UINT, value:UINT
push ebp
mov ebp,esp
mov edx,[port]
mov al,[BYTE index]
mov ah,[BYTE value]
out dx,ax
pop ebp
ret
cprocend
cpublic _EVT_codeEnd
endcodeseg _event
endif
END ; End of module
| 32.079545
| 80
| 0.449876
|
16b230574ef7b251dc2ee9654935e77ba699c36c
| 489
|
asm
|
Assembly
|
libsrc/psg/mc1000/set_psg_callee.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | null | null | null |
libsrc/psg/mc1000/set_psg_callee.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | null | null | null |
libsrc/psg/mc1000/set_psg_callee.asm
|
grancier/z180
|
e83f35e36c9b4d1457e40585019430e901c86ed9
|
[
"ClArtistic"
] | 1
|
2019-12-03T23:57:48.000Z
|
2019-12-03T23:57:48.000Z
|
;
; Sharp specific routines
; by Stefano Bodrato, Fall 2013
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg_callee.asm,v 1.4 2016/06/10 21:13:58 dom Exp $
;
SECTION code_clib
PUBLIC set_psg_callee
PUBLIC _set_psg_callee
PUBLIC ASMDISP_SET_PSG_CALLEE
set_psg_callee:
_set_psg_callee:
pop hl
pop de
ex (sp),hl
.asmentry
LD BC,$20
OUT (C),l
ld c,$60
OUT (C),e
ret
DEFC ASMDISP_SET_PSG_CALLEE = # asmentry - set_psg_callee
| 12.868421
| 61
| 0.683027
|
8a8a8620651b8e3cfd3e05ce864473fc7fe8990c
| 8,914
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_741.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_741.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_741.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xa173, %rsi
lea addresses_WT_ht+0xd1f3, %rdi
nop
add $50993, %r15
mov $13, %rcx
rep movsl
nop
sub %rdx, %rdx
lea addresses_D_ht+0x1dff3, %rsi
lea addresses_A_ht+0x132e3, %rdi
cmp %rdx, %rdx
mov $67, %rcx
rep movsq
nop
nop
nop
nop
nop
add $26499, %r15
lea addresses_UC_ht+0x6a93, %rbp
nop
nop
nop
cmp %r13, %r13
mov (%rbp), %rdx
add $40201, %rsi
lea addresses_WC_ht+0x12a73, %r13
clflush (%r13)
nop
nop
nop
nop
cmp %rbp, %rbp
movl $0x61626364, (%r13)
cmp %rdx, %rdx
lea addresses_D_ht+0x1263f, %rdi
sub $4126, %rbp
mov $0x6162636465666768, %r15
movq %r15, %xmm7
movups %xmm7, (%rdi)
nop
nop
nop
add %rdi, %rdi
lea addresses_A_ht+0x18aa3, %rbp
nop
add $11506, %rcx
mov (%rbp), %rdx
nop
xor $1235, %r15
lea addresses_normal_ht+0xe6b3, %r13
nop
nop
add $54183, %rbp
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
vmovups %ymm0, (%r13)
sub $45500, %rsi
lea addresses_WC_ht+0xfdf3, %rsi
lea addresses_normal_ht+0x6f49, %rdi
nop
nop
nop
sub %r9, %r9
mov $34, %rcx
rep movsq
nop
nop
nop
nop
nop
add $34154, %r9
lea addresses_UC_ht+0x8c3, %rsi
lea addresses_normal_ht+0x107f3, %rdi
nop
nop
and %rbp, %rbp
mov $9, %rcx
rep movsb
nop
nop
nop
nop
nop
inc %r13
lea addresses_WC_ht+0x1d373, %rdi
and $43860, %r9
mov $0x6162636465666768, %rcx
movq %rcx, %xmm2
vmovups %ymm2, (%rdi)
sub $55450, %rdx
lea addresses_A_ht+0x7213, %rbp
nop
inc %r9
movb $0x61, (%rbp)
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WT_ht+0xb6f3, %rsi
sub %r9, %r9
mov $0x6162636465666768, %rcx
movq %rcx, (%rsi)
nop
nop
inc %rsi
lea addresses_UC_ht+0x8f3d, %r9
nop
nop
nop
nop
nop
inc %r13
mov (%r9), %rdx
xor $8230, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %r8
push %rcx
push %rdi
// Store
lea addresses_PSE+0x123f3, %rcx
clflush (%rcx)
nop
nop
nop
nop
nop
cmp %r8, %r8
movb $0x51, (%rcx)
add $47357, %rcx
// Store
lea addresses_US+0x11b9b, %rcx
nop
nop
dec %r12
mov $0x5152535455565758, %r8
movq %r8, (%rcx)
nop
cmp $5240, %r14
// Store
lea addresses_D+0xe97b, %r8
nop
nop
nop
nop
nop
xor $15478, %r14
mov $0x5152535455565758, %rcx
movq %rcx, (%r8)
nop
nop
nop
nop
nop
dec %r12
// Load
lea addresses_RW+0x1a6c3, %r15
nop
xor $61800, %rdi
mov (%r15), %r8w
sub $37402, %r12
// Load
lea addresses_WC+0xc58a, %r14
nop
nop
sub $37021, %rdi
movb (%r14), %r15b
nop
nop
nop
nop
and %r12, %r12
// Load
lea addresses_normal+0x183f3, %r14
nop
sub %r11, %r11
movb (%r14), %r15b
inc %r12
// Store
lea addresses_WT+0x16bf3, %rcx
nop
nop
nop
sub $43502, %r12
mov $0x5152535455565758, %r14
movq %r14, (%rcx)
nop
nop
nop
nop
nop
xor %r12, %r12
// Faulty Load
lea addresses_WC+0x1b3f3, %r15
nop
nop
cmp $39568, %r8
mov (%r15), %r11
lea oracles, %r12
and $0xff, %r11
shlq $12, %r11
mov (%r12,%r11,1), %r11
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_PSE'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_US'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D'}}
{'src': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 7, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'51': 21829}
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 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 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 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 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 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 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 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 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 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 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
*/
| 32.297101
| 2,999
| 0.652457
|
01ac0e1c3c7fb2cb88c8521a7fdf41240c02b4f3
| 670
|
asm
|
Assembly
|
audio/sfx/pokedex_rating_3.asm
|
etdv-thevoid/pokemon-rgb-enhanced
|
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
audio/sfx/pokedex_rating_3.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
audio/sfx/pokedex_rating_3.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
SFX_Pokedex_Rating_3_Ch4:
executemusic
tempo 256
volume 7, 7
duty 2
notetype 5, 11, 1
octave 3
A_ 2
A_ 2
G_ 2
G_ 2
F_ 2
E_ 2
F_ 2
A_ 2
octave 4
C_ 4
E_ 4
octave 3
F_ 4
endchannel
SFX_Pokedex_Rating_3_Ch5:
executemusic
duty 2
notetype 5, 12, 2
octave 5
F_ 2
E_ 1
rest 1
D_ 2
C_ 1
rest 1
octave 4
A# 2
octave 5
C_ 2
D_ 2
E_ 2
F_ 4
G_ 4
F_ 4
endchannel
SFX_Pokedex_Rating_3_Ch6:
executemusic
notetype 5, 1, 0
octave 5
C_ 1
rest 1
octave 4
F_ 2
octave 5
C_ 1
rest 1
octave 4
A# 1
rest 1
A_ 1
rest 1
G_ 1
rest 1
F_ 1
rest 1
E_ 1
rest 1
octave 5
F_ 1
rest 3
C_ 1
rest 3
octave 4
F_ 2
rest 2
endchannel
| 8.589744
| 25
| 0.656716
|
f8314168400070fa5728c5bef70f5a439427f49d
| 39,593
|
asm
|
Assembly
|
src/Native/Runtime/arm64/GcProbe.asm
|
crummel/dotnet_corert
|
57289ff33dba98c8aea472019adebc08ec68634b
|
[
"MIT"
] | null | null | null |
src/Native/Runtime/arm64/GcProbe.asm
|
crummel/dotnet_corert
|
57289ff33dba98c8aea472019adebc08ec68634b
|
[
"MIT"
] | null | null | null |
src/Native/Runtime/arm64/GcProbe.asm
|
crummel/dotnet_corert
|
57289ff33dba98c8aea472019adebc08ec68634b
|
[
"MIT"
] | null | null | null |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
#include "AsmMacros.h"
TEXTAREA
SETALIAS GetLoopIndirCells, ?GetLoopIndirCells@ModuleHeader@@QEAAPEAEXZ
SETALIAS g_pTheRuntimeInstance, ?g_pTheRuntimeInstance@@3PEAVRuntimeInstance@@EA
SETALIAS RuntimeInstance__ShouldHijackLoopForGcStress, ?ShouldHijackLoopForGcStress@RuntimeInstance@@QEAA_N_K@Z
EXTERN g_fGcStressStarted
EXTERN $g_pTheRuntimeInstance
EXTERN $RuntimeInstance__ShouldHijackLoopForGcStress
EXTERN $GetLoopIndirCells
EXTERN RecoverLoopHijackTarget
PROBE_SAVE_FLAGS_EVERYTHING equ DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_ALL_SCRATCH
;; Build a map of symbols representing offsets into the transition frame (see PInvokeTransitionFrame in
;; rhbinder.h) and keep these two in sync.
map 0
field OFFSETOF__PInvokeTransitionFrame__m_PreservedRegs
field 10 * 8 ; x19..x28
m_CallersSP field 8 ; SP at routine entry
field 19 * 8 ; x0..x18
field 8 ; lr
m_SavedNZCV field 8 ; Saved condition flags
field 4 * 8 ; d0..d3
PROBE_FRAME_SIZE field 0
;; Support for setting up a transition frame when performing a GC probe. In many respects this is very
;; similar to the logic in PUSH_COOP_PINVOKE_FRAME in AsmMacros.h. In most cases setting up the
;; transition frame comprises the entirety of the caller's prolog (and initial non-prolog code) and
;; similarly for the epilog. Those cases can be dealt with using PROLOG_PROBE_FRAME and EPILOG_PROBE_FRAME
;; defined below. For the special cases where additional work has to be done in the prolog we also provide
;; the lower level macros ALLOC_PROBE_FRAME, FREE_PROBE_FRAME and INIT_PROBE_FRAME that allow more control
;; to be asserted.
;;
;; Note that we currently employ a significant simplification of frame setup: we always allocate a
;; maximally-sized PInvokeTransitionFrame and save all of the registers. Depending on the caller this can
;; lead to up to 20 additional register saves (x0-x18, lr) or 160 bytes of stack space. I have done no
;; analysis to see whether any of the worst cases occur on performance sensitive paths and whether the
;; additional saves will show any measurable degradation.
;; Perform the parts of setting up a probe frame that can occur during the prolog (and indeed this macro
;; can only be called from within the prolog).
MACRO
ALLOC_PROBE_FRAME $extraStackSpace, $saveFPRegisters
;; First create PInvokeTransitionFrame
PROLOG_SAVE_REG_PAIR fp, lr, #-(PROBE_FRAME_SIZE + $extraStackSpace)! ;; Push down stack pointer and store FP and LR
;; Slot at [sp, #0x10] is reserved for Thread *
;; Slot at [sp, #0x18] is reserved for bitmask of saved registers
;; Save callee saved registers
PROLOG_SAVE_REG_PAIR x19, x20, #0x20
PROLOG_SAVE_REG_PAIR x21, x22, #0x30
PROLOG_SAVE_REG_PAIR x23, x24, #0x40
PROLOG_SAVE_REG_PAIR x25, x26, #0x50
PROLOG_SAVE_REG_PAIR x27, x28, #0x60
;; Slot at [sp, #0x70] is reserved for caller sp
;; Save the scratch registers
PROLOG_NOP str x0, [sp, #0x78]
PROLOG_NOP stp x1, x2, [sp, #0x80]
PROLOG_NOP stp x3, x4, [sp, #0x90]
PROLOG_NOP stp x5, x6, [sp, #0xA0]
PROLOG_NOP stp x7, x8, [sp, #0xB0]
PROLOG_NOP stp x9, x10, [sp, #0xC0]
PROLOG_NOP stp x11, x12, [sp, #0xD0]
PROLOG_NOP stp x13, x14, [sp, #0xE0]
PROLOG_NOP stp x15, x16, [sp, #0xF0]
PROLOG_NOP stp x17, x18, [sp, #0x100]
PROLOG_NOP str lr, [sp, #0x110]
;; Slot at [sp, #0x118] is reserved for NZCV
;; Save the floating return registers
IF $saveFPRegisters
PROLOG_NOP stp d0, d1, [sp, #0x120]
PROLOG_NOP stp d2, d3, [sp, #0x130]
ENDIF
MEND
;; Undo the effects of an ALLOC_PROBE_FRAME. This may only be called within an epilog. Note that all
;; registers are restored (apart for sp and pc), even volatiles.
MACRO
FREE_PROBE_FRAME $extraStackSpace, $restoreFPRegisters
;; Restore the scratch registers
PROLOG_NOP ldr x0, [sp, #0x78]
PROLOG_NOP ldp x1, x2, [sp, #0x80]
PROLOG_NOP ldp x3, x4, [sp, #0x90]
PROLOG_NOP ldp x5, x6, [sp, #0xA0]
PROLOG_NOP ldp x7, x8, [sp, #0xB0]
PROLOG_NOP ldp x9, x10, [sp, #0xC0]
PROLOG_NOP ldp x11, x12, [sp, #0xD0]
PROLOG_NOP ldp x13, x14, [sp, #0xE0]
PROLOG_NOP ldp x15, x16, [sp, #0xF0]
PROLOG_NOP ldp x17, x18, [sp, #0x100]
PROLOG_NOP ldr lr, [sp, #0x110]
; Restore the floating return registers
IF $restoreFPRegisters
EPILOG_NOP ldp d0, d1, [sp, #0x120]
EPILOG_NOP ldp d2, d3, [sp, #0x130]
ENDIF
;; Restore callee saved registers
EPILOG_RESTORE_REG_PAIR x19, x20, #0x20
EPILOG_RESTORE_REG_PAIR x21, x22, #0x30
EPILOG_RESTORE_REG_PAIR x23, x24, #0x40
EPILOG_RESTORE_REG_PAIR x25, x26, #0x50
EPILOG_RESTORE_REG_PAIR x27, x28, #0x60
EPILOG_RESTORE_REG_PAIR fp, lr, #(PROBE_FRAME_SIZE + $extraStackSpace)!
MEND
;; Complete the setup of a probe frame allocated with ALLOC_PROBE_FRAME with the initialization that can
;; occur only outside the prolog (includes linking the frame to the current Thread). This macro assumes SP
;; is invariant outside of the prolog.
;;
;; $threadReg : register containing the Thread* (this will be preserved)
;; $trashReg : register that can be trashed by this macro
;; $savedRegsMask : value to initialize m_Flags field with (register or #constant)
;; $gcFlags : value of gcref / gcbyref flags for saved registers, used only if $savedRegsMask is constant
;; $frameSize : total size of the method's stack frame (including probe frame size)
MACRO
INIT_PROBE_FRAME $threadReg, $trashReg, $savedRegsMask, $gcFlags, $frameSize
LCLS BitmaskStr
BitmaskStr SETS "$savedRegsMask"
str $threadReg, [sp, #OFFSETOF__PInvokeTransitionFrame__m_pThread] ; Thread *
IF BitmaskStr:LEFT:1 == "#"
;; The savedRegsMask is a constant, remove the leading "#" since the MOVL64 doesn't expect it
BitmaskStr SETS BitmaskStr:RIGHT:(:LEN:BitmaskStr - 1)
MOVL64 $trashReg, $BitmaskStr, $gcFlags
ELSE
ASSERT "$gcFlags" == ""
;; The savedRegsMask is a register
mov $trashReg, $savedRegsMask
ENDIF
str $trashReg, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
add $trashReg, sp, #$frameSize
str $trashReg, [sp, #m_CallersSP]
MEND
;; Simple macro to use when setting up the probe frame can comprise the entire prolog. Call this macro
;; first in the method (no further prolog instructions can be added after this).
;;
;; $threadReg : register containing the Thread* (this will be preserved). If defaulted (specify |) then
;; the current thread will be calculated inline into r2 ($trashReg must not equal r2 in
;; this case)
;; $trashReg : register that can be trashed by this macro
;; $savedRegsMask : value to initialize m_dwFlags field with (register or #constant)
;; $gcFlags : value of gcref / gcbyref flags for saved registers, used only if $savedRegsMask is constant
MACRO
PROLOG_PROBE_FRAME $threadReg, $trashReg, $savedRegsMask, $gcFlags
; Local string tracking the name of the register in which the Thread* is kept. Defaults to the value
; of $threadReg.
LCLS __PPF_ThreadReg
__PPF_ThreadReg SETS "$threadReg"
; Define the method prolog, allocating enough stack space for the PInvokeTransitionFrame and saving
; incoming register values into it.
ALLOC_PROBE_FRAME 0, {true}
; If the caller didn't provide a value for $threadReg then generate code to fetch the Thread* into x2.
; Record that x2 holds the Thread* in our local variable.
IF "$threadReg" == ""
ASSERT "$trashReg" != "x2"
__PPF_ThreadReg SETS "x2"
INLINE_GETTHREAD $__PPF_ThreadReg, $trashReg
ENDIF
; Perform the rest of the PInvokeTransitionFrame initialization.
INIT_PROBE_FRAME $__PPF_ThreadReg, $trashReg, $savedRegsMask, $gcFlags, PROBE_FRAME_SIZE
mov $trashReg, sp
str $trashReg, [$__PPF_ThreadReg, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
MEND
; Simple macro to use when PROLOG_PROBE_FRAME was used to set up and initialize the prolog and
; PInvokeTransitionFrame. This will define the epilog including a return via the restored LR.
MACRO
EPILOG_PROBE_FRAME
FREE_PROBE_FRAME 0, {true}
EPILOG_RETURN
MEND
;; In order to avoid trashing VFP registers across the loop hijack we must save all user registers, so that
;; registers used by the loop being hijacked will not be affected. Unlike ARM32 where neon registers (NQ0, ..., NQ15)
;; are fully covered by the floating point registers D0 ... D31, we have 32 neon registers Q0, ... Q31 on ARM64
;; which are not fully covered by the register D0 ... D31. Therefore we must explicitly save all Q registers.
EXTRA_SAVE_SIZE equ (32*16)
MACRO
ALLOC_LOOP_HIJACK_FRAME
PROLOG_STACK_ALLOC EXTRA_SAVE_SIZE
;; Save all neon registers
PROLOG_NOP stp q0, q1, [sp]
PROLOG_NOP stp q2, q3, [sp, #0x20]
PROLOG_NOP stp q4, q5, [sp, #0x40]
PROLOG_NOP stp q6, q7, [sp, #0x60]
PROLOG_NOP stp q8, q9, [sp, #0x80]
PROLOG_NOP stp q10, q11, [sp, #0xA0]
PROLOG_NOP stp q12, q13, [sp, #0xC0]
PROLOG_NOP stp q14, q15, [sp, #0xE0]
PROLOG_NOP stp q16, q17, [sp, #0x100]
PROLOG_NOP stp q18, q19, [sp, #0x120]
PROLOG_NOP stp q20, q21, [sp, #0x140]
PROLOG_NOP stp q22, q23, [sp, #0x160]
PROLOG_NOP stp q24, q25, [sp, #0x180]
PROLOG_NOP stp q26, q27, [sp, #0x1A0]
PROLOG_NOP stp q28, q29, [sp, #0x1C0]
PROLOG_NOP stp q30, q31, [sp, #0x1E0]
ALLOC_PROBE_FRAME 0, {false}
MEND
MACRO
FREE_LOOP_HIJACK_FRAME
FREE_PROBE_FRAME 0, {false}
;; restore all neon registers
PROLOG_NOP ldp q0, q1, [sp]
PROLOG_NOP ldp q2, q3, [sp, #0x20]
PROLOG_NOP ldp q4, q5, [sp, #0x40]
PROLOG_NOP ldp q6, q7, [sp, #0x60]
PROLOG_NOP ldp q8, q9, [sp, #0x80]
PROLOG_NOP ldp q10, q11, [sp, #0xA0]
PROLOG_NOP ldp q12, q13, [sp, #0xC0]
PROLOG_NOP ldp q14, q15, [sp, #0xE0]
PROLOG_NOP ldp q16, q17, [sp, #0x100]
PROLOG_NOP ldp q18, q19, [sp, #0x120]
PROLOG_NOP ldp q20, q21, [sp, #0x140]
PROLOG_NOP ldp q22, q23, [sp, #0x160]
PROLOG_NOP ldp q24, q25, [sp, #0x180]
PROLOG_NOP ldp q26, q27, [sp, #0x1A0]
PROLOG_NOP ldp q28, q29, [sp, #0x1C0]
PROLOG_NOP ldp q30, q31, [sp, #0x1E0]
EPILOG_STACK_FREE EXTRA_SAVE_SIZE
MEND
;;
;; Macro to clear the hijack state. This is safe to do because the suspension code will not Unhijack this
;; thread if it finds it at an IP that isn't managed code.
;;
;; Register state on entry:
;; x2: thread pointer
;;
;; Register state on exit:
;;
MACRO
ClearHijackState
ASSERT OFFSETOF__Thread__m_pvHijackedReturnAddress == (OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation + 8)
;; Clear m_ppvHijackedReturnAddressLocation and m_pvHijackedReturnAddress
stp xzr, xzr, [x2, #OFFSETOF__Thread__m_ppvHijackedReturnAddressLocation]
;; Clear m_uHijackedReturnValueFlags
str xzr, [x2, #OFFSETOF__Thread__m_uHijackedReturnValueFlags]
MEND
;;
;; The prolog for all GC suspension hijacks (normal and stress). Fixes up the hijacked return address, and
;; clears the hijack state.
;;
;; Register state on entry:
;; All registers correct for return to the original return address.
;;
;; Register state on exit:
;; x2: thread pointer
;; x3: trashed
;; x12: transition frame flags for the return registers x0 and x1
;;
MACRO
FixupHijackedCallstack
;; x2 <- GetThread(), TRASHES x3
INLINE_GETTHREAD x2, x3
;;
;; Fix the stack by restoring the original return address
;;
ASSERT OFFSETOF__Thread__m_uHijackedReturnValueFlags == (OFFSETOF__Thread__m_pvHijackedReturnAddress + 8)
;; Load m_pvHijackedReturnAddress and m_uHijackedReturnValueFlags
ldp lr, x12, [x2, #OFFSETOF__Thread__m_pvHijackedReturnAddress]
ClearHijackState
MEND
;;
;; Set the Thread state and wait for a GC to complete.
;;
;; Register state on entry:
;; x4: thread pointer
;;
;; Register state on exit:
;; x4: thread pointer
;; All other registers trashed
;;
EXTERN RhpWaitForGCNoAbort
MACRO
WaitForGCCompletion
ldr w2, [x4, #OFFSETOF__Thread__m_ThreadStateFlags]
tst w2, #TSF_SuppressGcStress__OR__TSF_DoNotTriggerGC
bne %ft0
ldr x2, [x4, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
bl RhpWaitForGCNoAbort
0
MEND
MACRO
HijackTargetFakeProlog
;; This is a fake entrypoint for the method that 'tricks' the OS into calling our personality routine.
;; The code here should never be executed, and the unwind info is bogus, but we don't mind since the
;; stack is broken by the hijack anyway until after we fix it below.
PROLOG_SAVE_REG_PAIR fp, lr, #-0x10!
nop ; We also need a nop here to simulate the implied bl instruction. Without
; this, an OS-applied -4 will back up into the method prolog and the unwind
; will not be applied as desired.
MEND
;;
;;
;;
;; GC Probe Hijack targets
;;
;;
EXTERN RhpPInvokeExceptionGuard
NESTED_ENTRY RhpGcProbeHijackWrapper, .text, RhpPInvokeExceptionGuard
HijackTargetFakeProlog
LABELED_RETURN_ADDRESS RhpGcProbeHijack
FixupHijackedCallstack
orr x12, x12, #DEFAULT_FRAME_SAVE_FLAGS
b RhpGcProbe
NESTED_END RhpGcProbeHijackWrapper
#ifdef FEATURE_GC_STRESS
;;
;;
;; GC Stress Hijack targets
;;
;;
LEAF_ENTRY RhpGcStressHijack
FixupHijackedCallstack
orr x12, x12, #DEFAULT_FRAME_SAVE_FLAGS
b RhpGcStressProbe
LEAF_END RhpGcStressHijack
;;
;; Worker for our GC stress probes. Do not call directly!!
;; Instead, go through RhpGcStressHijack{Scalar|Object|Byref}.
;; This worker performs the GC Stress work and returns to the original return address.
;;
;; Register state on entry:
;; x0: hijacked function return value
;; x1: hijacked function return value
;; x2: thread pointer
;; w12: register bitmask
;;
;; Register state on exit:
;; Scratch registers, except for x0, have been trashed
;; All other registers restored as they were when the hijack was first reached.
;;
NESTED_ENTRY RhpGcStressProbe
PROLOG_PROBE_FRAME x2, x3, x12,
bl $REDHAWKGCINTERFACE__STRESSGC
EPILOG_PROBE_FRAME
NESTED_END RhpGcStressProbe
#endif ;; FEATURE_GC_STRESS
LEAF_ENTRY RhpGcProbe
brk 0xf000 ;; TODO: remove after debugging/testing stub
ldr x3, =RhpTrapThreads
ldr w3, [x3]
tbnz x3, #TrapThreadsFlags_TrapThreads_Bit, RhpGcProbeRare
ret
LEAF_END RhpGcProbe
EXTERN RhpThrowHwEx
NESTED_ENTRY RhpGcProbeRare
brk 0xf000 ;; TODO: remove after debugging/testing stub
PROLOG_PROBE_FRAME x2, x3, x12,
mov x4, x2
WaitForGCCompletion
ldr x2, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
tbnz x2, #PTFF_THREAD_ABORT_BIT, %F1
EPILOG_PROBE_FRAME
1
FREE_PROBE_FRAME 0, {true}
EPILOG_NOP mov w0, #STATUS_REDHAWK_THREAD_ABORT
EPILOG_NOP mov x1, lr ;; return address as exception PC
EPILOG_NOP b RhpThrowHwEx
NESTED_END RhpGcProbeRare
LEAF_ENTRY RhpGcPoll
brk 0xf000 ;; TODO: remove after debugging/testing stub
; @todo: I'm assuming it's not OK to trash any register here. If that's not true we can optimize the
; push/pops out of this fast path.
str x0, [sp], #-0x10!
ldr x0, =RhpTrapThreads
ldr w0, [x0]
tbnz x0, #TrapThreadsFlags_TrapThreads_Bit, %F0
ldr x0, [sp], #0x10!
ret
0
ldr x0, [sp], #0x10!
b RhpGcPollRare
LEAF_END RhpGcPoll
NESTED_ENTRY RhpGcPollRare
brk 0xf000 ;; TODO: remove after debugging/testing stub
PROLOG_PROBE_FRAME |, x3, #PROBE_SAVE_FLAGS_EVERYTHING, 0
; Unhijack this thread, if necessary.
INLINE_THREAD_UNHIJACK x2, x0, x1 ;; trashes x0, x1
mov x4, x2
WaitForGCCompletion
EPILOG_PROBE_FRAME
NESTED_END RhpGcPollRare
LEAF_ENTRY RhpGcPollStress
;
; loop hijacking is used instead
;
brk 0xf000
LEAF_END RhpGcPollStress
#ifdef FEATURE_GC_STRESS
NESTED_ENTRY RhpHijackForGcStress
;; This function should be called from right before epilog
;; Push FP and LR, and allocate stack to hold PAL_LIMITED_CONTEXT structure and VFP return value registers
PROLOG_SAVE_REG_PAIR fp, lr, #-(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
;;
;; Setup a PAL_LIMITED_CONTEXT that looks like what you'd get if you had suspended this thread at the
;; IP after the call to this helper.
;;
;; This is very likely overkill since the calculation of the return address should only need SP and
;; LR, but this is test code, so I'm not too worried about efficiency.
;;
;; Setup a PAL_LIMITED_CONTEXT on the stack
;; {
;; FP and LR already pushed.
PROLOG_NOP stp x0, x1, [sp, #0x10]
PROLOG_SAVE_REG_PAIR x19, x20, #0x20
PROLOG_SAVE_REG_PAIR x21, x22, #0x30
PROLOG_SAVE_REG_PAIR x23, x24, #0x40
PROLOG_SAVE_REG_PAIR x25, x26, #0x50
PROLOG_SAVE_REG_PAIR x27, x28, #0x60
PROLOG_SAVE_REG lr, #0x78
;; } end PAL_LIMITED_CONTEXT
;; Save VFP return value
stp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
stp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Compute and save SP at callsite.
add x0, sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20) ;; +0x20 for the pushes right before the context struct
str x0, [sp, #OFFSETOF__PAL_LIMITED_CONTEXT__SP]
mov x0, sp ; Address of PAL_LIMITED_CONTEXT
bl $THREAD__HIJACKFORGCSTRESS
;; Restore return value registers (saved in PAL_LIMITED_CONTEXT structure)
ldp x0, x1, [sp, #0x10]
;; Restore VFP return value
ldp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
ldp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Epilog
EPILOG_RESTORE_REG_PAIR x19, x20, #0x20
EPILOG_RESTORE_REG_PAIR x21, x22, #0x30
EPILOG_RESTORE_REG_PAIR x23, x24, #0x40
EPILOG_RESTORE_REG_PAIR x25, x26, #0x50
EPILOG_RESTORE_REG_PAIR x27, x28, #0x60
EPILOG_RESTORE_REG_PAIR fp, lr, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
EPILOG_RETURN
NESTED_END RhpHijackForGcStress
NESTED_ENTRY RhpHijackForGcStressLeaf
;; This should be jumped to, right before epilog
;; x9 has the return address (we don't care about trashing scratch regs at this point)
;; Push FP and LR, and allocate stack to hold PAL_LIMITED_CONTEXT structure and VFP return value registers
PROLOG_SAVE_REG_PAIR fp, lr, #-(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
;;
;; Setup a PAL_LIMITED_CONTEXT that looks like what you'd get if you had suspended this thread at the
;; IP after the call to this helper.
;;
;; This is very likely overkill since the calculation of the return address should only need SP and
;; LR, but this is test code, so I'm not too worried about efficiency.
;;
;; Setup a PAL_LIMITED_CONTEXT on the stack
;; {
;; FP and LR already pushed.
PROLOG_NOP stp x0, x1, [sp, #0x10]
PROLOG_SAVE_REG_PAIR x19, x20, #0x20
PROLOG_SAVE_REG_PAIR x21, x22, #0x30
PROLOG_SAVE_REG_PAIR x23, x24, #0x40
PROLOG_SAVE_REG_PAIR x25, x26, #0x50
PROLOG_SAVE_REG_PAIR x27, x28, #0x60
; PROLOG_SAVE_REG macro doesn't let to use scratch reg:
PROLOG_NOP str x9, [sp, #0x78] ; this is return address from RhpHijackForGcStress; lr is return address for it's caller
;; } end PAL_LIMITED_CONTEXT
;; Save VFP return value
stp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
stp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Compute and save SP at callsite.
add x0, sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20) ;; +0x20 for the pushes right before the context struct
str x0, [sp, #OFFSETOF__PAL_LIMITED_CONTEXT__SP]
mov x0, sp ; Address of PAL_LIMITED_CONTEXT
bl $THREAD__HIJACKFORGCSTRESS
;; Restore return value registers (saved in PAL_LIMITED_CONTEXT structure)
ldp x0, x1, [sp, #0x10]
;; Restore VFP return value
ldp d0, d1, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x00)]
ldp d2, d3, [sp, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x10)]
;; Epilog
EPILOG_RESTORE_REG_PAIR x19, x20, #0x20
EPILOG_RESTORE_REG_PAIR x21, x22, #0x30
EPILOG_RESTORE_REG_PAIR x23, x24, #0x40
EPILOG_RESTORE_REG_PAIR x25, x26, #0x50
EPILOG_RESTORE_REG_PAIR x27, x28, #0x60
EPILOG_NOP ldr x9, [sp, #0x78]
EPILOG_RESTORE_REG_PAIR fp, lr, #(SIZEOF__PAL_LIMITED_CONTEXT + 0x20)!
EPILOG_NOP ret x9
NESTED_END RhpHijackForGcStressLeaf
#endif ;; FEATURE_GC_STRESS
#if 0 // used by the binder only
;;
;; The following functions are _jumped_ to when we need to transfer control from one method to another for EH
;; dispatch. These are needed to properly coordinate with the GC hijacking logic. We are essentially replacing
;; the return from the throwing method with a jump to the handler in the caller, but we need to be aware of
;; any return address hijack that may be in place for GC suspension. These routines use a quick test of the
;; return address against a specific GC hijack routine, and then fixup the stack pointer to what it would be
;; after a real return from the throwing method. Then, if we are not hijacked we can simply jump to the
;; handler in the caller.
;;
;; If we are hijacked, then we jump to a routine that will unhijack appropriately and wait for the GC to
;; complete. There are also variants for GC stress.
;;
;; Note that at this point we are either hijacked or we are not, and this will not change until we return to
;; managed code. It is an invariant of the system that a thread will only attempt to hijack or unhijack
;; another thread while the target thread is suspended in managed code, and this is _not_ managed code.
;;
MACRO
RTU_EH_JUMP_HELPER $funcName, $hijackFuncName, $isStress, $stressFuncName
LEAF_ENTRY $funcName
ldr x0, =$hijackFuncName
cmp x0, lr
beq RhpGCProbeForEHJump
IF $isStress
ldr x0, =$stressFuncName
cmp x0, lr
beq RhpGCStressProbeForEHJump
ENDIF
;; We are not hijacked, so we can return to the handler.
;; We return to keep the call/return prediction balanced.
mov lr, x2 ; Update the return address
ret
LEAF_END $funcName
MEND
;; We need an instance of the helper for each possible hijack function. The binder has enough
;; information to determine which one we need to use for any function.
RTU_EH_JUMP_HELPER RhpEHJumpScalar, RhpGcProbeHijack, {false}, 0
RTU_EH_JUMP_HELPER RhpEHJumpObject, RhpGcProbeHijack, {false}, 0
RTU_EH_JUMP_HELPER RhpEHJumpByref, RhpGcProbeHijack, {false}, 0
#ifdef FEATURE_GC_STRESS
RTU_EH_JUMP_HELPER RhpEHJumpScalarGCStress, RhpGcProbeHijack, {true}, RhpGcStressHijack
RTU_EH_JUMP_HELPER RhpEHJumpObjectGCStress, RhpGcProbeHijack, {true}, RhpGcStressHijack
RTU_EH_JUMP_HELPER RhpEHJumpByrefGCStress, RhpGcProbeHijack, {true}, RhpGcStressHijack
#endif
;;
;; Macro to setup our frame and adjust the location of the EH object reference for EH jump probe funcs.
;;
;; Register state on entry:
;; x0: scratch
;; x1: reference to the exception object.
;; x2: handler address we want to jump to.
;; Non-volatile registers are all already correct for return to the caller.
;; The stack is as if we are just about to returned from the call
;;
;; Register state on exit:
;; x0: reference to the exception object
;; x2: thread pointer
;;
MACRO
EHJumpProbeProlog
PROLOG_NOP mov x0, x1 ; move the ex object reference into x0 so we can report it
ALLOC_PROBE_FRAME 0x10, {true}
str x2, [sp, #PROBE_FRAME_SIZE]
;; x2 <- GetThread(), TRASHES x1
INLINE_GETTHREAD x2, x1
;; Recover the original return address and update the frame
ldr lr, [x2, #OFFSETOF__Thread__m_pvHijackedReturnAddress]
str lr, [sp, #OFFSETOF__PInvokeTransitionFrame__m_RIP]
;; ClearHijackState expects thread in x2
ClearHijackState
; TRASHES x1
INIT_PROBE_FRAME x2, x1, #(DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_X0), PTFF_X0_IS_GCREF_HI, (PROBE_FRAME_SIZE + 8)
add x1, sp, xzr
str x1, [x2, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
MEND
;;
;; Macro to re-adjust the location of the EH object reference, cleanup the frame, and make the
;; final jump to the handler for EH jump probe funcs.
;;
;; Register state on entry:
;; x0: reference to the exception object
;; x1-x3: scratch
;;
;; Register state on exit:
;; sp: correct for return to the caller
;; x1: reference to the exception object
;;
MACRO
EHJumpProbeEpilog
ldr x2, [sp, #PROBE_FRAME_SIZE]
FREE_PROBE_FRAME 0x10, {true} ; This restores exception object back into x0
EPILOG_NOP mov x1, x0 ; Move the Exception object back into x1 where the catch handler expects it
EPILOG_NOP ret x2
MEND
;;
;; We are hijacked for a normal GC (not GC stress), so we need to unhijack and wait for the GC to complete.
;;
;; Register state on entry:
;; x0: reference to the exception object.
;; x2: thread
;; Non-volatile registers are all already correct for return to the caller.
;; The stack is as if we have tail called to this function (lr points to return address).
;;
;; Register state on exit:
;; x0: reference to the exception object
;;
NESTED_ENTRY RhpGCProbeForEHJump
brk 0xf000 ;; TODO: remove after debugging/testing stub
EHJumpProbeProlog
#ifdef _DEBUG
;;
;; If we get here, then we have been hijacked for a real GC, and our SyncState must
;; reflect that we've been requested to synchronize.
ldr x1, =RhpTrapThreads
ldr w1, [x1]
tbnz x1, #TrapThreadsFlags_TrapThreads_Bit, %0
bl RhDebugBreak
0
#endif ;; _DEBUG
mov x4, x2
WaitForGCCompletion
EHJumpProbeEpilog
NESTED_END RhpGCProbeForEHJump
#ifdef FEATURE_GC_STRESS
;;
;; We are hijacked for GC Stress (not a normal GC) so we need to invoke the GC stress helper.
;;
;; Register state on entry:
;; x1: reference to the exception object.
;; x2: thread
;; Non-volatile registers are all already correct for return to the caller.
;; The stack is as if we have tail called to this function (lr points to return address).
;;
;; Register state on exit:
;; x0: reference to the exception object
;;
NESTED_ENTRY RhpGCStressProbeForEHJump
brk 0xf000 ;; TODO: remove after debugging/testing stub
EHJumpProbeProlog
bl $REDHAWKGCINTERFACE__STRESSGC
EHJumpProbeEpilog
NESTED_END RhpGCStressProbeForEHJump
#endif ;; FEATURE_GC_STRESS
#endif ;; 0
#ifdef FEATURE_GC_STRESS
;;
;; INVARIANT: Don't trash the argument registers, the binder codegen depends on this.
;;
LEAF_ENTRY RhpSuppressGcStress
INLINE_GETTHREAD x9, x10
add x9, x9, #OFFSETOF__Thread__m_ThreadStateFlags
Retry
ldxr w10, [x9]
orr w10, w10, #TSF_SuppressGcStress
stxr w11, w10, [x9]
cbz w11, Success
b Retry
Success
ret
LEAF_END RhpSuppressGcStress
#endif ;; FEATURE_GC_STRESS
;; Helper called from hijacked loops
LEAF_ENTRY RhpLoopHijack
;; we arrive here with essentially all registers containing useful content
;; TODO: update this comment after the RhpLoopHijack is implemented in the compiler
;; on the stack, we have two arguments:
;; - [sp+0] has the module header
;; - [sp+8] has the address of the indirection cell we jumped through
;;
;;
brk 0xf000 ;; TODO: remove after debugging/testing stub
ALLOC_LOOP_HIJACK_FRAME
; save condition codes
mrs x12, NZCV
str x12, [sp, #m_SavedNZCV]
INLINE_GETTHREAD x4, x1
INIT_PROBE_FRAME x4, x1, #PROBE_SAVE_FLAGS_EVERYTHING, 0, (PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 8)
;;
;; compute the index of the indirection cell
;;
ldr x0, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 0)]
bl $GetLoopIndirCells
; x0 now has address of the first loop indir cell
; subtract that from the address of our cell
; and divide by 8 to give the index of our cell
ldr x1, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 8)]
sub x1, x1, x0
lsr x0, x1, #3
; x0 now has the index
; recover the loop hijack target, passing the module header as an additional argument
ldr x1, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 0)]
bl RecoverLoopHijackTarget
; store the result as our pinvoke return address
str x0, [sp, #OFFSETOF__PInvokeTransitionFrame__m_RIP]
; also save it in the incoming parameter space for the actual return below
str x0, [sp,#(PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE + 8)]
; Early out if GC stress is currently suppressed. Do this after we have computed the real address to
; return to but before we link the transition frame onto m_pHackPInvokeTunnel (because hitting this
; condition implies we're running restricted callouts during a GC itself and we could end up
; overwriting a co-op frame set by the code that caused the GC in the first place, e.g. a GC.Collect
; call).
ldr w1, [x4, #OFFSETOF__Thread__m_ThreadStateFlags]
tst w1, #TSF_SuppressGcStress__OR__TSF_DoNotTriggerGC
bne DoneWaitingForGc
; link the frame into the Thread
add x1, sp, xzr
str x1, [x4, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
;;
;; Unhijack this thread, if necessary.
;;
INLINE_THREAD_UNHIJACK x4, x1, x2 ;; trashes x1, x2
#ifdef FEATURE_GC_STRESS
ldr x1, =g_fGcStressStarted
ldr w1, [x1]
cbnz w1, NoGcStress
mov x1, x0
ldr x0, =$g_pTheRuntimeInstance
ldr x0, [x0]
bl $RuntimeInstance__ShouldHijackLoopForGcStress
cbnz x0, NoGcStress
bl $REDHAWKGCINTERFACE__STRESSGC
NoGcStress
#endif ;; FEATURE_GC_STRESS
add x2, sp, xzr ; sp is address of PInvokeTransitionFrame
bl RhpWaitForGCNoAbort
DoneWaitingForGc
ldr x12, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
tbnz x12, #PTFF_THREAD_ABORT_BIT, Abort
; restore condition codes
ldr x12, [sp, #m_SavedNZCV]
msr NZCV, x12
FREE_LOOP_HIJACK_FRAME
EPILOG_NOP ldr x1, [sp, #8] ; hijack target address
EPILOG_STACK_FREE 0x10
EPILOG_NOP ret x1 ; jump to the hijack target
Abort
FREE_LOOP_HIJACK_FRAME
EPILOG_NOP mov w0, #STATUS_REDHAWK_THREAD_ABORT
EPILOG_NOP ldr x1, [sp, #8] ; hijack target address as exception PC
EPILOG_STACK_FREE 0x10
EPILOG_NOP b RhpThrowHwEx
LEAF_END RhpLoopHijack
INLINE_GETTHREAD_CONSTANT_POOL
;; Trap to GC.
;; Set up the P/Invoke transition frame with the return address as the safe point.
;; All registers, both volatile and non-volatile, are preserved.
;; The function should be called not jumped because it's expecting the return address
NESTED_ENTRY RhpTrapToGC, _TEXT
;;
;; What we want to get to:
;;
;; [sp + ] -> m_FramePointer -------|
;; [sp + 8] -> m_RIP |
;; [sp + 10] -> m_pThread |
;; [sp + 18] -> m_Flags / m_dwAlignPad2 |
;; [sp + 20] -> x19 save |
;; [sp + 28] -> x20 save |
;; [sp + 30] -> x21 save |
;; [sp + 38] -> x22 save |
;; [sp + 40] -> x23 save |
;; [sp + 48] -> x24 save | PInvokeTransitionFrame
;; [sp + 50] -> x25 save |
;; [sp + 58] -> x26 save |
;; [sp + 60] -> x27 save |
;; [sp + 68] -> x28 save |
;; [sp + 70] -> sp save ;caller sp |
;; [sp + 78] -> x0 save |
;; [sp + 80] -> x1 save |
;; [sp + 88] -> x2 save |
;; [sp + 90] -> x3 save |
;; [sp + 98] -> x4 save |
;; [sp + a0] -> x5 save |
;; [sp + a8] -> x6 save |
;; [sp + b0] -> x7 save |
;; [sp + b8] -> x8 save |
;; [sp + c0] -> x9 save |
;; [sp + c8] -> x10 save |
;; [sp + d0] -> x11 save |
;; [sp + d8] -> x12 save |
;; [sp + e0] -> x13 save |
;; [sp + e8] -> x14 save |
;; [sp + f0] -> x15 save |
;; [sp + f8] -> x16 save |
;; [sp + 100] -> x17 save |
;; [sp + 108] -> x18 save |
;; [sp + 110] -> lr save -------|
;;
;; [sp + 118] -> NZCV
;;
;; [sp + 120] -> not used
;; [sp + 140] -> q0 ... q31
;;
ALLOC_LOOP_HIJACK_FRAME
;; Slot at [sp, #0x118] is reserved for NZCV
mrs x1, NZCV
str x1, [sp, #m_SavedNZCV]
;; x4 <- GetThread(), TRASHES x1
INLINE_GETTHREAD x4, x1
INIT_PROBE_FRAME x4, x1, #PROBE_SAVE_FLAGS_EVERYTHING, 0, (PROBE_FRAME_SIZE + EXTRA_SAVE_SIZE)
; Early out if GC stress is currently suppressed. Do this after we have computed the real address to
; return to but before we link the transition frame onto m_pHackPInvokeTunnel (because hitting this
; condition implies we're running restricted callouts during a GC itself and we could end up
; overwriting a co-op frame set by the code that caused the GC in the first place, e.g. a GC.Collect
; call).
ldr w1, [x4, #OFFSETOF__Thread__m_ThreadStateFlags]
tst w1, #TSF_SuppressGcStress__OR__TSF_DoNotTriggerGC
bne DoNotTriggerGC
; link the frame into the Thread
add x1, sp, xzr
str x1, [x4, #OFFSETOF__Thread__m_pHackPInvokeTunnel]
;;
;; Unhijack this thread, if necessary.
;;
INLINE_THREAD_UNHIJACK x4, x1, x2 ;; trashes x1, x2
#ifdef FEATURE_GC_STRESS
ldr x1, =g_fGcStressStarted
ldr w1, [x1]
cbnz w1, SkipGcStress
mov x1, x0
ldr x0, =$g_pTheRuntimeInstance
ldr x0, [x0]
bl $RuntimeInstance__ShouldHijackLoopForGcStress
cbnz x0, SkipGcStress
bl $REDHAWKGCINTERFACE__STRESSGC
SkipGcStress
#endif ;; FEATURE_GC_STRESS
add x9, sp, xzr ; sp is address of PInvokeTransitionFrame
bl RhpWaitForGCNoAbort
DoNotTriggerGC
ldr x1, [sp, #OFFSETOF__PInvokeTransitionFrame__m_Flags]
tbnz x1, #PTFF_THREAD_ABORT_BIT, ToAbort
; restore condition codes
ldr x1, [sp, #m_SavedNZCV]
msr NZCV, x1
FREE_LOOP_HIJACK_FRAME
EPILOG_RETURN
ToAbort
FREE_LOOP_HIJACK_FRAME
EPILOG_NOP mov w0, #STATUS_REDHAWK_THREAD_ABORT
EPILOG_NOP mov x1, lr ; hijack target address as exception PC
EPILOG_NOP b RhpThrowHwEx
NESTED_END RhpTrapToGC
INLINE_GETTHREAD_CONSTANT_POOL
end
| 40.195939
| 150
| 0.6069
|
fcdfe2fcd8d7f72709256c43abd08adf6629de54
| 40,983
|
asm
|
Assembly
|
3_fft_code/ffmpeg/libswscale/x86/input.asm
|
weichengfu666/fft
|
ebaf59ee577054d15f34071feda064d532ea96ec
|
[
"Apache-2.0"
] | null | null | null |
3_fft_code/ffmpeg/libswscale/x86/input.asm
|
weichengfu666/fft
|
ebaf59ee577054d15f34071feda064d532ea96ec
|
[
"Apache-2.0"
] | null | null | null |
3_fft_code/ffmpeg/libswscale/x86/input.asm
|
weichengfu666/fft
|
ebaf59ee577054d15f34071feda064d532ea96ec
|
[
"Apache-2.0"
] | null | null | null |
;******************************************************************************
;* x86-optimized input routines; does shuffling of packed
;* YUV formats into individual planes, and converts RGB
;* into YUV planes also.
;* Copyright (c) 2012 Ronald S. Bultje <rsbultje@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License as published by the Free Software Foundation; either
;* version 2.1 of the License, or (at your option) any later version.
;*
;* FFmpeg is distributed in the hope that it will be useful,
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;* Lesser General Public License for more details.
;*
;* You should have received a copy of the GNU Lesser General Public
;* License along with FFmpeg; if not, write to the Free Software
;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;******************************************************************************
%include "libavutil/x86/x86util.asm"
SECTION_RODATA
%define RY 0x20DE
%define GY 0x4087
%define BY 0x0C88
%define RU 0xECFF
%define GU 0xDAC8
%define BU 0x3838
%define RV 0x3838
%define GV 0xD0E3
%define BV 0xF6E4
rgb_Yrnd: times 4 dd 0x80100 ; 16.5 << 15
rgb_UVrnd: times 4 dd 0x400100 ; 128.5 << 15
%define bgr_Ycoeff_12x4 16*4 + 16* 0 + tableq
%define bgr_Ycoeff_3x56 16*4 + 16* 1 + tableq
%define rgb_Ycoeff_12x4 16*4 + 16* 2 + tableq
%define rgb_Ycoeff_3x56 16*4 + 16* 3 + tableq
%define bgr_Ucoeff_12x4 16*4 + 16* 4 + tableq
%define bgr_Ucoeff_3x56 16*4 + 16* 5 + tableq
%define rgb_Ucoeff_12x4 16*4 + 16* 6 + tableq
%define rgb_Ucoeff_3x56 16*4 + 16* 7 + tableq
%define bgr_Vcoeff_12x4 16*4 + 16* 8 + tableq
%define bgr_Vcoeff_3x56 16*4 + 16* 9 + tableq
%define rgb_Vcoeff_12x4 16*4 + 16*10 + tableq
%define rgb_Vcoeff_3x56 16*4 + 16*11 + tableq
%define rgba_Ycoeff_rb 16*4 + 16*12 + tableq
%define rgba_Ycoeff_br 16*4 + 16*13 + tableq
%define rgba_Ycoeff_ga 16*4 + 16*14 + tableq
%define rgba_Ycoeff_ag 16*4 + 16*15 + tableq
%define rgba_Ucoeff_rb 16*4 + 16*16 + tableq
%define rgba_Ucoeff_br 16*4 + 16*17 + tableq
%define rgba_Ucoeff_ga 16*4 + 16*18 + tableq
%define rgba_Ucoeff_ag 16*4 + 16*19 + tableq
%define rgba_Vcoeff_rb 16*4 + 16*20 + tableq
%define rgba_Vcoeff_br 16*4 + 16*21 + tableq
%define rgba_Vcoeff_ga 16*4 + 16*22 + tableq
%define rgba_Vcoeff_ag 16*4 + 16*23 + tableq
; bgr_Ycoeff_12x4: times 2 dw BY, GY, 0, BY
; bgr_Ycoeff_3x56: times 2 dw RY, 0, GY, RY
; rgb_Ycoeff_12x4: times 2 dw RY, GY, 0, RY
; rgb_Ycoeff_3x56: times 2 dw BY, 0, GY, BY
; bgr_Ucoeff_12x4: times 2 dw BU, GU, 0, BU
; bgr_Ucoeff_3x56: times 2 dw RU, 0, GU, RU
; rgb_Ucoeff_12x4: times 2 dw RU, GU, 0, RU
; rgb_Ucoeff_3x56: times 2 dw BU, 0, GU, BU
; bgr_Vcoeff_12x4: times 2 dw BV, GV, 0, BV
; bgr_Vcoeff_3x56: times 2 dw RV, 0, GV, RV
; rgb_Vcoeff_12x4: times 2 dw RV, GV, 0, RV
; rgb_Vcoeff_3x56: times 2 dw BV, 0, GV, BV
; rgba_Ycoeff_rb: times 4 dw RY, BY
; rgba_Ycoeff_br: times 4 dw BY, RY
; rgba_Ycoeff_ga: times 4 dw GY, 0
; rgba_Ycoeff_ag: times 4 dw 0, GY
; rgba_Ucoeff_rb: times 4 dw RU, BU
; rgba_Ucoeff_br: times 4 dw BU, RU
; rgba_Ucoeff_ga: times 4 dw GU, 0
; rgba_Ucoeff_ag: times 4 dw 0, GU
; rgba_Vcoeff_rb: times 4 dw RV, BV
; rgba_Vcoeff_br: times 4 dw BV, RV
; rgba_Vcoeff_ga: times 4 dw GV, 0
; rgba_Vcoeff_ag: times 4 dw 0, GV
shuf_rgb_12x4: db 0, 0x80, 1, 0x80, 2, 0x80, 3, 0x80, \
6, 0x80, 7, 0x80, 8, 0x80, 9, 0x80
shuf_rgb_3x56: db 2, 0x80, 3, 0x80, 4, 0x80, 5, 0x80, \
8, 0x80, 9, 0x80, 10, 0x80, 11, 0x80
pd_65535f: times 8 dd 65535.0
pb_pack_shuffle16le: db 0, 1, 4, 5, \
8, 9, 12, 13, \
-1, -1, -1, -1, \
-1, -1, -1, -1, \
-1, -1, -1, -1, \
-1, -1, -1, -1, \
0, 1, 4, 5, \
8, 9, 12, 13
pb_shuffle32be: db 3, 2, 1, 0, \
7, 6, 5, 4, \
11, 10, 9, 8, \
15, 14, 13, 12, \
3, 2, 1, 0, \
7, 6, 5, 4, \
11, 10, 9, 8, \
15, 14, 13, 12
pb_shuffle16be: db 1, 0, 3, 2, \
5, 4, 7, 6, \
9, 8, 11, 10, \
13, 12, 15, 14, \
1, 0, 3, 2, \
5, 4, 7, 6, \
9, 8, 11, 10, \
13, 12, 15, 14
SECTION .text
;-----------------------------------------------------------------------------
; RGB to Y/UV.
;
; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);
; and
; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,
; const uint8_t *unused, int w);
;-----------------------------------------------------------------------------
; %1 = nr. of XMM registers
; %2 = rgb or bgr
%macro RGB24_TO_Y_FN 2-3
cglobal %2 %+ 24ToY, 6, 6, %1, dst, src, u1, u2, w, table
%if mmsize == 8
mova m5, [%2_Ycoeff_12x4]
mova m6, [%2_Ycoeff_3x56]
%define coeff1 m5
%define coeff2 m6
%elif ARCH_X86_64
mova m8, [%2_Ycoeff_12x4]
mova m9, [%2_Ycoeff_3x56]
%define coeff1 m8
%define coeff2 m9
%else ; x86-32 && mmsize == 16
%define coeff1 [%2_Ycoeff_12x4]
%define coeff2 [%2_Ycoeff_3x56]
%endif ; x86-32/64 && mmsize == 8/16
%if (ARCH_X86_64 || mmsize == 8) && %0 == 3
jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToY %+ SUFFIX).body
%else ; (ARCH_X86_64 && %0 == 3) || mmsize == 8
.body:
%if cpuflag(ssse3)
mova m7, [shuf_rgb_12x4]
%define shuf_rgb1 m7
%if ARCH_X86_64
mova m10, [shuf_rgb_3x56]
%define shuf_rgb2 m10
%else ; x86-32
%define shuf_rgb2 [shuf_rgb_3x56]
%endif ; x86-32/64
%endif ; cpuflag(ssse3)
%if ARCH_X86_64
movsxd wq, wd
%endif
add wq, wq
add dstq, wq
neg wq
%if notcpuflag(ssse3)
pxor m7, m7
%endif ; !cpuflag(ssse3)
mova m4, [rgb_Yrnd]
.loop:
%if cpuflag(ssse3)
movu m0, [srcq+0] ; (byte) { Bx, Gx, Rx }[0-3]
movu m2, [srcq+12] ; (byte) { Bx, Gx, Rx }[4-7]
pshufb m1, m0, shuf_rgb2 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }
pshufb m0, shuf_rgb1 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }
pshufb m3, m2, shuf_rgb2 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }
pshufb m2, shuf_rgb1 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }
%else ; !cpuflag(ssse3)
movd m0, [srcq+0] ; (byte) { B0, G0, R0, B1 }
movd m1, [srcq+2] ; (byte) { R0, B1, G1, R1 }
movd m2, [srcq+6] ; (byte) { B2, G2, R2, B3 }
movd m3, [srcq+8] ; (byte) { R2, B3, G3, R3 }
%if mmsize == 16 ; i.e. sse2
punpckldq m0, m2 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }
punpckldq m1, m3 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }
movd m2, [srcq+12] ; (byte) { B4, G4, R4, B5 }
movd m3, [srcq+14] ; (byte) { R4, B5, G5, R5 }
movd m5, [srcq+18] ; (byte) { B6, G6, R6, B7 }
movd m6, [srcq+20] ; (byte) { R6, B7, G7, R7 }
punpckldq m2, m5 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }
punpckldq m3, m6 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }
%endif ; mmsize == 16
punpcklbw m0, m7 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }
punpcklbw m1, m7 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }
punpcklbw m2, m7 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }
punpcklbw m3, m7 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }
%endif ; cpuflag(ssse3)
add srcq, 3 * mmsize / 2
pmaddwd m0, coeff1 ; (dword) { B0*BY + G0*GY, B1*BY, B2*BY + G2*GY, B3*BY }
pmaddwd m1, coeff2 ; (dword) { R0*RY, G1+GY + R1*RY, R2*RY, G3+GY + R3*RY }
pmaddwd m2, coeff1 ; (dword) { B4*BY + G4*GY, B5*BY, B6*BY + G6*GY, B7*BY }
pmaddwd m3, coeff2 ; (dword) { R4*RY, G5+GY + R5*RY, R6*RY, G7+GY + R7*RY }
paddd m0, m1 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[0-3]
paddd m2, m3 ; (dword) { Bx*BY + Gx*GY + Rx*RY }[4-7]
paddd m0, m4 ; += rgb_Yrnd, i.e. (dword) { Y[0-3] }
paddd m2, m4 ; += rgb_Yrnd, i.e. (dword) { Y[4-7] }
psrad m0, 9
psrad m2, 9
packssdw m0, m2 ; (word) { Y[0-7] }
mova [dstq+wq], m0
add wq, mmsize
jl .loop
REP_RET
%endif ; (ARCH_X86_64 && %0 == 3) || mmsize == 8
%endmacro
; %1 = nr. of XMM registers
; %2 = rgb or bgr
%macro RGB24_TO_UV_FN 2-3
cglobal %2 %+ 24ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table
%if ARCH_X86_64
mova m8, [%2_Ucoeff_12x4]
mova m9, [%2_Ucoeff_3x56]
mova m10, [%2_Vcoeff_12x4]
mova m11, [%2_Vcoeff_3x56]
%define coeffU1 m8
%define coeffU2 m9
%define coeffV1 m10
%define coeffV2 m11
%else ; x86-32
%define coeffU1 [%2_Ucoeff_12x4]
%define coeffU2 [%2_Ucoeff_3x56]
%define coeffV1 [%2_Vcoeff_12x4]
%define coeffV2 [%2_Vcoeff_3x56]
%endif ; x86-32/64
%if ARCH_X86_64 && %0 == 3
jmp mangle(private_prefix %+ _ %+ %3 %+ 24ToUV %+ SUFFIX).body
%else ; ARCH_X86_64 && %0 == 3
.body:
%if cpuflag(ssse3)
mova m7, [shuf_rgb_12x4]
%define shuf_rgb1 m7
%if ARCH_X86_64
mova m12, [shuf_rgb_3x56]
%define shuf_rgb2 m12
%else ; x86-32
%define shuf_rgb2 [shuf_rgb_3x56]
%endif ; x86-32/64
%endif ; cpuflag(ssse3)
%if ARCH_X86_64
movsxd wq, dword r5m
%else ; x86-32
mov wq, r5m
%endif
add wq, wq
add dstUq, wq
add dstVq, wq
neg wq
mova m6, [rgb_UVrnd]
%if notcpuflag(ssse3)
pxor m7, m7
%endif
.loop:
%if cpuflag(ssse3)
movu m0, [srcq+0] ; (byte) { Bx, Gx, Rx }[0-3]
movu m4, [srcq+12] ; (byte) { Bx, Gx, Rx }[4-7]
pshufb m1, m0, shuf_rgb2 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }
pshufb m0, shuf_rgb1 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }
%else ; !cpuflag(ssse3)
movd m0, [srcq+0] ; (byte) { B0, G0, R0, B1 }
movd m1, [srcq+2] ; (byte) { R0, B1, G1, R1 }
movd m4, [srcq+6] ; (byte) { B2, G2, R2, B3 }
movd m5, [srcq+8] ; (byte) { R2, B3, G3, R3 }
%if mmsize == 16
punpckldq m0, m4 ; (byte) { B0, G0, R0, B1, B2, G2, R2, B3 }
punpckldq m1, m5 ; (byte) { R0, B1, G1, R1, R2, B3, G3, R3 }
movd m4, [srcq+12] ; (byte) { B4, G4, R4, B5 }
movd m5, [srcq+14] ; (byte) { R4, B5, G5, R5 }
%endif ; mmsize == 16
punpcklbw m0, m7 ; (word) { B0, G0, R0, B1, B2, G2, R2, B3 }
punpcklbw m1, m7 ; (word) { R0, B1, G1, R1, R2, B3, G3, R3 }
%endif ; cpuflag(ssse3)
pmaddwd m2, m0, coeffV1 ; (dword) { B0*BV + G0*GV, B1*BV, B2*BV + G2*GV, B3*BV }
pmaddwd m3, m1, coeffV2 ; (dword) { R0*BV, G1*GV + R1*BV, R2*BV, G3*GV + R3*BV }
pmaddwd m0, coeffU1 ; (dword) { B0*BU + G0*GU, B1*BU, B2*BU + G2*GU, B3*BU }
pmaddwd m1, coeffU2 ; (dword) { R0*BU, G1*GU + R1*BU, R2*BU, G3*GU + R3*BU }
paddd m0, m1 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[0-3]
paddd m2, m3 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[0-3]
%if cpuflag(ssse3)
pshufb m5, m4, shuf_rgb2 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }
pshufb m4, shuf_rgb1 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }
%else ; !cpuflag(ssse3)
%if mmsize == 16
movd m1, [srcq+18] ; (byte) { B6, G6, R6, B7 }
movd m3, [srcq+20] ; (byte) { R6, B7, G7, R7 }
punpckldq m4, m1 ; (byte) { B4, G4, R4, B5, B6, G6, R6, B7 }
punpckldq m5, m3 ; (byte) { R4, B5, G5, R5, R6, B7, G7, R7 }
%endif ; mmsize == 16 && !cpuflag(ssse3)
punpcklbw m4, m7 ; (word) { B4, G4, R4, B5, B6, G6, R6, B7 }
punpcklbw m5, m7 ; (word) { R4, B5, G5, R5, R6, B7, G7, R7 }
%endif ; cpuflag(ssse3)
add srcq, 3 * mmsize / 2
pmaddwd m1, m4, coeffU1 ; (dword) { B4*BU + G4*GU, B5*BU, B6*BU + G6*GU, B7*BU }
pmaddwd m3, m5, coeffU2 ; (dword) { R4*BU, G5*GU + R5*BU, R6*BU, G7*GU + R7*BU }
pmaddwd m4, coeffV1 ; (dword) { B4*BV + G4*GV, B5*BV, B6*BV + G6*GV, B7*BV }
pmaddwd m5, coeffV2 ; (dword) { R4*BV, G5*GV + R5*BV, R6*BV, G7*GV + R7*BV }
paddd m1, m3 ; (dword) { Bx*BU + Gx*GU + Rx*RU }[4-7]
paddd m4, m5 ; (dword) { Bx*BV + Gx*GV + Rx*RV }[4-7]
paddd m0, m6 ; += rgb_UVrnd, i.e. (dword) { U[0-3] }
paddd m2, m6 ; += rgb_UVrnd, i.e. (dword) { V[0-3] }
paddd m1, m6 ; += rgb_UVrnd, i.e. (dword) { U[4-7] }
paddd m4, m6 ; += rgb_UVrnd, i.e. (dword) { V[4-7] }
psrad m0, 9
psrad m2, 9
psrad m1, 9
psrad m4, 9
packssdw m0, m1 ; (word) { U[0-7] }
packssdw m2, m4 ; (word) { V[0-7] }
%if mmsize == 8
mova [dstUq+wq], m0
mova [dstVq+wq], m2
%else ; mmsize == 16
mova [dstUq+wq], m0
mova [dstVq+wq], m2
%endif ; mmsize == 8/16
add wq, mmsize
jl .loop
REP_RET
%endif ; ARCH_X86_64 && %0 == 3
%endmacro
; %1 = nr. of XMM registers for rgb-to-Y func
; %2 = nr. of XMM registers for rgb-to-UV func
%macro RGB24_FUNCS 2
RGB24_TO_Y_FN %1, rgb
RGB24_TO_Y_FN %1, bgr, rgb
RGB24_TO_UV_FN %2, rgb
RGB24_TO_UV_FN %2, bgr, rgb
%endmacro
%if ARCH_X86_32
INIT_MMX mmx
RGB24_FUNCS 0, 0
%endif
INIT_XMM sse2
RGB24_FUNCS 10, 12
INIT_XMM ssse3
RGB24_FUNCS 11, 13
%if HAVE_AVX_EXTERNAL
INIT_XMM avx
RGB24_FUNCS 11, 13
%endif
; %1 = nr. of XMM registers
; %2-5 = rgba, bgra, argb or abgr (in individual characters)
%macro RGB32_TO_Y_FN 5-6
cglobal %2%3%4%5 %+ ToY, 6, 6, %1, dst, src, u1, u2, w, table
mova m5, [rgba_Ycoeff_%2%4]
mova m6, [rgba_Ycoeff_%3%5]
%if %0 == 6
jmp mangle(private_prefix %+ _ %+ %6 %+ ToY %+ SUFFIX).body
%else ; %0 == 6
.body:
%if ARCH_X86_64
movsxd wq, wd
%endif
add wq, wq
sub wq, mmsize - 1
lea srcq, [srcq+wq*2]
add dstq, wq
neg wq
mova m4, [rgb_Yrnd]
pcmpeqb m7, m7
psrlw m7, 8 ; (word) { 0x00ff } x4
.loop:
; FIXME check alignment and use mova
movu m0, [srcq+wq*2+0] ; (byte) { Bx, Gx, Rx, xx }[0-3]
movu m2, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]
DEINTB 1, 0, 3, 2, 7 ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]
pmaddwd m1, m5 ; (dword) { Bx*BY + Rx*RY }[0-3]
pmaddwd m0, m6 ; (dword) { Gx*GY }[0-3]
pmaddwd m3, m5 ; (dword) { Bx*BY + Rx*RY }[4-7]
pmaddwd m2, m6 ; (dword) { Gx*GY }[4-7]
paddd m0, m4 ; += rgb_Yrnd
paddd m2, m4 ; += rgb_Yrnd
paddd m0, m1 ; (dword) { Y[0-3] }
paddd m2, m3 ; (dword) { Y[4-7] }
psrad m0, 9
psrad m2, 9
packssdw m0, m2 ; (word) { Y[0-7] }
mova [dstq+wq], m0
add wq, mmsize
jl .loop
sub wq, mmsize - 1
jz .end
add srcq, 2*mmsize - 2
add dstq, mmsize - 1
.loop2:
movd m0, [srcq+wq*2+0] ; (byte) { Bx, Gx, Rx, xx }[0-3]
DEINTB 1, 0, 3, 2, 7 ; (word) { Gx, xx (m0/m2) or Bx, Rx (m1/m3) }[0-3]/[4-7]
pmaddwd m1, m5 ; (dword) { Bx*BY + Rx*RY }[0-3]
pmaddwd m0, m6 ; (dword) { Gx*GY }[0-3]
paddd m0, m4 ; += rgb_Yrnd
paddd m0, m1 ; (dword) { Y[0-3] }
psrad m0, 9
packssdw m0, m0 ; (word) { Y[0-7] }
movd [dstq+wq], m0
add wq, 2
jl .loop2
.end:
REP_RET
%endif ; %0 == 3
%endmacro
; %1 = nr. of XMM registers
; %2-5 = rgba, bgra, argb or abgr (in individual characters)
%macro RGB32_TO_UV_FN 5-6
cglobal %2%3%4%5 %+ ToUV, 7, 7, %1, dstU, dstV, u1, src, u2, w, table
%if ARCH_X86_64
mova m8, [rgba_Ucoeff_%2%4]
mova m9, [rgba_Ucoeff_%3%5]
mova m10, [rgba_Vcoeff_%2%4]
mova m11, [rgba_Vcoeff_%3%5]
%define coeffU1 m8
%define coeffU2 m9
%define coeffV1 m10
%define coeffV2 m11
%else ; x86-32
%define coeffU1 [rgba_Ucoeff_%2%4]
%define coeffU2 [rgba_Ucoeff_%3%5]
%define coeffV1 [rgba_Vcoeff_%2%4]
%define coeffV2 [rgba_Vcoeff_%3%5]
%endif ; x86-64/32
%if ARCH_X86_64 && %0 == 6
jmp mangle(private_prefix %+ _ %+ %6 %+ ToUV %+ SUFFIX).body
%else ; ARCH_X86_64 && %0 == 6
.body:
%if ARCH_X86_64
movsxd wq, dword r5m
%else ; x86-32
mov wq, r5m
%endif
add wq, wq
sub wq, mmsize - 1
add dstUq, wq
add dstVq, wq
lea srcq, [srcq+wq*2]
neg wq
pcmpeqb m7, m7
psrlw m7, 8 ; (word) { 0x00ff } x4
mova m6, [rgb_UVrnd]
.loop:
; FIXME check alignment and use mova
movu m0, [srcq+wq*2+0] ; (byte) { Bx, Gx, Rx, xx }[0-3]
movu m4, [srcq+wq*2+mmsize] ; (byte) { Bx, Gx, Rx, xx }[4-7]
DEINTB 1, 0, 5, 4, 7 ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]
pmaddwd m3, m1, coeffV1 ; (dword) { Bx*BV + Rx*RV }[0-3]
pmaddwd m2, m0, coeffV2 ; (dword) { Gx*GV }[0-3]
pmaddwd m1, coeffU1 ; (dword) { Bx*BU + Rx*RU }[0-3]
pmaddwd m0, coeffU2 ; (dword) { Gx*GU }[0-3]
paddd m3, m6 ; += rgb_UVrnd
paddd m1, m6 ; += rgb_UVrnd
paddd m2, m3 ; (dword) { V[0-3] }
paddd m0, m1 ; (dword) { U[0-3] }
pmaddwd m3, m5, coeffV1 ; (dword) { Bx*BV + Rx*RV }[4-7]
pmaddwd m1, m4, coeffV2 ; (dword) { Gx*GV }[4-7]
pmaddwd m5, coeffU1 ; (dword) { Bx*BU + Rx*RU }[4-7]
pmaddwd m4, coeffU2 ; (dword) { Gx*GU }[4-7]
paddd m3, m6 ; += rgb_UVrnd
paddd m5, m6 ; += rgb_UVrnd
psrad m0, 9
paddd m1, m3 ; (dword) { V[4-7] }
paddd m4, m5 ; (dword) { U[4-7] }
psrad m2, 9
psrad m4, 9
psrad m1, 9
packssdw m0, m4 ; (word) { U[0-7] }
packssdw m2, m1 ; (word) { V[0-7] }
%if mmsize == 8
mova [dstUq+wq], m0
mova [dstVq+wq], m2
%else ; mmsize == 16
mova [dstUq+wq], m0
mova [dstVq+wq], m2
%endif ; mmsize == 8/16
add wq, mmsize
jl .loop
sub wq, mmsize - 1
jz .end
add srcq , 2*mmsize - 2
add dstUq, mmsize - 1
add dstVq, mmsize - 1
.loop2:
movd m0, [srcq+wq*2] ; (byte) { Bx, Gx, Rx, xx }[0-3]
DEINTB 1, 0, 5, 4, 7 ; (word) { Gx, xx (m0/m4) or Bx, Rx (m1/m5) }[0-3]/[4-7]
pmaddwd m3, m1, coeffV1 ; (dword) { Bx*BV + Rx*RV }[0-3]
pmaddwd m2, m0, coeffV2 ; (dword) { Gx*GV }[0-3]
pmaddwd m1, coeffU1 ; (dword) { Bx*BU + Rx*RU }[0-3]
pmaddwd m0, coeffU2 ; (dword) { Gx*GU }[0-3]
paddd m3, m6 ; += rgb_UVrnd
paddd m1, m6 ; += rgb_UVrnd
paddd m2, m3 ; (dword) { V[0-3] }
paddd m0, m1 ; (dword) { U[0-3] }
psrad m0, 9
psrad m2, 9
packssdw m0, m0 ; (word) { U[0-7] }
packssdw m2, m2 ; (word) { V[0-7] }
movd [dstUq+wq], m0
movd [dstVq+wq], m2
add wq, 2
jl .loop2
.end:
REP_RET
%endif ; ARCH_X86_64 && %0 == 3
%endmacro
; %1 = nr. of XMM registers for rgb-to-Y func
; %2 = nr. of XMM registers for rgb-to-UV func
%macro RGB32_FUNCS 2
RGB32_TO_Y_FN %1, r, g, b, a
RGB32_TO_Y_FN %1, b, g, r, a, rgba
RGB32_TO_Y_FN %1, a, r, g, b, rgba
RGB32_TO_Y_FN %1, a, b, g, r, rgba
RGB32_TO_UV_FN %2, r, g, b, a
RGB32_TO_UV_FN %2, b, g, r, a, rgba
RGB32_TO_UV_FN %2, a, r, g, b, rgba
RGB32_TO_UV_FN %2, a, b, g, r, rgba
%endmacro
%if ARCH_X86_32
INIT_MMX mmx
RGB32_FUNCS 0, 0
%endif
INIT_XMM sse2
RGB32_FUNCS 8, 12
%if HAVE_AVX_EXTERNAL
INIT_XMM avx
RGB32_FUNCS 8, 12
%endif
;-----------------------------------------------------------------------------
; YUYV/UYVY/NV12/NV21 packed pixel shuffling.
;
; void <fmt>ToY_<opt>(uint8_t *dst, const uint8_t *src, int w);
; and
; void <fmt>toUV_<opt>(uint8_t *dstU, uint8_t *dstV, const uint8_t *src,
; const uint8_t *unused, int w);
;-----------------------------------------------------------------------------
; %1 = a (aligned) or u (unaligned)
; %2 = yuyv or uyvy
%macro LOOP_YUYV_TO_Y 2
.loop_%1:
mov%1 m0, [srcq+wq*2] ; (byte) { Y0, U0, Y1, V0, ... }
mov%1 m1, [srcq+wq*2+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }
%ifidn %2, yuyv
pand m0, m2 ; (word) { Y0, Y1, ..., Y7 }
pand m1, m2 ; (word) { Y8, Y9, ..., Y15 }
%else ; uyvy
psrlw m0, 8 ; (word) { Y0, Y1, ..., Y7 }
psrlw m1, 8 ; (word) { Y8, Y9, ..., Y15 }
%endif ; yuyv/uyvy
packuswb m0, m1 ; (byte) { Y0, ..., Y15 }
mova [dstq+wq], m0
add wq, mmsize
jl .loop_%1
REP_RET
%endmacro
; %1 = nr. of XMM registers
; %2 = yuyv or uyvy
; %3 = if specified, it means that unaligned and aligned code in loop
; will be the same (i.e. YUYV+AVX), and thus we don't need to
; split the loop in an aligned and unaligned case
%macro YUYV_TO_Y_FN 2-3
cglobal %2ToY, 5, 5, %1, dst, unused0, unused1, src, w
%if ARCH_X86_64
movsxd wq, wd
%endif
add dstq, wq
%if mmsize == 16
test srcq, 15
%endif
lea srcq, [srcq+wq*2]
%ifidn %2, yuyv
pcmpeqb m2, m2 ; (byte) { 0xff } x 16
psrlw m2, 8 ; (word) { 0x00ff } x 8
%endif ; yuyv
%if mmsize == 16
jnz .loop_u_start
neg wq
LOOP_YUYV_TO_Y a, %2
.loop_u_start:
neg wq
LOOP_YUYV_TO_Y u, %2
%else ; mmsize == 8
neg wq
LOOP_YUYV_TO_Y a, %2
%endif ; mmsize == 8/16
%endmacro
; %1 = a (aligned) or u (unaligned)
; %2 = yuyv or uyvy
%macro LOOP_YUYV_TO_UV 2
.loop_%1:
%ifidn %2, yuyv
mov%1 m0, [srcq+wq*4] ; (byte) { Y0, U0, Y1, V0, ... }
mov%1 m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }
psrlw m0, 8 ; (word) { U0, V0, ..., U3, V3 }
psrlw m1, 8 ; (word) { U4, V4, ..., U7, V7 }
%else ; uyvy
%if cpuflag(avx)
vpand m0, m2, [srcq+wq*4] ; (word) { U0, V0, ..., U3, V3 }
vpand m1, m2, [srcq+wq*4+mmsize] ; (word) { U4, V4, ..., U7, V7 }
%else
mov%1 m0, [srcq+wq*4] ; (byte) { Y0, U0, Y1, V0, ... }
mov%1 m1, [srcq+wq*4+mmsize] ; (byte) { Y8, U4, Y9, V4, ... }
pand m0, m2 ; (word) { U0, V0, ..., U3, V3 }
pand m1, m2 ; (word) { U4, V4, ..., U7, V7 }
%endif
%endif ; yuyv/uyvy
packuswb m0, m1 ; (byte) { U0, V0, ..., U7, V7 }
pand m1, m0, m2 ; (word) { U0, U1, ..., U7 }
psrlw m0, 8 ; (word) { V0, V1, ..., V7 }
%if mmsize == 16
packuswb m1, m0 ; (byte) { U0, ... U7, V1, ... V7 }
movh [dstUq+wq], m1
movhps [dstVq+wq], m1
%else ; mmsize == 8
packuswb m1, m1 ; (byte) { U0, ... U3 }
packuswb m0, m0 ; (byte) { V0, ... V3 }
movh [dstUq+wq], m1
movh [dstVq+wq], m0
%endif ; mmsize == 8/16
add wq, mmsize / 2
jl .loop_%1
REP_RET
%endmacro
; %1 = nr. of XMM registers
; %2 = yuyv or uyvy
; %3 = if specified, it means that unaligned and aligned code in loop
; will be the same (i.e. UYVY+AVX), and thus we don't need to
; split the loop in an aligned and unaligned case
%macro YUYV_TO_UV_FN 2-3
cglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w
%if ARCH_X86_64
movsxd wq, dword r5m
%else ; x86-32
mov wq, r5m
%endif
add dstUq, wq
add dstVq, wq
%if mmsize == 16 && %0 == 2
test srcq, 15
%endif
lea srcq, [srcq+wq*4]
pcmpeqb m2, m2 ; (byte) { 0xff } x 16
psrlw m2, 8 ; (word) { 0x00ff } x 8
; NOTE: if uyvy+avx, u/a are identical
%if mmsize == 16 && %0 == 2
jnz .loop_u_start
neg wq
LOOP_YUYV_TO_UV a, %2
.loop_u_start:
neg wq
LOOP_YUYV_TO_UV u, %2
%else ; mmsize == 8
neg wq
LOOP_YUYV_TO_UV a, %2
%endif ; mmsize == 8/16
%endmacro
; %1 = a (aligned) or u (unaligned)
; %2 = nv12 or nv21
%macro LOOP_NVXX_TO_UV 2
.loop_%1:
mov%1 m0, [srcq+wq*2] ; (byte) { U0, V0, U1, V1, ... }
mov%1 m1, [srcq+wq*2+mmsize] ; (byte) { U8, V8, U9, V9, ... }
pand m2, m0, m5 ; (word) { U0, U1, ..., U7 }
pand m3, m1, m5 ; (word) { U8, U9, ..., U15 }
psrlw m0, 8 ; (word) { V0, V1, ..., V7 }
psrlw m1, 8 ; (word) { V8, V9, ..., V15 }
packuswb m2, m3 ; (byte) { U0, ..., U15 }
packuswb m0, m1 ; (byte) { V0, ..., V15 }
%ifidn %2, nv12
mova [dstUq+wq], m2
mova [dstVq+wq], m0
%else ; nv21
mova [dstVq+wq], m2
mova [dstUq+wq], m0
%endif ; nv12/21
add wq, mmsize
jl .loop_%1
REP_RET
%endmacro
; %1 = nr. of XMM registers
; %2 = nv12 or nv21
%macro NVXX_TO_UV_FN 2
cglobal %2ToUV, 4, 5, %1, dstU, dstV, unused, src, w
%if ARCH_X86_64
movsxd wq, dword r5m
%else ; x86-32
mov wq, r5m
%endif
add dstUq, wq
add dstVq, wq
%if mmsize == 16
test srcq, 15
%endif
lea srcq, [srcq+wq*2]
pcmpeqb m5, m5 ; (byte) { 0xff } x 16
psrlw m5, 8 ; (word) { 0x00ff } x 8
%if mmsize == 16
jnz .loop_u_start
neg wq
LOOP_NVXX_TO_UV a, %2
.loop_u_start:
neg wq
LOOP_NVXX_TO_UV u, %2
%else ; mmsize == 8
neg wq
LOOP_NVXX_TO_UV a, %2
%endif ; mmsize == 8/16
%endmacro
%if ARCH_X86_32
INIT_MMX mmx
YUYV_TO_Y_FN 0, yuyv
YUYV_TO_Y_FN 0, uyvy
YUYV_TO_UV_FN 0, yuyv
YUYV_TO_UV_FN 0, uyvy
NVXX_TO_UV_FN 0, nv12
NVXX_TO_UV_FN 0, nv21
%endif
INIT_XMM sse2
YUYV_TO_Y_FN 3, yuyv
YUYV_TO_Y_FN 2, uyvy
YUYV_TO_UV_FN 3, yuyv
YUYV_TO_UV_FN 3, uyvy
NVXX_TO_UV_FN 5, nv12
NVXX_TO_UV_FN 5, nv21
%if HAVE_AVX_EXTERNAL
INIT_XMM avx
; in theory, we could write a yuy2-to-y using vpand (i.e. AVX), but
; that's not faster in practice
YUYV_TO_UV_FN 3, yuyv
YUYV_TO_UV_FN 3, uyvy, 1
NVXX_TO_UV_FN 5, nv12
NVXX_TO_UV_FN 5, nv21
%endif
%if ARCH_X86_64
%define RY_IDX 0
%define GY_IDX 1
%define BY_IDX 2
%define RU_IDX 3
%define GU_IDX 4
%define BU_IDX 5
%define RV_IDX 6
%define GV_IDX 7
%define BV_IDX 8
%define RGB2YUV_SHIFT 15
%define R m0
%define G m1
%define B m2
%macro SWAP32 1
%if mmsize > 16 || cpuflag(sse4)
pshufb m%1, [pb_shuffle32be]
%else
psrlw xm7, xm%1, 8
psllw xm%1, 8
por xm%1, xm7
pshuflw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)
pshufhw xm%1, xm%1, (2 << 6 | 3 << 4 | 0 << 2 | 1 << 0)
%endif
%endmacro
; 1 - dest
; 2 - source
; 3 - is big endian
; 4 - load only 2 values on sse2
%macro LOADF32 4
%if notcpuflag(sse4) && %4
%if %3 ; big endian
mov tmp1q, %2
bswap tmp1q
movq xm%1, tmp1q
%else
movq m%1, %2
%endif
%else
movu m%1, %2
%if %3
SWAP32 %1
%endif
%endif
maxps m%1, m9 ; 0.0 (nan, -inf) -> 0.0
mulps m%1, m8 ; [pd_65535f]
minps m%1, m8 ; +inf -> 65535
; cvtps2dq rounds to nearest int
; assuming mxcsr register is default rounding
; 0.40 -> 0.0, 0.50 -> 0.0, 0.51 -> 1.0
cvtps2dq m%1, m%1
%if notcpuflag(sse4) && %4
; line up the 2 values in lanes 0,2
%if %3 ; big endian
pshufd m%1, m%1, (3 << 6 | 0 << 4 | 2 << 2 | 1 << 0)
%else
pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
%endif
%endif
%endmacro
; 1 - dest
; 2 - source
; 3 - is big endian
%macro LOAD16 3
%if cpuflag(sse4) || mmsize > 16
pmovzxwd m%1, %2
%if %3 ; bigendian
pshufb m%1, m8 ; [pb_shuffle16be]
%endif
%else
%if %3 ; bigendian
mov tmp1d, dword %2
bswap tmp1d
movd xm%1, tmp1d
pshuflw m%1, m%1, (3 << 6 | 0 << 4 | 3 << 2 | 1 << 0)
pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
%else
movd xm%1, %2
punpcklwd m%1, m9 ; interleave words with zero
pshufd m%1, m%1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
%endif
%endif
%endmacro
%macro LOAD8_RGB 0
%if cpuflag(sse4) || mmsize > 16
pmovzxbd R, [srcRq + xq]
pmovzxbd G, [srcGq + xq]
pmovzxbd B, [srcBq + xq]
%else
; thought this would be faster but from my measurments its not
; movd m0, [srcRq + xq + 0]; overeads by 2 bytes
; punpcklbw m0, m9 ; interleave bytes with zero
; punpcklwd m0, m9 ; interleave words with zero
; pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
movzx tmp2q, byte [srcRq + xq + 1]
movzx tmp1q, byte [srcRq + xq + 0]
shl tmp2q, 32
or tmp1q, tmp2q
movq xm0, tmp1q
movzx tmp2q, byte [srcGq + xq + 1]
movzx tmp3q, byte [srcGq + xq + 0]
shl tmp2q, 32
or tmp3q, tmp2q
movq xm1, tmp3q
movzx tmp2q, byte [srcBq + xq + 1]
movzx tmp1q, byte [srcBq + xq + 0]
shl tmp2q, 32
or tmp1q, tmp2q
movq xm2, tmp1q
pshufd m0, m0, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
pshufd m1, m1, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
pshufd m2, m2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
%endif
%endmacro
; 1 - dest
; 2 - source
; 3 - store only 2 values on sse2
%macro STORE16 3
%if %3 && notcpuflag(sse4)
pshufd m%2, m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
pshuflw m%2, m%2, (3 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
movd %1, m%2
%elif mmsize > 16
pshufb m%2, m7 ; [pb_pack_shuffle16le]
vpermq m%2, m%2, (3 << 6 | 0 << 4 | 3 << 2 | 0 << 0)
movu %1, xm%2
%else
%if cpuflag(sse4)
pshufb m%2, m7 ; [pb_pack_shuffle16le]
%else
pshuflw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
pshufhw m%2, m%2, (1 << 6 | 1 << 4 | 2 << 2 | 0 << 0)
pshufd m%2, m%2, (3 << 6 | 3 << 4 | 2 << 2 | 0 << 0)
%endif
movq %1, m%2
%endif
%endmacro
%macro PMUL 3
%if cpuflag(sse4) || mmsize > 16
pmulld %1, %2, %3
%else
pmuludq %1, %2, %3
%endif
%endmacro
; 1 - name
; 2 - depth
; 3 - is big endian
; 4 - is float
; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction
%macro planar_rgb_to_y_fn 4
%if %2 == 8
%define OFFSET (0x801<<(RGB2YUV_SHIFT-7))
%define RSHIFT (RGB2YUV_SHIFT-6)
%else
%if %2 < 16
%define SHIFT %2
%define BPC %2
%else
%define SHIFT 14
%define BPC 16
%endif
%define OFFSET ((16 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))
%define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)
%endif
cglobal planar_%1_to_y, 4, 12, 13, dst, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3, tmp4
VBROADCASTSS m10, dword [rgb2yuvq + RY_IDX*4] ; ry
VBROADCASTSS m11, dword [rgb2yuvq + GY_IDX*4] ; gy
VBROADCASTSS m12, dword [rgb2yuvq + BY_IDX*4] ; by
pxor m9, m9
%if %4
movu m8, [pd_65535f]
%endif
%if cpuflag(sse4) || mmsize > 16
movu m7, [pb_pack_shuffle16le]
%if %3 && %2 > 8 && %2 <= 16
movu m8, [pb_shuffle16be]
%endif
%endif
mov xq, OFFSET
movq xm6, xq
VBROADCASTSS m6, xm6
mov srcGq, [srcq + 0]
mov srcBq, [srcq + 8]
mov srcRq, [srcq + 16]
xor xq, xq
%%loop_x:
%if %4
LOADF32 0, [srcRq + xq*4], %3, 1
LOADF32 1, [srcGq + xq*4], %3, 1
LOADF32 2, [srcBq + xq*4], %3, 1
%elif %2 == 8
LOAD8_RGB
%else
LOAD16 0, [srcRq + xq*2], %3
LOAD16 1, [srcGq + xq*2], %3
LOAD16 2, [srcBq + xq*2], %3
%endif
PMUL R, R, m10 ; r*ry
PMUL G, G, m11 ; g*gy
PMUL B, B, m12 ; b*by
paddd m0, m6 ; + OFFSET
paddd B, G
paddd m0, B
psrad m0, RSHIFT
STORE16 [dstq + 2*xq], 0, 1
%if cpuflag(avx2) || cpuflag(sse4)
add xq, mmsize/4
%else
add xd, 2
%endif
cmp xd, wd
jl %%loop_x
RET
%endmacro
; 1 - name
; 2 - depth
; 3 - is big endian
; 4 - is float
; in sse2 mode only 2 values are done per loop, due to lack of pmulld instruction
%macro planar_rgb_to_uv_fn 4
%if %2 == 8
%define OFFSET (0x4001<<(RGB2YUV_SHIFT-7))
%define RSHIFT (RGB2YUV_SHIFT-6)
%else
%if %2 < 16
%define SHIFT %2
%define BPC %2
%else
%define SHIFT 14
%define BPC 16
%endif
%define OFFSET ((128 << (RGB2YUV_SHIFT + BPC - 8)) + (1 << (RGB2YUV_SHIFT + SHIFT - 15)))
%define RSHIFT (RGB2YUV_SHIFT + SHIFT - 14)
%endif
cglobal planar_%1_to_uv, 5, 12, 16, dstU, dstV, src, w, rgb2yuv, srcR, srcG, srcB, x, tmp1, tmp2, tmp3
VBROADCASTSS m10, dword [rgb2yuvq + RU_IDX*4] ; ru
VBROADCASTSS m11, dword [rgb2yuvq + GU_IDX*4] ; gu
VBROADCASTSS m12, dword [rgb2yuvq + BU_IDX*4] ; bu
VBROADCASTSS m13, dword [rgb2yuvq + RV_IDX*4] ; rv
VBROADCASTSS m14, dword [rgb2yuvq + GV_IDX*4] ; gv
VBROADCASTSS m15, dword [rgb2yuvq + BV_IDX*4] ; bv
pxor m9, m9
%if %4
movu m8, [pd_65535f]
%endif
%if cpuflag(sse4) || mmsize > 16
movu m7, [pb_pack_shuffle16le]
%if %3 && %2 > 8 && %2 <= 16
movu m8, [pb_shuffle16be]
%endif
%endif
mov xq, OFFSET
movq xm6, xq
VBROADCASTSS m6, xm6
mov srcGq, [srcq + 0]
mov srcBq, [srcq + 8]
mov srcRq, [srcq + 16]
xor xq, xq
%%loop_x:
%if %4
LOADF32 0, [srcRq + xq*4], %3, 1
LOADF32 1, [srcGq + xq*4], %3, 1
LOADF32 2, [srcBq + xq*4], %3, 1
%elif %2 == 8
LOAD8_RGB
%else
LOAD16 0, [srcRq + xq*2], %3
LOAD16 1, [srcGq + xq*2], %3
LOAD16 2, [srcBq + xq*2], %3
%endif
PMUL m5, R, m10 ; r*ru
PMUL m4, G, m11 ; b*gu
paddd m4, m5
PMUL m5, B, m12 ; b*bu
paddd m4, m6 ; + OFFSET
paddd m4, m5
psrad m4, RSHIFT
STORE16 [dstUq + 2*xq], 4, 1
PMUL R, R, m13 ; r*rv
PMUL G, G, m14 ; g*gv*g
PMUL B, B, m15 ; b*bv
paddd m0, m6 ; + OFFSET
paddd B, G
paddd m0, B
psrad m0, RSHIFT
STORE16 [dstVq + 2*xq], 0, 1
%if cpuflag(avx2) || cpuflag(sse4)
add xd, mmsize/4
%else
add xd, 2
%endif
cmp xd, wd
jl %%loop_x
RET
%endmacro
; 1 - name
; 2 - depth
; 3 - is big endian
; 4 - is float
%macro planar_rgb_to_a_fn 4
cglobal planar_%1_to_a, 4, 6, 10, dst, src, w, rgb2yuv, srcA, x
%if %4 && (cpuflag(sse4) || mmsize > 16)
movu m7, [pb_pack_shuffle16le]
%elif %3 && (cpuflag(sse4) || mmsize > 16)
movu m7, [pb_shuffle16be]
%endif
%if %4
movu m8, [pd_65535f]
%endif
pxor m9, m9
mov srcAq, [srcq + 24]
xor xq, xq
%%loop_x:
%if %4 ; float
LOADF32 0, [srcAq + xq*4], %3, 0
STORE16 [dstq + xq*2], 0, 0
add xq, mmsize/4
%elif %2 == 8
; only need to convert 8bit value to 16bit
%if cpuflag(sse4) || mmsize > 16
pmovzxbw m0, [srcAq + xq]
%else
movsd m0, [srcAq + xq]
punpcklbw m0, m9 ; interleave bytes with zero
%endif
psllw m0, 6
movu [dstq + xq*2], m0
add xq, mmsize/2
%else
; only need to convert 16bit format to 16le
movu m0, [srcAq + xq*2]
%if %3 ; bigendian
%if cpuflag(sse4) || mmsize > 16
pshufb m0, m7 ; [pb_shuffle16be]
%else
psrlw m7, m0, 8
psllw m0, 8
por m0, m7
%endif
%endif
%if %2 < 16
psllw m0, (14 - %2)
%endif
movu [dstq + xq*2], m0
add xq, mmsize/2
%endif
cmp xd, wd
jl %%loop_x
RET
%endmacro
; 1 - name
; 2 - depth
; 3 - is float
%macro planer_rgbxx_y_fn_decl 3
planar_rgb_to_y_fn %1le, %2, 0, %3
planar_rgb_to_y_fn %1be, %2, 1, %3
%endmacro
; 1 - name
; 2 - depth
; 3 - is float
%macro planer_rgbxx_uv_fn_decl 3
planar_rgb_to_uv_fn %1le, %2, 0, %3
planar_rgb_to_uv_fn %1be, %2, 1, %3
%endmacro
; 1 - name
; 2 - depth
; 3 - is float
%macro planer_rgbxx_a_fn_decl 3
planar_rgb_to_a_fn %1le, %2, 0, %3
planar_rgb_to_a_fn %1be, %2, 1, %3
%endmacro
%macro planar_rgb_y_all_fn_decl 0
planar_rgb_to_y_fn rgb, 8, 0, 0
planer_rgbxx_y_fn_decl rgb9, 9, 0
planer_rgbxx_y_fn_decl rgb10, 10, 0
planer_rgbxx_y_fn_decl rgb12, 12, 0
planer_rgbxx_y_fn_decl rgb14, 14, 0
planer_rgbxx_y_fn_decl rgb16, 16, 0
planer_rgbxx_y_fn_decl rgbf32, 32, 1
%endmacro
%macro planar_rgb_uv_all_fn_decl 0
planar_rgb_to_uv_fn rgb, 8, 0, 0
planer_rgbxx_uv_fn_decl rgb9, 9, 0
planer_rgbxx_uv_fn_decl rgb10, 10, 0
planer_rgbxx_uv_fn_decl rgb12, 12, 0
planer_rgbxx_uv_fn_decl rgb14, 14, 0
planer_rgbxx_uv_fn_decl rgb16, 16, 0
planer_rgbxx_uv_fn_decl rgbf32, 32, 1
%endmacro
%macro planar_rgb_a_all_fn_decl 0
planar_rgb_to_a_fn rgb, 8, 0, 0
planer_rgbxx_a_fn_decl rgb10, 10, 0
planer_rgbxx_a_fn_decl rgb12, 12, 0
planer_rgbxx_a_fn_decl rgb16, 16, 0
planer_rgbxx_a_fn_decl rgbf32, 32, 1
%endmacro
; sse2 to_y only matches c speed with current implementation
; except on floating point formats
INIT_XMM sse2
planer_rgbxx_y_fn_decl rgbf32, 32, 1
planar_rgb_uv_all_fn_decl
planar_rgb_a_all_fn_decl
; sse4 to_a conversions are just the sse2 ones
; except on floating point formats
INIT_XMM sse4
planar_rgb_y_all_fn_decl
planar_rgb_uv_all_fn_decl
planer_rgbxx_a_fn_decl rgbf32, 32, 1
%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
planar_rgb_y_all_fn_decl
planar_rgb_uv_all_fn_decl
planar_rgb_a_all_fn_decl
%endif
%endif ; ARCH_X86_64
| 33.510221
| 102
| 0.488471
|
e01aec43bf9407b60de9ec003d4c483e7ef2997e
| 608
|
asm
|
Assembly
|
programs/oeis/273/A273675.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/273/A273675.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/273/A273675.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A273675: Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 833", based on the 5-celled von Neumann neighborhood.
; 1,4,17,33,56,85,120,161,208,261,320,385,456,533,616,705,800,901,1008,1121,1240,1365,1496,1633,1776,1925,2080,2241,2408,2581,2760,2945,3136,3333,3536,3745,3960,4181,4408,4641,4880,5125,5376,5633,5896,6165,6440
mov $4,$0
mov $6,$0
lpb $0
sub $0,1
mov $2,$4
trn $2,3
add $4,3
add $5,$0
trn $0,1
add $0,1
add $2,4
add $1,$2
mov $3,$4
add $3,$5
lpe
add $1,$3
add $1,5
lpb $6
add $1,3
sub $6,1
lpe
sub $1,4
| 23.384615
| 210
| 0.666118
|
19a02431b9707ad65cd5fa1084b33710fb5e037c
| 184
|
asm
|
Assembly
|
Practicas/Practica_06/codigoFuente/P3.asm
|
CodeRevenge/Proyecto-seminario-traductores-i
|
a5c6a500a6be8d5a1b24b4ecacd73e6f67a34041
|
[
"MIT"
] | null | null | null |
Practicas/Practica_06/codigoFuente/P3.asm
|
CodeRevenge/Proyecto-seminario-traductores-i
|
a5c6a500a6be8d5a1b24b4ecacd73e6f67a34041
|
[
"MIT"
] | null | null | null |
Practicas/Practica_06/codigoFuente/P3.asm
|
CodeRevenge/Proyecto-seminario-traductores-i
|
a5c6a500a6be8d5a1b24b4ecacd73e6f67a34041
|
[
"MIT"
] | null | null | null |
E3 EQU 50
ORG $4000
E2 EQU 15
ADCA #15
ADCA 15
START
ADCA 150
ADCA 1500
ADDD #10
ADDD 10
DC.B
DC.B 10
DC.B 10,11
BSZ 10
FILL 2,3
DC.W
DC.W 1,2
FCC /HOLA/
FCB 10
E1 END
| 9.2
| 11
| 0.630435
|
79fc313434e84dc0f6eb12238ad778b221f53fd6
| 148
|
asm
|
Assembly
|
ide/paillier_cec1302.asm
|
takyrajdr/paillier
|
db6fd9d917a016939508ad638b60a0eb93195c6d
|
[
"MIT"
] | null | null | null |
ide/paillier_cec1302.asm
|
takyrajdr/paillier
|
db6fd9d917a016939508ad638b60a0eb93195c6d
|
[
"MIT"
] | null | null | null |
ide/paillier_cec1302.asm
|
takyrajdr/paillier
|
db6fd9d917a016939508ad638b60a0eb93195c6d
|
[
"MIT"
] | null | null | null |
_main:
;paillier_cec1302.c,1 :: void main() {
;paillier_cec1302.c,3 :: }
L_end_main:
L__main_end_loop:
B L__main_end_loop
; end of _main
| 18.5
| 41
| 0.689189
|
91babf8567f2006054bc3d33203c98ce46e248ea
| 16,902
|
asm
|
Assembly
|
lib/avx512/pon_vaes_avx512.asm
|
jkivilin/intel-ipsec-mb
|
6e3f4777f41cd788c9d51bf19c79a409ad97ef69
|
[
"BSD-3-Clause"
] | 1
|
2022-03-26T12:31:12.000Z
|
2022-03-26T12:31:12.000Z
|
lib/avx512/pon_vaes_avx512.asm
|
jkivilin/intel-ipsec-mb
|
6e3f4777f41cd788c9d51bf19c79a409ad97ef69
|
[
"BSD-3-Clause"
] | null | null | null |
lib/avx512/pon_vaes_avx512.asm
|
jkivilin/intel-ipsec-mb
|
6e3f4777f41cd788c9d51bf19c79a409ad97ef69
|
[
"BSD-3-Clause"
] | null | null | null |
;;
;; Copyright (c) 2021-2022, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and the following disclaimer.
;; * Redistributions in binary form must reproduce the above copyright
;; notice, this list of conditions and the following disclaimer in the
;; documentation and/or other materials provided with the distribution.
;; * Neither the name of Intel Corporation nor the names of its contributors
;; may be used to endorse or promote products derived from this software
;; without specific prior written permission.
;;
;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;
%use smartalign
%include "include/imb_job.asm"
%include "include/os.asm"
%include "include/memcpy.asm"
%include "include/clear_regs.asm"
%include "include/cet.inc"
extern aes_cntr_pon_enc_128_vaes_avx512
extern aes_cntr_pon_dec_128_vaes_avx512
extern ethernet_fcs_avx512_local
;;; This is implementation of algorithms: AES128-CTR + CRC32 + BIP
;;; This combination is required by PON/xPON/gPON standard.
;;; Note: BIP is running XOR of double words
;;; Order of operations:
;;; - encrypt: HEC update (XGEM header), CRC32 (Ethernet FCS), AES-CTR and BIP
;;; - decrypt: BIP, AES-CTR and CRC32 (Ethernet FCS)
;; Precomputed constants for HEC calculation (XGEM header)
;; POLY 0x53900000:
;; k1 = 0xf9800000
;; k2 = 0xa0900000
;; k3 = 0x7cc00000
;; q = 0x46b927ec
;; p_res = 0x53900000
mksection .rodata
default rel
align 16
k3_q:
dq 0x7cc00000, 0x46b927ec
align 16
p_res:
dq 0x53900000, 0
align 16
mask_out_top_64bits:
dq 0xffffffff_ffffffff, 0
byte64_len_to_mask_table:
dq 0xffffffffffffffff, 0x0000000000000001
dq 0x0000000000000003, 0x0000000000000007
dq 0x000000000000000f, 0x000000000000001f
dq 0x000000000000003f, 0x000000000000007f
dq 0x00000000000000ff, 0x00000000000001ff
dq 0x00000000000003ff, 0x00000000000007ff
dq 0x0000000000000fff, 0x0000000000001fff
dq 0x0000000000003fff, 0x0000000000007fff
dq 0x000000000000ffff, 0x000000000001ffff
dq 0x000000000003ffff, 0x000000000007ffff
dq 0x00000000000fffff, 0x00000000001fffff
dq 0x00000000003fffff, 0x00000000007fffff
dq 0x0000000000ffffff, 0x0000000001ffffff
dq 0x0000000003ffffff, 0x0000000007ffffff
dq 0x000000000fffffff, 0x000000001fffffff
dq 0x000000003fffffff, 0x000000007fffffff
dq 0x00000000ffffffff, 0x00000001ffffffff
dq 0x00000003ffffffff, 0x00000007ffffffff
dq 0x0000000fffffffff, 0x0000001fffffffff
dq 0x0000003fffffffff, 0x0000007fffffffff
dq 0x000000ffffffffff, 0x000001ffffffffff
dq 0x000003ffffffffff, 0x000007ffffffffff
dq 0x00000fffffffffff, 0x00001fffffffffff
dq 0x00003fffffffffff, 0x00007fffffffffff
dq 0x0000ffffffffffff, 0x0001ffffffffffff
dq 0x0003ffffffffffff, 0x0007ffffffffffff
dq 0x000fffffffffffff, 0x001fffffffffffff
dq 0x003fffffffffffff, 0x007fffffffffffff
dq 0x00ffffffffffffff, 0x01ffffffffffffff
dq 0x03ffffffffffffff, 0x07ffffffffffffff
dq 0x0fffffffffffffff, 0x1fffffffffffffff
dq 0x3fffffffffffffff, 0x7fffffffffffffff
dq 0xffffffffffffffff
mksection .text
%define xtmp1 xmm4
%define xtmp2 xmm5
%ifdef LINUX
%define arg1 rdi
%define arg2 rsi
%define arg3 rdx
%define arg4 rcx
%define arg5 r8
%define arg6 r9
%else
%define arg1 rcx
%define arg2 rdx
%define arg3 r8
%define arg4 r9
%define arg5 qword [rsp + 32]
%define arg6 qword [rsp + 40]
%endif
%define job arg1
%define tmp_1 r10
%define tmp_2 r11
%define bytes_to_crc r12
%define bip r13 ; Needs to be in preserved register
%define src r14 ; Needs to be in preserved register
%define dst r15 ; Needs to be in preserved register
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Stack frame definition
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
struc STACKFRAME
_gpr_save: resq 4 ; Memory to save GP registers
_job_save: resq 1 ; Memory to save job pointer
endstruc
;; =============================================================================
;; Barrett reduction from 128-bits to 32-bits modulo 0x53900000 polynomial
%macro HEC_REDUCE_128_TO_32 2
%define %%XMM_IN_OUT %1 ; [in/out] xmm register with data in and out
%define %%XTMP %2 ; [clobbered] temporary xmm register
;; 128 to 64 bit reduction
vpclmulqdq %%XTMP, %%XMM_IN_OUT, [rel k3_q], 0x01 ; K3
vpxor %%XTMP, %%XTMP, %%XMM_IN_OUT
vpclmulqdq %%XTMP, %%XTMP, [rel k3_q], 0x01 ; K3
vpxor %%XMM_IN_OUT, %%XTMP, %%XMM_IN_OUT
vpand %%XMM_IN_OUT, [rel mask_out_top_64bits]
;; 64 to 32 bit reduction
vpsrldq %%XTMP, %%XMM_IN_OUT, 4
vpclmulqdq %%XTMP, %%XTMP, [rel k3_q], 0x10 ; Q
vpxor %%XTMP, %%XTMP, %%XMM_IN_OUT
vpsrldq %%XTMP, %%XTMP, 4
vpclmulqdq %%XTMP, %%XTMP, [p_res], 0x00 ; P
vpxor %%XMM_IN_OUT, %%XTMP, %%XMM_IN_OUT
%endmacro
;; =============================================================================
;; HEC compute and header update for 64-bit XGEM headers
%macro HEC_COMPUTE_64 4
%define %%HEC_IN_OUT %1 ; [in/out] GP register with HEC in LE format
%define %%GT1 %2 ; [clobbered] temporary GP register
%define %%XT1 %3 ; [clobbered] temporary xmm register
%define %%XT2 %4 ; [clobbered] temporary xmm register
mov %%GT1, %%HEC_IN_OUT
;; shift out 13 bits of HEC value for CRC computation
shr %%GT1, 13
;; mask out current HEC value to merge with an updated HEC at the end
and %%HEC_IN_OUT, 0xffff_ffff_ffff_e000
;; prepare the message for CRC computation
vmovq %%XT1, %%GT1
vpslldq %%XT1, 4 ; shift left by 32-bits
HEC_REDUCE_128_TO_32 %%XT1, %%XT2
;; extract 32-bit value
;; - normally perform 20 bit shift right but bit 0 is a parity bit
vmovd DWORD(%%GT1), %%XT1
shr DWORD(%%GT1), (20 - 1)
;; merge header bytes with updated 12-bit CRC value and
;; compute parity
or %%GT1, %%HEC_IN_OUT
popcnt %%HEC_IN_OUT, %%GT1
and %%HEC_IN_OUT, 1
or %%HEC_IN_OUT, %%GT1
%endmacro
%macro AES128_CTR_PON_ENC 1
%define %%CIPH %1 ; [in] cipher "CTR" or "NO_CTR"
sub rsp, STACKFRAME_size
mov [rsp + _gpr_save], r12
mov [rsp + _gpr_save + 8], r13
mov [rsp + _gpr_save + 8*2], r14
mov [rsp + _gpr_save + 8*3], r15
;; START BIP and update HEC if encrypt direction
;; - load XGEM header (8 bytes) for BIP (not part of encrypted payload)
;; - convert it into LE
;; - update HEC field in the header
;; - convert it into BE
;; - store back the header (with updated HEC)
;; - start BIP
;; (free to use tmp_1, tmp2 and at this stage)
mov tmp_2, [job + _src]
add tmp_2, [job + _hash_start_src_offset_in_bytes]
mov bip, [tmp_2]
bswap bip ; go to LE
HEC_COMPUTE_64 bip, tmp_1, xtmp1, xtmp2
mov bytes_to_crc, bip
shr bytes_to_crc, (48 + 2) ; PLI = MSB 14 bits
bswap bip ; go back to BE
mov [tmp_2], bip
;; get input buffer (after XGEM header)
mov src, [job + _src]
add src, [job + _cipher_start_src_offset_in_bytes]
; Save job pointer
mov [rsp + _job_save], job
cmp bytes_to_crc, 4
jle %%_skip_crc
sub bytes_to_crc, 4 ; subtract size of the CRC itself
; Calculate CRC
%ifndef LINUX
;; If Windows, reserve memory in stack for parameter transferring
sub rsp, 8*4
%endif
mov arg1, src
mov arg2, bytes_to_crc
lea arg3, [src + bytes_to_crc]
call ethernet_fcs_avx512_local
%ifndef LINUX
add rsp, 8*4
%endif
; Restore job pointer
mov job, [rsp + _job_save]
mov tmp_1, [job + _auth_tag_output]
mov [tmp_1 + 4], eax
%%_skip_crc:
; get output buffer
mov dst, [job + _dst]
%ifidn %%CIPH, CTR
; Encrypt buffer and calculate BIP in the same function
mov arg2, dst
mov arg3, [job + _iv]
mov arg4, [job + _enc_keys]
%ifndef LINUX
;; If Windows, reserve memory in stack for parameter transferring
sub rsp, 8*6
mov tmp_1, [job + _msg_len_to_cipher_in_bytes]
mov arg5, tmp_1 ; arg5 in stack, not register
%else
mov arg5, [job + _msg_len_to_cipher_in_bytes]
%endif
mov arg6, bip
mov arg1, src
call aes_cntr_pon_enc_128_vaes_avx512
mov bip, arg6
%ifndef LINUX
add rsp, 8*6
%endif
; Restore job pointer
mov job, [rsp + _job_save]
%else
; Calculate BIP (XOR message)
vmovq xmm1, bip
;; Message length to cipher is 0
;; - length is obtained from message length to hash (BIP) minus XGEM header size
mov tmp_2, [job + _msg_len_to_hash_in_bytes]
sub tmp_2, 8
%%start_bip:
cmp tmp_2, 64
jle %%finish_bip
vpxorq zmm1, [dst]
sub tmp_2, 64
add dst, 64
jmp %%start_bip
%%finish_bip:
lea tmp_1, [rel byte64_len_to_mask_table]
mov tmp_1, [tmp_1 + 8*tmp_2]
kmovq k1, tmp_1
vmovdqu8 zmm0{k1}{z}, [dst]
vpxorq zmm1, zmm0
vextracti64x4 ymm0, zmm1, 1
vpxorq ymm1, ymm0
vextracti32x4 xmm0, ymm1, 1
vpxorq xmm1, xmm0
vpsrldq xmm0, xmm1, 8
vpxorq xmm1, xmm0
vpsrldq xmm0, xmm1, 4
vpxord xmm1, xmm0
vmovq bip, xmm1
%endif ; CIPH = CTR
mov tmp_1, [job + _auth_tag_output]
mov [tmp_1], DWORD(bip)
;; set job status
or dword [job + _status], IMB_STATUS_COMPLETED
;; return job
mov rax, job
mov r12, [rsp + _gpr_save]
mov r13, [rsp + _gpr_save + 8*1]
mov r14, [rsp + _gpr_save + 8*2]
mov r15, [rsp + _gpr_save + 8*3]
add rsp, STACKFRAME_size
%ifdef SAFE_DATA
clear_all_zmms_asm
%else
vzeroupper
%endif ;; SAFE_DATA
%endmacro
%macro AES128_CTR_PON_DEC 1
%define %%CIPH %1 ; [in] cipher "CTR" or "NO_CTR"
sub rsp, STACKFRAME_size
mov [rsp + _gpr_save], r12
mov [rsp + _gpr_save + 8], r13
mov [rsp + _gpr_save + 8*2], r14
mov [rsp + _gpr_save + 8*3], r15
;; START BIP
;; - load XGEM header (8 bytes) for BIP (not part of encrypted payload)
;; - convert it into LE
;; - update HEC field in the header
;; - convert it into BE
;; - store back the header (with updated HEC)
;; - start BIP
;; (free to use tmp_1, tmp2 and at this stage)
mov tmp_2, [job + _src]
add tmp_2, [job + _hash_start_src_offset_in_bytes]
mov bip, [tmp_2]
mov bytes_to_crc, bip
bswap bytes_to_crc ; go to LE
shr bytes_to_crc, (48 + 2) ; PLI = MSB 14 bits
;; get input buffer (after XGEM header)
mov src, [job + _src]
add src, [job + _cipher_start_src_offset_in_bytes]
; get output buffer
mov dst, [job + _dst]
; Save job pointer
mov [rsp + _job_save], job
%ifidn %%CIPH, CTR
;; Decrypt message and calculate BIP in same function
mov arg2, [job + _dst]
mov arg3, [job + _iv]
mov arg4, [job + _enc_keys]
%ifndef LINUX
;; If Windows, reserve memory in stack for parameter transferring
sub rsp, 8*6
mov tmp_1, [job + _msg_len_to_cipher_in_bytes]
mov arg5, tmp_1 ; arg5 in stack, not register
%else
mov arg5, [job + _msg_len_to_cipher_in_bytes]
%endif
mov arg6, bip
mov arg1, src
; Decrypt buffer
call aes_cntr_pon_dec_128_vaes_avx512
mov bip, arg6
%ifndef LINUX
add rsp, 8*6
%endif
%else ; %%CIPH == CTR
; Calculate BIP (XOR message)
vmovq xmm1, bip
;; Message length to cipher is 0
;; - length is obtained from message length to hash (BIP) minus XGEM header size
mov tmp_2, [job + _msg_len_to_hash_in_bytes]
sub tmp_2, 8
%%start_bip:
cmp tmp_2, 64
jle %%finish_bip
vpxorq zmm1, [dst]
sub tmp_2, 64
add dst, 64
jmp %%start_bip
%%finish_bip:
lea tmp_1, [rel byte64_len_to_mask_table]
mov tmp_1, [tmp_1 + 8*tmp_2]
kmovq k1, tmp_1
vmovdqu8 zmm0{k1}{z}, [dst]
vpxorq zmm1, zmm0
vextracti64x4 ymm0, zmm1, 1
vpxorq ymm1, ymm0
vextracti32x4 xmm0, ymm1, 1
vpxorq xmm1, xmm0
vpsrldq xmm0, xmm1, 8
vpxorq xmm1, xmm0
vpsrldq xmm0, xmm1, 4
vpxord xmm1, xmm0
vmovd DWORD(bip), xmm1
%endif ; CIPH == CTR
cmp bytes_to_crc, 4
jle %%_skip_crc
sub bytes_to_crc, 4 ; subtract size of the CRC itself
; Calculate CRC
%ifndef LINUX
;; If Windows, reserve memory in stack for parameter transferring
sub rsp, 8*4
%endif
mov arg1, src
mov arg2, bytes_to_crc
xor arg3, arg3 ; Do not write CRC in buffer
call ethernet_fcs_avx512_local
%ifndef LINUX
add rsp, 8*4
%endif
; Restore job pointer
mov job, [rsp + _job_save]
mov tmp_1, [job + _auth_tag_output]
mov [tmp_1 + 4], eax
%%_skip_crc:
; Restore job pointer
mov job, [rsp + _job_save]
mov tmp_1, [job + _auth_tag_output]
mov [tmp_1], DWORD(bip)
;; set job status
or dword [job + _status], IMB_STATUS_COMPLETED
;; return job
mov rax, job
mov r12, [rsp + _gpr_save]
mov r13, [rsp + _gpr_save + 8*1]
mov r14, [rsp + _gpr_save + 8*2]
mov r15, [rsp + _gpr_save + 8*3]
add rsp, STACKFRAME_size
%ifdef SAFE_DATA
clear_all_zmms_asm
%else
vzeroupper
%endif ;; SAFE_DATA
%endmacro
;;; submit_job_pon_enc_vaes_avx512(IMB_JOB *job)
align 64
MKGLOBAL(submit_job_pon_enc_vaes_avx512,function,internal)
submit_job_pon_enc_vaes_avx512:
endbranch64
AES128_CTR_PON_ENC CTR
ret
;;; submit_job_pon_dec_vaes_avx512(IMB_JOB *job)
align 64
MKGLOBAL(submit_job_pon_dec_vaes_avx512,function,internal)
submit_job_pon_dec_vaes_avx512:
endbranch64
AES128_CTR_PON_DEC CTR
ret
;;; submit_job_pon_enc_no_ctr_vaes_avx512(IMB_JOB *job)
align 64
MKGLOBAL(submit_job_pon_enc_no_ctr_vaes_avx512,function,internal)
submit_job_pon_enc_no_ctr_vaes_avx512:
endbranch64
AES128_CTR_PON_ENC NO_CTR
ret
;;; submit_job_pon_dec_no_ctr_vaes_avx512(IMB_JOB *job)
align 64
MKGLOBAL(submit_job_pon_dec_no_ctr_vaes_avx512,function,internal)
submit_job_pon_dec_no_ctr_vaes_avx512:
endbranch64
AES128_CTR_PON_DEC NO_CTR
ret
mksection stack-noexec
| 31.47486
| 88
| 0.598391
|
18d73157c7e56d11a5c05762294f2231cd2588a8
| 455
|
asm
|
Assembly
|
programs/oeis/186/A186444.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/186/A186444.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/186/A186444.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A186444: The count of numbers <= n for which 3 is an infinitary divisor.
; 0,0,1,1,1,2,2,2,2,2,2,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,9,9,9,10,10,10,11,11,11,11,11,11,12,12,12,13,13,13,14,14,14,15,15,15,16,16,16,16,16,16,17,17,17,18,18,18,18,18,18,19,19,19,20,20,20,20,20,20,21,21,21,22,22,22,22,22,22,23,23,23,24,24,24,24,24
add $0,1
mov $2,$0
lpb $0
lpb $2,4
cmp $3,0
mov $6,$0
mov $0,$2
sub $0,$6
div $2,3
lpe
lpe
| 30.333333
| 263
| 0.586813
|
9d24ea29a1e0a280449298a4025c2b95378828a2
| 429
|
asm
|
Assembly
|
testsuite/ubivm/expected/expr5.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
testsuite/ubivm/expected/expr5.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
testsuite/ubivm/expected/expr5.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
Entity start
No options
Constants
0 S start
1 S (2 * (49 / 7 - 3))=
2 I 2
3 I 49
4 I 7
5 I 3
6 S io.writeln
End
Valid context (always)
No properties
Def start
No parameters
No local variables
No results
ldconst 1 --> [(2 * (49 / 7 - 3))=]
ldconst 2 --> [2]
ldconst 3 --> [49]
ldconst 4 --> [7]
div
ldconst 5 --> [3]
sub
mul
ldconst 2 --> [2]
lcall 6 --> [io.writeln]
stop
End
End
| 13.83871
| 37
| 0.554779
|
2fa78e24ee2bf1e17ef1f8cfc684dfa649d5d167
| 409
|
asm
|
Assembly
|
programs/oeis/171/A171647.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/171/A171647.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/171/A171647.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A171647: a(1) = 1; for n > 1, a(n) = 2*a(n-1) if n is even, a(n) = ((n+1)/(n-1))*a(n-1) if n is odd.
; 1,2,4,8,12,24,32,64,80,160,192,384,448,896,1024,2048,2304,4608,5120,10240,11264,22528,24576,49152,53248,106496,114688,229376,245760,491520,524288,1048576,1114112,2228224,2359296,4718592,4980736,9961472
mov $1,$0
add $0,3
div $1,2
add $1,2
lpb $0
sub $0,2
add $1,1
mul $1,2
sub $1,3
lpe
div $1,2
| 27.266667
| 203
| 0.643032
|
39db4f8520ce913ee1c46d6afb453159dba6fbae
| 436
|
asm
|
Assembly
|
oeis/105/A105930.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/105/A105930.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/105/A105930.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A105930: Starting position of the n-th prime in the almost-natural numbers sequence A007376.
; Submitted by Jon Maiga
; 2,3,5,7,12,16,24,28,36,48,52,64,72,76,84,96,108,112,124,132,136,148,156,168,184,193,199,211,217,229,271,283,301,307,337,343,361,379,391,409,427,433,463,469,481,487,523,559,571,577,589,607,613,643,661,679
seq $0,6093 ; a(n) = prime(n) - 1.
seq $0,117804 ; Natural position of n in the string 12345678910111213....
| 62.285714
| 205
| 0.724771
|
3e6981576c7d5aa20313d45885a0b1816bb5891b
| 1,956
|
asm
|
Assembly
|
assembler/tests/t_mcore/t_mcore.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | 1
|
2022-01-17T16:06:15.000Z
|
2022-01-17T16:06:15.000Z
|
assembler/tests/t_mcore/t_mcore.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
assembler/tests/t_mcore/t_mcore.asm
|
paulscottrobson/RCA-Cosmac-VIP-III
|
5d3fcea325aacb7c99269f266bc14e30439cdc2b
|
[
"MIT"
] | null | null | null |
cpu mcore
page 0
supmode on
bkpt
doze
rfi
rte
stop
sync
wait
abs r0
asrc r1
brev r2
clrf r3
clrt r4
decf r5
decgt r6
declt r7
decne r8
dect r9
divs r10
divu r11
ff1 r12
incf r13
inct r14
jmp r15
jsr r0
lslc r1
lsrc r2
mvc r3
mvcv r4
not r5
sextb r6
sexth r7
tstnbz r8
xsr r9
xtrb0 r10
xtrb1 r11
xtrb2 r12
xtrb3 r13
zextb r14
zexth r15
addc r1,r2
addu r2,r3
and r3,r4
andn r4,r5
asr r5,r6
bgenr r6,r7
cmphs r7,r8
cmplt r8,r9
cmpne r9,r10
ixh r10,r11
ixw r11,r12
lsl r12,r13
lsr r13,r14
mov r14,r15
movf r1,r2
movt r2,r3
mult r3,r4
or r4,r5
rsub r5,r6
subc r6,r7
subu r7,r8
tst r8,r9
xor r9,r10
addi r2,1
andi r3,2
asri r4,3
bclri r5,4
bseti r6,5
btsti r7,6
cmplti r8,7
cmpnei r9,8
lsli r10,9
lsri r11,10
rotli r12,11
rsubi r13,12
subi r14,13
bgeni r4,0
bgeni r4,6
bgeni r4,7
bgeni r4,12
bgeni r4,31
bmaski r7,32
bmaski r7,1
bmaski r7,4
bmaski r7,7
bmaski r7,8
bmaski r7,22
bf *-$20
br *
bsr next
bt *+$200
next:
align 4
jmpi [*+4]
jsri [*+2]
ldb r4,(0,r3)
ldh r4,(r3)
ldw r4,(r3,12)
ld r4,(10,r3,2)
ld.b r4,(3,r3)
ld.h r4,(r3,6)
ld.w r4,(24,r3)
stb r4,(0,r3)
sth r4,(r3)
stw r4,(r3,12)
st r4,(10,r3,2)
st.b r4,(3,r3)
st.h r4,(r3,6)
st.w r4,(24,r3)
ldm r2-r15,(r0)
stm r4-r15,(r0)
ldq r4-r7,(r3)
stq r4-r7,(r12)
loopt r4,*
align 4
lrm r4,[*+4]
lrm r4,[*+2]
mfcr r12,cr5
mfcr r12,fpc
mtcr r2,cr26
ptrreg reg r10
movi r10,123
movi ptrreg,123
trap #2
| 13.87234
| 23
| 0.481595
|
1955ebbdcfd9b4a2205c887d4612a520c6e81e33
| 1,744
|
asm
|
Assembly
|
programs/oeis/094/A094976.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/094/A094976.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/094/A094976.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A094976: a(n) = floor(8^n/3^n).
; 1,2,7,18,50,134,359,958,2557,6818,18183,48490,129307,344820,919522,2452059,6538825,17436866,46498311,123995496,330654658,881745755,2351322014,6270192038,16720512102,44588032273,118901419396,317070451723,845521204596,2254723212258,6012595232689,16033587287172,42756232765793,114016620708783,304044321890088,810784858373569,2162092955662852,5765581215100939,15374883240269172,40999688640717794,109332503041914118,291553341445104315,777475577186944840,2073268205831852908,5528715215551607757,14743240574804287352,39315308199478099605,104840821865274932281,279575524974066486083,745534733264177296223,1988092622037806123262,5301580325434149662033,14137547534491065765421,37700126758642842041125,100533671356380912109667,268089790283682432292446,714906107423153152779856,1906416286461741740746285,5083776763897977975323426,13556738037061274600862471,36151301432163398935633256,96403470485769063828355351,257075921295384170208947603,685535790121024453890526942,1828095440322731877041405180,4874921174193951672110413815,12999789797850537792294436841,34666106127601434112785164911,92442949673603824300760439764,246514532462943531468694506037,657372086567849417249852016099,1752992230847598445999605376265,4674645948926929189332281003375,12465722530471811171552749342335,33241926747924829790807331579562,88645137994466212775486217545499,236387034651909900734629913454666,630365425738426401959013102545777,1680974468635803738557368273455405,4482598583028809969486315395881080,11953596221410159918630174389016215,31876256590427093116347131704043242,85003350907805581643592351210781979,226675602420814884382912936562085279,604468273122173025021101164165560744
mov $1,16
pow $1,$0
mov $2,6
pow $2,$0
div $1,$2
mov $0,$1
| 174.4
| 1,649
| 0.924312
|
3507d39dd9151573eb5ce46cd412cf2827c3114a
| 234,527
|
asm
|
Assembly
|
4.3.asm
|
Jon2G/ASMCalculator
|
f3181d12eae11f557965d43dfb48fecabecaef2e
|
[
"MIT"
] | null | null | null |
4.3.asm
|
Jon2G/ASMCalculator
|
f3181d12eae11f557965d43dfb48fecabecaef2e
|
[
"MIT"
] | null | null | null |
4.3.asm
|
Jon2G/ASMCalculator
|
f3181d12eae11f557965d43dfb48fecabecaef2e
|
[
"MIT"
] | null | null | null |
;-----------------------------------------------------------------------------------------------------------
;DECLARACION DE MACROS
;-----------------------------------------------------------------------------------------------------------
ENTRADA MACRO CARACTER ;Delcaracion de la Macro 'ENTRADA' con los parametros: CARACTER
;El proposito de esta macro es enviar a Al el caracter que
;esta apunto de entrar al display por medio del procedimiento
;ENTRADA_PROC (Actua como paso de parametros)
MOV Al,CARACTER ;Asigna el contenido de CARACTER a Al
CALL ENTRADA_PROC ;Llamada al procedimiento 'ENTRADA_PROC'
ENDM ;Fin de la Macro
;----------------------ERROR-----------------------
ERROR MACRO MENSAJE ;Delcaracion de la Macro 'ERROR' con los parametros: MENSAJE
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
mov ah,09h ;asigna 9 a ah (imprime cadena)
mov bl,0F4h ;fondo/texto
mov cx, 43h ;Asigna 43h a cx
LEA Dx,vacia_str ;asigna a Dx la direccion inicial desplazamiento de la variable 'vacia_str'
GotoXY 05h,02h ;mueve el cursor a las coordenadas (5,2)
int 10h ;Interrupcion 10h (Servicios de Pantalla)
int 21h ;Interrupcion 21h (funciones de el DOS API)
GotoXY 05h,03h ;mueve el cursor a las coordenadas (5,3)
int 10h ;Interrupcion 10h (Servicios de Pantalla)
LEA Dx,MENSAJE ;asigna a Dx la direccion inicial desplazamiento de la variable 'MENSAJE'
int 21h ;Interrupcion 21h (funciones de el DOS API)
PAUSA ;Llamada a la Macro PAUSA
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
ENDM ;Fin de la Macro
DISPLAY MACRO MENSAJE ;Delcaracion de la Macro 'DISPLAY' con los parametros: MENSAJE
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
mov ah,09h ;asigna 9 a ah (imprime cadena)
mov bl,0Ah ;Asigna 0Ah a bl
mov cx, 43h ;Asigna 43h a cx
LEA Dx,vacia_str ;asigna a Dx la direccion inicial desplazamiento de la variable 'vacia_str'
GotoXY 05h,02h ;mueve el cursor a las coordenadas (5,2)
int 10h ;Interrupcion 10h (Servicios de Pantalla)
int 21h ;Interrupcion 21h (funciones de el DOS API)
GotoXY 05h,03h ;mueve el cursor a las coordenadas (5,3)
int 10h ;Interrupcion 10h (Servicios de Pantalla)
;
GotoXY 05h,03h ;mueve el cursor a las coordenadas (5,3)
mov ah,09h ;asigna 9 a ah (imprime cadena)
LEA Dx,vacia_str ;asigna a Dx la direccion inicial desplazamiento de la variable 'vacia_str'
int 21h ;Interrupcion 21h (funciones de el DOS API)
GotoXY 05h,03h ;mueve el cursor a las coordenadas (5,3)
mov ah,09h ;asigna 9 a ah (imprime cadena)
;
LEA Dx,MENSAJE ;asigna a Dx la direccion inicial desplazamiento de la variable 'MENSAJE'
int 21h ;Interrupcion 21h (funciones de el DOS API)
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
ENDM ;Fin de la Macro
;---------------------PRINT CHAR-------------------
PRINT_CHAR MACRO CARACTER,pX,pY ;Delcaracion de la Macro 'PRINT_CHAR' con los parametros: CARACTER,pX,pY
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
;GOTOXY pX,pY ;mueve el cursor a las coordenadas (Px,Py)
;este segmento es solo para emu en bolrand se elimina
MOV Ah, 02h ;goto xy
MOV Bh, 00 ;Asigna el contenido de 00 a Bh
MOV dh, pY ;posicion del cursor en y
MOV dl, pX ;posicion del cursor en x
int 10h ;Interrupcion 10h (Servicios de Pantalla)
;fin solo para emu
MOV DL,CARACTER ;Asigna el contenido de CARACTER a DL
MOV AH,02 ;Asigna 02 a AH
INT 21H ;Interrupcion 21h (funciones de el DOS API)
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
ENDM ;Fin de la Macro
;----------------------COLOR-----------------------
COLOR MACRO ALTO,ANCHO,X,Y,C ;Delcaracion de la Macro 'COLOR' con los parametros: ALTO,ANCHO,X,Y,C
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
MOV DX,0000h ;Asigna 0000h a DX
MOV CX,0000h ;Asigna 0000h a CX
MOV CL,X ;posicion inicial en x
MOV CH,Y ;posicion inicial en y
;
MOV AL,X ;Asigna el contenido de X a AL
ADD AL,ANCHO ;Suma el valor de AL con el de ANCHO, el resultado queda en AL
MOV DL,AL ;posicion final en x
;
MOV AL,Y ;Asigna el contenido de Y a AL
ADD AL,ALTO ;Suma el valor de AL con el de ALTO, el resultado queda en AL
MOV DH,AL ;posicion final en y
MOV AH,06H ;Asigna 06H a AH
MOV AL,00H ;Asigna 00H a AL
MOV BH,C ;color de fondo y letra despues de borrar
INT 10H ;Interrupcion 10h (Servicios de Pantalla)
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
ENDM ;Fin de la Macro
;----------------------PAUSA-----------------------
PAUSA MACRO ;Delcaracion de la Macro 'PAUSA' con los parametros:
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
XOR AX,AX ;Resituye el registro AX a ceros por medio de XOR
INT 16h ;Interrupcion 16h (funciones de llamada al teclado)
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
ENDM ;Fin de la Macro
;______________________MACR_XY_____________________
GotoXY MACRO gx,gy ;Delcaracion de la Macro 'GotoXY' con los parametros: gx,gy
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
MOV Ah, 02h ;goto xy
MOV Bh, 00 ;Asigna el contenido de 00 a Bh
MOV dh, gy ;posicion del cursor en y
MOV dl, gx ;posicion del cursor en x
int 10h ;Interrupcion 10h (Servicios de Pantalla)
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
endm ;Fin de la Macro
;______________________MACR_SALVAR_____________________
;Guarda el estado actual de los registros de proposito general en la direccion
;de tabla indicada por el desplazamiento "registros_tbl
SalvaRegistros MACRO ;Delcaracion de la Macro 'SalvaRegistros' con los parametros:
MOV [registros_tbl],Ax ;Asigna el contenido de Ax a [registros_tbl]
MOV [registros_tbl+2h],Bx ;Asigna el contenido de Bx a [registros_tbl+2h]
MOV [registros_tbl+4h],Cx ;Asigna el contenido de Cx a [registros_tbl+4h]
MOV [registros_tbl+6h],Dx ;Asigna el contenido de Dx a [registros_tbl+6h]
endm ;Fin de la Macro
;______________________MACR_RECUPERAR_____________________
;Reestablece los registros de proposito general al ultimo estado
;en el que se salvaron en la direccion de tabla indicada por el desplazamiento "registros_tbl
RecuperaRegistros MACRO ;Delcaracion de la Macro 'RecuperaRegistros' con los parametros:
MOV Ax,[registros_tbl] ;Asigna el contenido de [registros_tbl] a Ax
MOV Bx,[registros_tbl+2h] ;Asigna el contenido de [registros_tbl+2h] a Bx
MOV Cx,[registros_tbl+4h] ;Asigna el contenido de [registros_tbl+4h] a Cx
MOV Dx,[registros_tbl+6h] ;Asigna el contenido de [registros_tbl+6h] a Dx
endm ;Fin de la Macro
;______________________MACR_RESTITUIR_____________________
;Restituye los registros Ax a Dx en ceros
RestituyeRegistros MACRO ;Delcaracion de la Macro 'RestituyeRegistros' con los parametros:
XOR AX,AX ;Resituye el registro AX a ceros por medio de XOR
XOR BX,BX ;Resituye el registro BX a ceros por medio de XOR
XOR CX,CX ;Resituye el registro CX a ceros por medio de XOR
XOR DX,DX ;Resituye el registro DX a ceros por medio de XOR
endm ;Fin de la Macro
;-----------------------------------------------------------------------------------------------------------
;Esta macro llama al procedimiento ImprimirXY que
;imprime una cadena en las coordendas dadas por X y Y
;el proposito de la macro es enviar los paramteros al procedimiento
;salvando y restaurando posteriormente el estado de los registros
Imprime MACRO cadena,X,Y ;Delcaracion de la Macro 'Imprime' con los parametros: cadena,X,Y
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
RestituyeRegistros ;Restituye los registros de prosito general en 0
MOV ch,X ;Asigna el contenido de X a ch
MOV cl,Y ;Asigna el contenido de Y a cl
LEA Bx,cadena ;asigna a Bx la direccion inicial desplazamiento de la variable 'cadena'
CALL ImprimirXY ;Llamada al procedimiento 'ImprimirXY'
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
endm ;Fin de la Macro
;
Marco MACRO alto,ancho,X,Y ;Delcaracion de la Macro 'Marco' con los parametros: alto,ancho,X,Y
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
mov [temp_tbl],alto ;Asigna el contenido de alto a [temp_tbl]
mov [temp_tbl+1],ancho ;Asigna el contenido de ancho a [temp_tbl+1]
mov [temp_tbl+2],X ;Asigna el contenido de X a [temp_tbl+2]
mov [temp_tbl+3],Y ;Asigna el contenido de Y a [temp_tbl+3]
RestituyeRegistros ;Restituye los registros de prosito general en 0
CALL MarcoXY ;Llamada al procedimiento 'MarcoXY'
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
endm ;Fin de la Macro
;
Linea MACRO longuitud,X,Y ;Delcaracion de la Macro 'Linea' con los parametros: longuitud,X,Y
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
mov [temp_tbl],longuitud ;Asigna el contenido de longuitud a [temp_tbl]
mov [temp_tbl+2h],X ;Asigna el contenido de X a [temp_tbl+2h]
mov [temp_tbl+4h],Y ;Asigna el contenido de Y a [temp_tbl+4h]
CALL LineaXY ;Llamada al procedimiento 'LineaXY'
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
endm ;Fin de la Macro
;FIN DE LAS MACROS
;-----------------------------------------------------------------------------------------------------------
.model small ;Directiva de inicio simplificada para el modelo de datos 'SMALL'
.stack ;Directiva de inicializacion de la pila simplificada
;INICIA SEGMENTO DE DATOS
;-----------------------------------------------------------------------------------------------------------
.data ;Directiva de inicializacion de el segmento de datos simplificado
resultado_str db 44h dup(0),"$" ;
posicion_pila dw 0000h ;
;VARIABLES PARA LEER LA ENTRADA
posicion_entrada dw 0000h ;
;-----------------------------------------------------------------------------------------------------------
renglones_pila db 00h ;cuenta los renglones de la pila de operaciones
aux db 00h ;variable auxiliar
registros_tbl dw 0000h,0000h,0000h,0000h ;guarda el estado previo de los registros
temp_tbl db 00h,00h,00h,00h ;actua como un segmento de datos extra temporal de un byte
caratula_str db" ______ _____ " ;Caratula del programa
db"_____ __ __ ______ ",13, ;
db" | ____|/ ____|" ;
db"_ _| \/ | ____|",13, ;
db" | |__ | (___ " ;
db" | | | \ / | |__",13, ;
db" | __| \___ \ " ;
db" | | | |\/| | __|",13, ;
db" | |____ ____) |" ;
db"_| |_| | | | |____ ",13, ;
db" |______|_____/|" ;
db"_____|_| |_|______|",13, ;
db" _____ _ _ _ _ _ _ " ;
db" _ _____ _ _ " ,13, ;
db" / ____| | | | | | | | | |" ;
db" | | /\ / ____| /\ | \ | |",13, ;
db" | | | | | | | | |__| | |" ;
db" | | / \ | | / \ | \| |",13, ;
db" | | | | | | | | __ | |" ;
db" | |/ /\ \| | / /\ \ | . ` |",13, ;
db" | |____| |__| | |____| | | | |" ;
db"__| / ____ | |____ / ____ \| |\ |",13, ;
db" \_____|\____/|______|_| |_|\_" ;
db"___/_/ \_\_____/_/ \_|_| \_|",13,13,13, ;
db" Proyecto: --> 'Calculadora' <--","$" ;
despedida_str db" _ _ _ _",13 ;Declaracion de mensaje de despedida
db" | | | | | | | |",13, ;
db" | |__| | __ _ ___| |_ __ _ | |_ _ ___ __ _ " ;
db"___ ",13, ;
db" | __ |/ _` / __| __/ _` | | | | | |/ _ \/ _` |/" ;
db" _ \",13, ;
db" | | | | (_| \__ | || (_| | | | |_| | __| (_| | " ;
db"(_) |",13, ;
db" |_| |_|\__,_|___/\__\__,_| |_|\__,_|\___|\__, |\" ;
db"___/",13, ;
db" __/ |",13, ;
db" |___/",13, ;
db" Proyecto: --> 'Calculadora' <--","$" ;
display_str db"Utilice las fechas y el teclado numerico para naveg" ;Declaracion de variable para el display
db"ar.",14 DUP(0),'$' ;
seleccion_invalida db">>>>>>>>>>>>>>>>>>>>>>>>>>ENTRADA INVALIDA<<<<<<<" ;
db"<<<<<<<<<<<<<<<<<<",07h,"$" ;
div_x_cero db">>>>>>>>>>>>>>>>>ERROR MATEMATICO DIVISION POR CE" ;Declaracion de mensaje por error division entre cero
db"RO<<<<<<<<<<<<<<<<",07h,"$" ;
Mas10_numeros db">>>>>DESBORADMIENTO INTERNO (NO PUEDE HABER MAS D" ;Declaracion de mensaje por desbordamiento de digitos
db"E 9 DIGITOS)<<<<<<",07h,"$" ;
sintax_error_msj db">>>>>>>>>>>>>>>>>>>>>>>>>>ERROR SINTACTICO<<<<<<<" ;Declaracion de mensaje por error de sintaxis
db"<<<<<<<<<<<<<<<<<<",07h,"$" ;
vacia_str db 67 DUP(0),'$' ;Cadena vacia
suma_Simbolo db " ",13, ;Texto para el boton 'Suma'
db " + ",13, ;
db "--> SUMA <--","$" ;
resta_Simbolo db " ",13, ;Texto para el boton 'Resta'
db " - ",13, ;
db "--> RESTA <--","$" ;
mul_Simbolo db " ",13, ;Texto para el boton 'Multiplica'
db " x ",13, ;
db "->MULTIPLICA<-","$" ;
div_Simbolo db " ",13, ;Texto para el boton 'Divide'
db " ",0F6h," ",13, ;
db "--> DIVIDE <--","$" ;
pila_operaciones db "Utilice las flechas y el teclado numerico", ;Declaracion de texto que aparecera en la memoria operacional
db "para navegar",13 ;
db "Para ingresar las operaciones digite el primer operando seguido de",13 ;
db "un operador y enseguida el segundo operando.",13 ;
db 67 DUP(0B0H),13 ;
db "Sus operaciones aparaceran aqui.",13 ;
db 67 DUP(0B0H),13 ;
db "Presione (Esc) en cualquier momento para salir.",13,"$" ;
sin_punto db 0h ;variable que nos indica que no debe imprimirse el punto decimal
;-----------------------------------------------------------------------------------------------------------
;OPERANDOS PARA LA SUMA Y RESTA ;
num1 db 0Ah dup(0),'$' ;
decimales_1 db 0Ah dup(0),'$' ;
num2 db 0Ah dup(0),'$' ;
decimales_2 db 0Ah dup(0),'$' ;
num_res db 14h dup(0),'$' ;
decimales_Res db 14h dup(0),'$' ;
ajuste_decimales_1 db 0Ah dup(0),'$' ;
ajuste_decimales_2 db 0Ah dup(0),'$' ;
Acarreo_ParaEntero db 0 ;
operacion db 0h ;ALMACENA LA OPERACION INVOCADA DESPUES DEL AJUSTE PRE-OPERACIONAL
hay_acarreo db 00h ;
;-----------------------------------------------------------------------------------------------------------
;OPERANDOS PARA LA DIVISION ;
num_res_div db 0Ah dup(0),'$' ;
decimales_Res_div db 0Ah dup(0),'$' ;
resultado_entero_div db 01h ;
es_negativo_resuido_div db 00h ;
indefinida db 'Indeterminado' ;
dividi_una_vez db 00h ;
;-----------------------------------------------------------------------------------------------------------
;OPERANDOS PARA LA MULTIPLICACION
num_1_mul db 0,0,0,0,0,0,0,0,0 ;
decimal_1_mul db 0,0,0,0,0,0,0,0,0 ;
num_2_mul db 0,0,0,0,0,0,0,0,0 ;
decimal_2_mul db 0,0,0,0,0,0,0,0,0 ;
num_res_mul db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;
decimal_res_mul db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;
acarreo db 0 ;
;-----------------------------------------------------------------------------------------------------------
;VARIABLES PARA LA LEY DE LOS SIGNOS
num1_signo db 00h ;
num2_signo db 00h ;
es_negativo_res db 00h ;
;-----------------------------------------------------------------------------------------------------------
;VARIABLES PARA LA INTERACCION CON EL MOUSE Y TECLADO
curX dw 0 ;
curY dw 0 ;
seleccion db 00h ;
;-----------------------------------------------------------------------------------------------------------
.code ;Directiva simplificada de inicio del segmento de Codigo
;_________________________________________PROCEDIMIENTO PRINCIPAL_________________________________________
begin proc FAR ;Inicia procedimiento principal
MOV Ax, @data ;Asigna el contenido de @data a Ax
MOV ds, Ax ;Asigna el contenido de Ax a ds
;INICIA
Call Cls ;Llamada al procedimiento 'Cls'
Call Caratula ;Llamada al procedimiento 'Caratula'
mov posicion_pila,00h ;Asigna 00h a posicion_pila
Call Interfaz ;Llamada al procedimiento 'Interfaz'
;FIN
MOV Ah,4ch ;Asigna 4ch a Ah
int 21h ;Interrupcion 21h (funciones de el DOS API)
SALIR: ;Etiqueta 'SALIR'
MOV Ah,4ch ;Asigna 4ch a Ah
int 21h ;Interrupcion 21h (funciones de el DOS API)
begin endp ;Fin del procedimiento
;______________________PROCEDIMIENTOS______________________
;______________________PROC_INTERFAZ________________
Interfaz proc near ;Inicia prodecimiento cercano 'Interfaz'
inicio_Interfaz: ;Etiqueta 'inicio_Interfaz'
RestituyeRegistros ;Restituye los registros de prosito general en 0
Call Cls ;Llamada al procedimiento 'Cls'
Marco 0Fh,45h,04h,01h ;dibuja el marco principal de la calculadora
DISPLAY display_str ;Llamada a la Macro DISPLAY con los parametros : display_str
Marco 03h,45h,04h,01h ;dibuja el display de la calculadora
;---------BOTONES--------------------------------
;-->dibujar cuadro para la suma
CMP seleccion,00h ;Compara seleccion con 00h
JNE no_0 ;Salta si no es igual a la etiqueta 'no_0'
COLOR 04h,0Eh,06h,05h,0A9h ;Llamada a la Macro COLOR con los parametros : 04h,0Eh,06h,05h,0A9h
no_0: ;Etiqueta 'no_0'
Imprime suma_Simbolo,06h,06h ;imprime el contenido de la cadena suma_simbolo en las
Marco 04h,0Eh,06h,05h ;coordenadas especificadas
;-->dibujar cuadro para la resta
CMP seleccion,01h ;Compara seleccion con 01h
JNE no_1 ;Salta si no es igual a la etiqueta 'no_1'
COLOR 04h,0Eh,16h,05h,0A9h ;Llamada a la Macro COLOR con los parametros : 04h,0Eh,16h,05h,0A9h
no_1: ;Etiqueta 'no_1'
Imprime resta_Simbolo,16h,06h ;imprime el contenido de la cadena suma_simbolo en las
Marco 04h,0Eh,16h,05h ;coordenadas especificadas
;llama a la macro marco
;-->dibujar cuadro para la multiplicacion
CMP seleccion,02h ;Compara seleccion con 02h
JNE no_2 ;Salta si no es igual a la etiqueta 'no_2'
COLOR 04h,0Fh,026h,05h,0A9h ;Llamada a la Macro COLOR con los parametros : 04h,0Fh,026h,05h,0A9h
no_2: ;Etiqueta 'no_2'
Imprime mul_Simbolo,026h,06h ;imprime el contenido de la cadena suma_simbolo en las
Marco 04h,0Fh,026h,05h ;coordenadas especificadas
;-->dibujar cuadro para la division
CMP seleccion,03h ;Compara seleccion con 03h
JNE no_3 ;Salta si no es igual a la etiqueta 'no_3'
COLOR 04h,0Fh,037h,05h,0A9h ;Llamada a la Macro COLOR con los parametros : 04h,0Fh,037h,05h,0A9h
no_3: ;Etiqueta 'no_3'
Imprime div_Simbolo,037h,06h ;imprime el contenido de la cadena suma_simbolo en las
Marco 04h,0Fh,037h,05h ;coordenadas especificadas
;--------PANEL NUMERICO--------------------
RestituyeRegistros ;Restituye los registros de prosito general en 0
MOV aux,01H ;ASIGNA 1 a aux (variable auxiliar que sirve como contador)
pnl_imprime: ;Etiqueta 'pnl_imprime'
MOV AL,06H ;Asigna 6 a Al (posicion inicial en x de los cuadros)
MUL aux ;Multiplica aux*Al para obtener la siguiente posicion de x
ADD aux,03h ;aumenta aux en 3 para obtener el valor de la seleccion de el cuadro actual
MOV Dl,aux ;mueve el valor del cuadro actual a Dl para compararlo
SUB aux,03h ;resta aux para no afectar al contador
CMP seleccion,Dl ;compara el valor de la seleccion con el valor del cuadro actual
JNE no_colorees ;salta si el cuadro no es la seleccion actual
COLOR 04h,04h,AL,0Ah,0A9h ;Dibuja un cuadro de color verde el la posicion de Al y 0Ah
no_colorees: ;Etiqueta 'no_colorees'
MOV Cl,30h ;Asigna 30h a Cl (caracter inicial 0)
ADD CL,aux ;Suma 1 a Cl para obtener el siguiente numero
ADD AL,02h ;Suma 2 a Al para obtener la posicion en x de el numero
DEC CL ;Decrementa Cl para que los numeros empiezen en 0
PRINT_CHAR Cl,Al,0Ch ;Imprime el numero Cl en la posicion de Al y 0Ch
SUB Al,02h ;Resta 02h a Al para obtener la posicion inical de el cuadro en x de modo que coincida con el cuadro de color
Marco 04h,04h,Al,0Ah ;Dibuja un marco de 4x4 en la posicion Al,0Ah
INC aux ;incrementa aux (contador) en 1
CMP aux,0Ch ;compara aux==12
JE pnl_end ; salta al fin si aux==12
JMP pnl_imprime ;salta a imprimir el siguiente cuadro si aux!=12
pnl_end: ;etiqueta para salir
;-->dibujar el signo =
PRINT_CHAR 3Dh,44h,0Ch ;como se imprimio el caracter ':' debemos reemplazarlo por '='
;--------PILA DE OPERACIONES------------------------
;here
;inicio_Interfaz:
Marco 08h,45h,04h,10h ;Llamada a la Macro Marco con los parametros : 08h,45h,04h,10h
imprime pila_operaciones,05h,11h ;Llamada a la Macro imprime con los parametros : pila_operaciones,05h,11h
;--------ESQUINAS DE LOS CUADROS--------------------
PRINT_CHAR 0CCh,04h,04h ;esquina superior izquierda
PRINT_CHAR 0CCh,04h,10h ;esquina media izquierda
PRINT_CHAR 0B9h,49h,04h ;esquina superior derecha
PRINT_CHAR 0B9h,49h,10h ;esquina media derecha
RestituyeRegistros ;Restituye los registros de prosito general en 0
CALL MOUSE ;Llamada al procedimiento 'MOUSE'
nuevo_click: ;Etiqueta 'nuevo_click'
;--------Leer flechas y cambiar seleccion-----------;
CMP AX,4D00h ;si se presiono derecha
JE Derecha ;salta a la etiqueta Derecha
CMP AX,4B00h ;si se presiono izquierda
JE Izquierda ;salta a la etiqueta Izquierda
CMP AX,4800h ;Compara AX con 4800h
JE Arriba ;Salta si es igual a la etiqueta 'Arriba'
CMP AX,5000h ;Compara AX con 5000h
JE Abajo ;Salta si es igual a la etiqueta 'Abajo'
CMP AX,01C0Dh ;Compara AX con 01C0Dh
JE Enter_ ;Salta si es igual a la etiqueta 'Enter_'
CMP AX,0E08h ;Compara AX con 0E08h
JNE no_retroceso ;Salta si no es igual a la etiqueta 'no_retroceso'
JMP entra ;Salta a la etiqueta 'entra'
no_retroceso: ;Etiqueta 'no_retroceso'
CMP AX,5239h ;Compara AX con 5239h
JLE NUM_01 ;Salta a la etiqueta 'NUM_01' si es menor o igual
CMP AX,532Eh ;Compara AX con 532Eh
JE NUM_01 ;Salta si es igual a la etiqueta 'NUM_01'
JMP Invalida ;salta a la etiqueta Invalida
Derecha: ;Etiqueta 'Derecha'
INC seleccion ;Incrementa en uno el valor de seleccion
CMP seleccion,04h ;si la seleccion es igual a 4
JE Bajar ;Salta a la etiqueta bajar
CMP seleccion,0Fh ;si la seleccion es igual a 15
JE Subir ;Salta a la etiqueta subir
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Izquierda: ;Etiqueta 'Izquierda'
DEC seleccion ;Decrementa en uno el valor de seleccion
CMP seleccion,0FFh ;si la seleccion es negativa
JE Ultimo ;Salta a la etiqueta ultimo
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Arriba: ;Etiqueta 'Arriba'
CMP seleccion,03h ;Compara seleccion con 03h
JLE Abajo ;Salta a la etiqueta 'Abajo' si es menor o igual
CMP seleccion,06h ;Compara seleccion con 06h
JLE Subir ;Salta a la etiqueta 'Subir' si es menor o igual
CMP seleccion,09h ;Compara seleccion con 09h
JLE RestaBtn ;Salta a la etiqueta 'RestaBtn' si es menor o igual
CMP seleccion,0Ch ;Compara seleccion con 0Ch
JLE MulBtn ;Salta a la etiqueta 'MulBtn' si es menor o igual
CMP seleccion,0Fh ;si la seleccion es igual a 15
JLE DivBtn ;Salta a la etiqueta 'DivBtn' si es menor o igual
JMP Abajo ;Salta a la etiqueta 'Abajo'
NUM_01: ;Etiqueta 'NUM_01'
JMP NUM ;Salta a la etiqueta 'NUM'
Abajo: ;Etiqueta 'Abajo'
CMP seleccion,00h ;Compara seleccion con 00h
JLE Btn1 ;Salta a la etiqueta 'Btn1' si es menor o igual
CMP seleccion,01h ;Compara seleccion con 01h
JLE Btn3 ;Salta a la etiqueta 'Btn3' si es menor o igual
CMP seleccion,02h ;Compara seleccion con 02h
JLE Btn6 ;Salta a la etiqueta 'Btn6' si es menor o igual
CMP seleccion,03h ;Compara seleccion con 03h
JLE Btn9 ;Salta a la etiqueta 'Btn9' si es menor o igual
JMP Arriba ;Salta a la etiqueta 'Arriba'
Enter_: ;Etiqueta 'Enter_'
CMP seleccion,00h ;Compara seleccion con 00h
JE MAS ;Salta si es igual a la etiqueta 'MAS'
CMP seleccion,01h ;Compara seleccion con 01h
JE MENOS ;Salta si es igual a la etiqueta 'MENOS'
CMP seleccion,02h ;Compara seleccion con 02h
JE POR ;Salta si es igual a la etiqueta 'POR'
CMP seleccion,03h ;Compara seleccion con 03h
JE ENTRE ;Salta si es igual a la etiqueta 'ENTRE'
JNE NUM ;Salta si no es igual a la etiqueta 'NUM'
Bajar: ;Etiqueta 'Bajar'
MOV seleccion,04h ;asigna 4 a la seleccion (valor del primer boton de la segunda fila)
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Subir: ;Etiqueta 'Subir'
MOV seleccion,00h ;asigna 0 a la seleccion (valor del primer boton de la primer fila)
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Ultimo: ;Etiqueta 'Ultimo'
MOV seleccion,0Eh ;Asigna 0Eh a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
RestaBtn: ;Etiqueta 'RestaBtn'
MOV seleccion,01h ;Asigna 01h a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
MulBtn: ;Etiqueta 'MulBtn'
MOV seleccion,02h ;Asigna 02h a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
DivBtn: ;Etiqueta 'DivBtn'
MOV seleccion,03h ;Asigna 03h a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Btn1: ;Etiqueta 'Btn1'
MOV seleccion,05h ;Asigna 05h a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Btn3: ;Etiqueta 'Btn3'
MOV seleccion,07h ;Asigna 07h a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Btn6: ;Etiqueta 'Btn6'
MOV seleccion,0Ah ;Asigna 0Ah a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Btn9: ;Etiqueta 'Btn9'
MOV seleccion,0Dh ;Asigna 0Dh a seleccion
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
MAS: ;Etiqueta 'MAS'
MOV aux,'+' ;Asigna el contenido de '+' a aux
JMP entra ;Salta a la etiqueta 'entra'
MENOS: ;Etiqueta 'MENOS'
MOV aux,'-' ;Asigna el contenido de '-' a aux
JMP entra ;Salta a la etiqueta 'entra'
POR: ;Etiqueta 'POR'
MOV aux,'x' ;Asigna el contenido de 'x' a aux
JMP entra ;Salta a la etiqueta 'entra'
ENTRE: ;Etiqueta 'ENTRE'
MOV aux,0F6h ;Asigna 0F6h a aux
JMP entra ;Salta a la etiqueta 'entra'
NUM: ;Etiqueta 'NUM'
MOV Dl,seleccion ;Asigna el contenido de seleccion a Dl
SUB Dl,04h ;Resta 04h a Dl
ADD Dl,30h ;AGREGA 30h a Dl
MOV aux,Dl ;Asigna el contenido de Dl a aux
CMP AL,2Bh ;Compara AL con 2Bh
JE MAS ;Salta si es igual a la etiqueta 'MAS'
CMP AL,2Dh ;Compara AL con 2Dh
JE MENOS ;Salta si es igual a la etiqueta 'MENOS'
CMP AL,2Fh ;Compara AL con 2Fh
JE ENTRE ;Salta si es igual a la etiqueta 'ENTRE'
CMP AL,2Ah ;Compara AL con 2Ah
JE POR ;Salta si es igual a la etiqueta 'POR'
CMP AX,1C0Dh ;Compara AX con 1C0Dh
JE entra ;Salta si es igual a la etiqueta 'entra'
CMP Al,39h ;Compara Al con 39h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,38h ;Compara Al con 38h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,37h ;Compara Al con 37h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,36h ;Compara Al con 36h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,35h ;Compara Al con 35h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,34h ;Compara Al con 34h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,33h ;Compara Al con 33h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,32h ;Compara Al con 32h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,31h ;Compara Al con 31h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP Al,30h ;Compara Al con 30h
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
CMP AX,0B3Dh ;si se presiono la telca shif+=
JE num_igual ;Salta si es igual a la etiqueta 'num_igual'
CMP Al,2Eh ;si se presiono la telca . (izquierdo)
JE num_tecla ;Salta si es igual a la etiqueta 'num_tecla'
JMP Invalida ;salta a la etiqueta Invalida
num_tecla: ;Etiqueta 'num_tecla'
MOV aux,Al ;Asigna el contenido de Al a aux
JMP entra ;Salta a la etiqueta 'entra'
num_igual: ;Etiqueta 'num_igual'
MOV aux,03Ah ;Asigna 03Ah a aux
JMP entra ;Salta a la etiqueta 'entra'
entra: ;Etiqueta 'entra'
ENTRADA Aux ;Llamada a la Macro ENTRADA con los parametros : Aux
DISPLAY display_str ;Llamada a la Macro DISPLAY con los parametros : display_str
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
Invalida: ;Etiqueta 'Invalida'
CMP AX,0E08h ;Compara AX con 0E08h
JNE inv_ ;Salta si no es igual a la etiqueta 'inv_'
JMP entra ;Salta a la etiqueta 'entra'
inv_: ;Etiqueta 'inv_'
CMP Ax,011Bh ;SI Al es la tecla ESC
JNE Invalida_Interfaz ;Salta si no es igual a la etiqueta 'Invalida_Interfaz'
Call Adios ;termina el programa
Invalida_Interfaz: ;Etiqueta 'Invalida_Interfaz'
ERROR seleccion_invalida ;Llamada a la Macro ERROR con los parametros : seleccion_invalida
JMP inicio_Interfaz ;salta al inicio de la interfaz (recarga)
RestituyeRegistros ;Restituye los registros de prosito general en 0
RET ;Retorna el control a la direccion de el SP desde donde se llamo
Interfaz endp ;Fin del procedimiento
LineaXY proc near ;Inicia prodecimiento cercano 'LineaXY'
MOV Dl,0CDh ;Asigna 0CDh a Dl
MOV Cl,[temp_tbl] ;Asigna el contenido de [temp_tbl] a Cl
MOV Ah,02h ;Asigna 02h a Ah
Impr_linea: ;Etiqueta 'Impr_linea'
GotoXY [temp_tbl+2h],[temp_tbl+4h] ;mueve el cursor a las coordenadas ([temp_tbl+2h],[temp_tbl+4h])
int 21h ;Interrupcion 21h (funciones de el DOS API)
inc [temp_tbl+2h] ;Incrementa en uno el valor de [temp_tbl+2h]
Loop Impr_linea ;Salta a la etiqueta 'Impr_linea' y decrementa CX mientras no sea cero
RET ;Retorna el control a la direccion de el SP desde donde se llamo
LineaXY endp ;Fin del procedimiento
;______________________PROC_ImprimirXY (solo debe ser llamado por macro imprimir)________________
ImprimirXY proc near ;Inicia prodecimiento cercano 'ImprimirXY'
GotoXY ch,cl ;mueve el cursor a las coordenadas (ch,cl)
MOV DI,0FFFFh ;Asigna 0FFFFh a DI
MOV Ah,02 ;Asigna 02 a Ah
Impr_siguiente: ;Etiqueta 'Impr_siguiente'
INC DI ;Incrementa en uno el valor de DI
MOV DL,[Bx+DI] ;Asigna el contenido de [Bx+DI] a DL
CMP DL,13d ;Compara DL con 13d
JE NuevaLinea ;Salta si es igual a la etiqueta 'NuevaLinea'
CMP DL,'$' ;Compara DL con '$'
JE Impr_salir ;Salta si es igual a la etiqueta 'Impr_salir'
int 21h ;Interrupcion 21h (funciones de el DOS API)
JMP Impr_siguiente ;Salta a la etiqueta 'Impr_siguiente'
NuevaLinea: ;Etiqueta 'NuevaLinea'
inc cl ;Incrementa en uno el valor de cl
MOV dh,cl ;Asigna el contenido de cl a dh
GotoXY ch,cl ;mueve el cursor a las coordenadas (ch,cl)
JMP Impr_siguiente ;Salta a la etiqueta 'Impr_siguiente'
Impr_salir: ;Etiqueta 'Impr_salir'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
ImprimirXY endp ;Fin del procedimiento
;______________________CLS_PROC______________________
Cls proc near ;Inicia prodecimiento cercano 'Cls'
MOV ch, 32 ;asigna 32 a ch (oculta buffer del cursor)
MOV Ah, 1 ;instruccion 1 de la int 10
int 10h ;Interrupcion 10h (Servicios de Pantalla)
MOV Ah, 06h ;limpia la pantalla
MOV al, 00h ;coordenas de inicio en x
MOV Bh, 0F1h ;F:Color Blanco(Fondo),1:Azul(Texto)
MOV Cx, 0000h ;coordenas de inicio en y
MOV Dx, 184Fh ;tama�o de la pantalla ()
int 10h ;Interrupcion 10h (Servicios de Pantalla)
RET ;Retorna el control a la direccion de el SP desde donde se llamo
Cls endp ;Fin del procedimiento
;______________________MarcoXY solo llamado por la Macro Marco______________________
MarcoXY proc near ;Inicia prodecimiento cercano 'MarcoXY'
GotoXY [temp_tbl+2h],[temp_tbl+3h] ;mueve el cursor a las coordenadas especificadas
MOV dl,0C9h ;asina a dl en primer caracter (esquina izquierda)
MOV Ah,02 ;Asigna 02 a Ah
int 21h ;Interrupcion 21h (funciones de el DOS API)
MOV Cl,[temp_tbl+1h] ;asigna a Cl el ancho del cuadro
DEC Cl ;decrementa Cl para obtener el valor real de el ancho
MOV dl,0CDh ;asigna a dl el segundo caracter (linea)
Car_filaArr: ;Etiqueta 'Car_filaArr'
int 21h ;Interrupcion 21h (funciones de el DOS API)
Loop Car_filaArr ;Salta a la etiqueta 'Car_filaArr' y decrementa CX mientras no sea cero
MOV dl,0BBh ;asigna a dl el segundo caracter (esquina derecha)
int 21h ;Interrupcion 21h (funciones de el DOS API)
MOV Al,[temp_tbl+3h] ;mueve a al el valor de la coordenada en Y
ADD Al,[temp_tbl] ;suma (Y+alto) para obtener la posicion de la esquina inferior izquierda
GotoXY [temp_tbl+2h],Al ;mueve el cursor a las coordenadas especificadas
MOV dl,0C8h ;asina a dl el caracter (esquina izquierda)
int 21h ;Interrupcion 21h (funciones de el DOS API)
MOV Cl,[temp_tbl+1h] ;asigna a Cl el ancho del cuadro
DEC Cl ;decrementa Cl para obtener el valor real de el ancho
MOV dl,0CDh ;asigna a dl el segundo caracter (linea)
Car_filaAba: ;Etiqueta 'Car_filaAba'
int 21h ;Interrupcion 21h (funciones de el DOS API)
Loop Car_filaAba ;Salta a la etiqueta 'Car_filaAba' y decrementa CX mientras no sea cero
MOV dl,0BCh ;asigna a dl el caracter (esquina inferior derecha)
int 21h ;Interrupcion 21h (funciones de el DOS API)
MOV DL,0BAh ;asigna a dl el caracter (columna)
MOV Bl,[temp_tbl+3h] ;mueve a Bl el valor de la coordenada en Y
INC Bl ;incrementa al para saltar la esquina superior
MOV Cl,[temp_tbl] ;Asigna el contenido de [temp_tbl] a Cl
DEC Cl ;decrementa Cl para obtener el valor real de el ancho
Car_columnaIzq: ;Etiqueta 'Car_columnaIzq'
GotoXY [temp_tbl+2h],Bl ;mueve el cursor a las coordenadas especificadas
int 21h ;Interrupcion 21h (funciones de el DOS API)
Inc Bl ;incrementa Bl para bajar una posicion en Y
Loop Car_columnaIzq ;salta mientras Cl no sea 0
MOV Al,[temp_tbl+2h] ;asigna a Al el valor de X
ADD Al,[temp_tbl+1h] ;suma (x+ancho) para obtener el ancho del marco
MOV [temp_tbl+2h],Al ;mueve a X el valor del ancho del marco
MOV Bl,[temp_tbl+3h] ;mueve a Bl el valor de la coordenada en Y
INC Bl ;incrementa al para saltar la esquina superior
MOV Cl,[temp_tbl] ;Asigna el contenido de [temp_tbl] a Cl
DEC Cl ;decrementa Cl para obtener el valor real de el ancho
MOV DL,0BAh ;asigna a dl el caracter (columna)
Car_columnaDer: ;Etiqueta 'Car_columnaDer'
GotoXY [temp_tbl+2h],Bl ;mueve el cursor a las coordenadas especificadas
int 21h ;Interrupcion 21h (funciones de el DOS API)
INC Bl ;incrementa al para saltar la esquina superior
Loop Car_columnaDer ;Salta a la etiqueta 'Car_columnaDer' y decrementa CX mientras no sea cero
RET ;Retorna el control a la direccion de el SP desde donde se llamo
MarcoXY endp ;Fin del procedimiento
;______________________PROC_CARATULA________________
Caratula proc near ;Inicia prodecimiento cercano 'Caratula'
Call Cls ;Llamada al procedimiento 'Cls'
Marco 16h,4Eh,0h,1h ;Llamada a la Macro Marco con los parametros : 16h,4Eh,0h,1h
Imprime caratula_str,02h,02H ;Llamada a la Macro Imprime con los parametros : caratula_str,02h,02H
XOR Ax,Ax ;Resituye el registro Ax a ceros por medio de XOR
int 16h ;Interrupcion 16h (funciones de llamada al teclado)
RET ;Retorna el control a la direccion de el SP desde donde se llamo
Caratula endp ;Fin del procedimiento
;______________________PROC_Adios________________
Adios proc near ;Inicia prodecimiento cercano 'Adios'
Call Cls ;Llamada al procedimiento 'Cls'
Marco 16h,4Eh,0h,1h ;Llamada a la Macro Marco con los parametros : 16h,4Eh,0h,1h
Imprime despedida_str,02h,02H ;Llamada a la Macro Imprime con los parametros : despedida_str,02h,02H
GotoXY 0h,017h ;Llamada a la Macro GotoXY con los parametros : 0h,017h
MOV AH,4CH ;Asigna 4CH a AH
INT 21H ;Interrupcion 21h (funciones de el DOS API)
RET ;Retorna el control a la direccion de el SP desde donde se llamo
Adios endp ;Fin del procedimiento
;______________________PROC_Resolver________________
RESOLVER proc near ;Inicia prodecimiento cercano 'RESOLVER'
CALL AJUSTA_OPERANDOS ;Llamada al procedimiento 'AJUSTA_OPERANDOS'
CMP operacion,'+' ;Compara operacion con '+'
JE Suma_Op ;Salta si es igual a la etiqueta 'Suma_Op'
CMP operacion,'-' ;Compara operacion con '-'
JE Resta_Op ;Salta si es igual a la etiqueta 'Resta_Op'
CMP operacion,'x' ;Compara operacion con 'x'
JE Multiplicacion_Op ;Salta si es igual a la etiqueta 'Multiplicacion_Op'
CMP operacion,0F6h ;Compara operacion con 0F6h
JE Division_Op ;Salta si es igual a la etiqueta 'Division_Op'
JMP Agrega_pila ;Salta a la etiqueta 'Agrega_pila'
Suma_Op: ;Etiqueta 'Suma_Op'
CALL SUMA ;Llamada al procedimiento 'SUMA'
JMP Agrega_pila ;Salta a la etiqueta 'Agrega_pila'
Resta_Op: ;Etiqueta 'Resta_Op'
CALL RESTA ;Llamada al procedimiento 'RESTA'
JMP Agrega_pila ;Salta a la etiqueta 'Agrega_pila'
Multiplicacion_Op: ;Etiqueta 'Multiplicacion_Op'
CALL MULTIPLICA ;Llamada al procedimiento 'MULTIPLICA'
JMP Agrega_pila ;Salta a la etiqueta 'Agrega_pila'
Division_Op: ;Etiqueta 'Division_Op'
CALL DIVIDE ;Llamada al procedimiento 'DIVIDE'
JMP Agrega_pila ;Salta a la etiqueta 'Agrega_pila'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ENVIAR A LA PILA LA OPERACION
Agrega_pila: ;Etiqueta 'Agrega_pila'
cmp renglones_pila,07h ;Compara renglones_pila con 07h
JAE reinicia_pila ;Salta a la etiqueta 'reinicia_pila' si es mayor o igual
JMP continuar ;Salta a la etiqueta 'continuar'
reinicia_pila: ;Etiqueta 'reinicia_pila'
mov renglones_pila,00h ;Asigna 00h a renglones_pila
mov posicion_pila,00h ;Asigna 00h a posicion_pila
continuar: ;Etiqueta 'continuar'
;;Envia la ultima operacion a la pila de operaciones
MOV SI,0000h ;Asigna 0000h a SI
mov DI,posicion_pila ;Asigna el contenido de posicion_pila a DI
agregar_operacion: ;Etiqueta 'agregar_operacion'
MOV AL,display_str[SI] ;Asigna el contenido de display_str[SI] a AL
CMP AL,'$' ;Compara AL con '$'
JE agregar_resultado ;Salta si es igual a la etiqueta 'agregar_resultado'
MOV pila_operaciones[DI],AL ;Asigna el contenido de AL a pila_operaciones[DI]
INC SI ;Incrementa en uno el valor de SI
INC DI ;Incrementa en uno el valor de DI
JMP agregar_operacion ;Salta a la etiqueta 'agregar_operacion'
agregar_resultado: ;Etiqueta 'agregar_resultado'
MOV pila_operaciones[DI],'=' ;Asigna el contenido de '=' a pila_operaciones[DI]
MOV SI,0000h ;Asigna 0000h a SI
copy_result_str: ;Etiqueta 'copy_result_str'
;;RESULTADO DESPUES DE SIGNO =
MOV AL,resultado_str[SI] ;Asigna el contenido de resultado_str[SI] a AL
INC SI ;Incrementa en uno el valor de SI
CMP AL,07h ;Compara AL con 07h
JNE add_restdo ;Salta si no es igual a la etiqueta 'add_restdo'
JMP copy_result_str ;Salta a la etiqueta 'copy_result_str'
add_restdo: ;Etiqueta 'add_restdo'
CMP AL,'$' ;Compara AL con '$'
JE fin_add_restdo ;Salta si es igual a la etiqueta 'fin_add_restdo'
INC DI ;Incrementa en uno el valor de DI
MOV pila_operaciones[DI],AL ;Asigna el contenido de AL a pila_operaciones[DI]
JMP copy_result_str ;Salta a la etiqueta 'copy_result_str'
fin_add_restdo: ;Etiqueta 'fin_add_restdo'
;;agrega el salto de linea en la pila
INC DI ;Incrementa en uno el valor de DI
MOV pila_operaciones[DI],13d ;Asigna 13d a pila_operaciones[DI]
INC DI ;Incrementa en uno el valor de DI
mov posicion_pila,DI ;Asigna el contenido de DI a posicion_pila
mov pila_operaciones[DI],'$' ;Asigna el contenido de '$' a pila_operaciones[DI]
inc renglones_pila ;
;;Fin Envia
vacia: ;limpiar el display
MOV display_str[0],'$' ;corta la cadena del display
MOV posicion_entrada,0h ;establece la posicion de la cadena display en cero
RET ;Retorna el control a la direccion de el SP desde donde se llamo
Resolver endp ;Fin del procedimiento
;______________________PROC_AJUSTE_PRE_OPERACIONAL________________
AJUSTA_OPERANDOS PROC NEAR ;Inicia prodecimiento cercano 'AJUSTA_OPERANDOS'
;en este procedimiento aux contiene el numero que estamos procesando
;0 para el numero_1 y 1 para el numero_2
MOV aux,00h ;lo iniciamos en 0 para el primer operando
MOV operacion,00h ;Asigna 00h a operacion
;LEER LA OPERACION
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;LEER LA OPERACION DESDE EL PRIMER DIGITO MAS A LA IZQUIERDA
MOV SI,00h ;Asigna 00h a SI
siguiente_caracter_de_entrada: ;Etiqueta 'siguiente_caracter_de_entrada'
MOV AL,display_str[SI] ;Asigna el contenido de display_str[SI] a AL
CMP Al,'-' ;Compara Al con '-'
JE signo_negativo_detectado ;Salta si es igual a la etiqueta 'signo_negativo_detectado'
CMP Al,'+' ;Compara Al con '+'
JE signo_positivo_detectado ;Salta si es igual a la etiqueta 'signo_positivo_detectado'
CMP Al,'x' ;Compara Al con 'x'
JE operador_detectado ;Salta si es igual a la etiqueta 'operador_detectado'
CMP Al,0F6h ;Compara Al con 0F6h
JE operador_detectado ;Salta si es igual a la etiqueta 'operador_detectado'
JMP numero ;Salta a la etiqueta 'numero'
signo_negativo_detectado: ;Etiqueta 'signo_negativo_detectado'
CMP aux,00h ;si aux es 1 estamos procesando los signos del primer operando
JNE segundo_operando_negativo ;de lo contrario estamos procesando el signo de el segundo operando
XOR num1_signo, 01b ;Aplica la operacion XOR con num1_signo y 01b
JMP continue ;Salta a la etiqueta 'continue'
segundo_operando_negativo: ;Etiqueta 'segundo_operando_negativo'
XOR num2_signo, 01b ;Aplica la operacion XOR con num2_signo y 01b
signo_positivo_detectado: ;Etiqueta 'signo_positivo_detectado'
CMP aux,00h ;si aux es 1 estamos procesando los signos del primer operando
JNE posible_operacional_suma ;Salta si no es igual a la etiqueta 'posible_operacional_suma'
;si no se toma como signo operacional si es que no existe alguno de mayor jerarquia
; como (*,/,-)
JMP continue ;Salta a la etiqueta 'continue'
operador_detectado: ;Etiqueta 'operador_detectado'
; si hay un doble operador
CMP operacion,'x' ;Compara operacion con 'x'
JE sintaxs_error_jmp ;Salta si es igual a la etiqueta 'sintaxs_error_jmp'
CMP operacion,0F6h ;Compara operacion con 0F6h
JE sintaxs_error_jmp ;Salta si es igual a la etiqueta 'sintaxs_error_jmp'
CMP aux,00h ;si aux es 1 estamos procesando los signos del primer operando
JE sintaxs_error_jmp ;Salta si es igual a la etiqueta 'sintaxs_error_jmp'
MOV operacion,Al ;Asigna el contenido de Al a operacion
;
JMP continue ;Salta a la etiqueta 'continue'
posible_operacional_suma: ;Etiqueta 'posible_operacional_suma'
CMP operacion,'x' ;Compara operacion con 'x'
JE continue ;Salta si es igual a la etiqueta 'continue'
CMP operacion,'-' ;Compara operacion con '-'
JE continue ;Salta si es igual a la etiqueta 'continue'
CMP operacion,0F6h ;Compara operacion con 0F6h
JE continue ;Salta si es igual a la etiqueta 'continue'
;solo se asigna el operador suma si no existe uno de mayor jerarquia de lo contrario
;el signo mas se considera un indicador de signo
MOV operacion,'+' ;Asigna el contenido de '+' a operacion
continue: ;Etiqueta 'continue'
INC SI ;Incrementa en uno el valor de SI
;CMP SI,POSICION_ENTRADA
;JL siguiente_caracter_de_entrada
JMP siguiente_caracter_de_entrada ;Salta a la etiqueta 'siguiente_caracter_de_entrada'
numero: ;Etiqueta 'numero'
MOV DI,09h ;iniciamos el destino en la ultima posicion de los numeros enteros
;
JMP siguiente_numero ;Salta a la etiqueta 'siguiente_numero'
sintaxs_error_jmp: ;Etiqueta 'sintaxs_error_jmp'
JMP sintaxs_error ;Salta a la etiqueta 'sintaxs_error'
;
siguiente_numero: ;Etiqueta 'siguiente_numero'
MOV AL,display_str[SI] ;Asigna el contenido de display_str[SI] a AL
CMP AL,'.' ;si se estan comenzando los numeros decimales
JE decimal ;Salta si es igual a la etiqueta 'decimal'
SUB AL,30h ;restamos 30h para obtener el numero real
CMP AL,09h ;Compara AL con 09h
JA no_mas_numero ;si ya terminaron los numeros
ADD AL,30h ;AGREGA 30h a AL
CMP aux,00h ;si aux es 1 estamos procesando los signos del primer operando
JNE num_2_e ;si no es de el numero 1 y es entero
MOV num1[DI],Al ;Asigna el contenido de Al a num1[DI]
DEC DI ;Decrementa en uno el valor de DI
JNS continue_numero ;Salta a la etiqueta 'continue_numero' si no hay signo el ZF
JMP mas_10_numeros ;Salta a la etiqueta 'mas_10_numeros'
num_2_e: ;Etiqueta 'num_2_e'
MOV num2[DI],Al ;Asigna el contenido de Al a num2[DI]
DEC DI ;Decrementa en uno el valor de DI
JNS continue_numero ;Salta a la etiqueta 'continue_numero' si no hay signo el ZF
JMP mas_10_numeros ;Salta a la etiqueta 'mas_10_numeros'
continue_numero: ;Etiqueta 'continue_numero'
INC SI ;Incrementa en uno el valor de SI
JMP siguiente_numero ;Salta a la etiqueta 'siguiente_numero'
no_mas_numero: ;Etiqueta 'no_mas_numero'
XOR aux,01b ;si aux era 0 lo volvemos 1
CMP aux,00h ;si aux es 1 estamos procesando los signos del primer operando
JE termine ;Salta si es igual a la etiqueta 'termine'
JMP siguiente_caracter_de_entrada ;Salta a la etiqueta 'siguiente_caracter_de_entrada'
;numero o simbolos si es que existen
decimal: ;Etiqueta 'decimal'
MOV DI,01h ;Asigna 01h a DI
continue_decimal: ;Etiqueta 'continue_decimal'
INC SI ;Incrementa en uno el valor de SI
MOV Al,display_str[SI] ;Asigna el contenido de display_str[SI] a Al
CMP AL,'.' ;si se estan comenzando los numeros decimales
JE no_mas_numero_d ;Salta si es igual a la etiqueta 'no_mas_numero_d'
CMP AL,'-' ;Compara AL con '-'
JE no_mas_numero_d ;Salta si es igual a la etiqueta 'no_mas_numero_d'
CMP AL,'x' ;Compara AL con 'x'
JE no_mas_numero_d ;Salta si es igual a la etiqueta 'no_mas_numero_d'
CMP AL,0F6h ;entre � (alt +246)
JE no_mas_numero_d ;Salta si es igual a la etiqueta 'no_mas_numero_d'
JMP entrada_correcta_decimal ;Salta a la etiqueta 'entrada_correcta_decimal'
entrada_correcta_decimal: ;Etiqueta 'entrada_correcta_decimal'
SUB AL,30h ;restamos 30h para obtener el numero real
CMP AL,09h ;Compara AL con 09h
JA no_mas_numero_d ;si ya terminaron los numeros
;ADD AL,30h
CMP aux,00h ;si aux es 1 estamos procesando los signos del primer operando
JNE num_2_e_d ;Salta si no es igual a la etiqueta 'num_2_e_d'
MOV decimales_1[DI],Al ;Asigna el contenido de Al a decimales_1[DI]
INC DI ;Incrementa en uno el valor de DI
CMP DI,0Bh ;Compara DI con 0Bh
JL continue_decimal ;Salta a la etiqueta 'continue_decimal' si es menor
JMP mas_10_numeros ;Salta a la etiqueta 'mas_10_numeros'
num_2_e_d: ;Etiqueta 'num_2_e_d'
MOV decimales_2[DI],Al ;Asigna el contenido de Al a decimales_2[DI]
INC DI ;Incrementa en uno el valor de DI
CMP DI,0Bh ;Compara DI con 0Bh
JL continue_decimal ;Salta a la etiqueta 'continue_decimal' si es menor
JMP mas_10_numeros ;Salta a la etiqueta 'mas_10_numeros'
no_mas_numero_d: ;Etiqueta 'no_mas_numero_d'
JMP no_mas_numero ;Salta a la etiqueta 'no_mas_numero'
termine: ;Etiqueta 'termine'
;si ambos son negativos o positivos=>
MOV AL,num2_signo ;Asigna el contenido de num2_signo a AL
CMP num1_signo,Al ;Compara num1_signo con Al
JE signos_iguales ;Salta si es igual a la etiqueta 'signos_iguales'
JMP signos_diferentes ;Salta a la etiqueta 'signos_diferentes'
signos_iguales: ;Etiqueta 'signos_iguales'
;si la operacion es suma,division o multipliacion
CMP operacion,'x' ;Compara operacion con 'x'
JE diferente_mul ;+*+=> (+) le correponde a la multiplicacion
CMP operacion,0F6h ;Compara operacion con 0F6h
JE diferente_mul ;+*+=> (+) le correponde a la multiplicacion
CMP operacion,'+' ;Compara operacion con '+'
JE iguales_mult ;+-+ => (+,-) le corresponde a la resta
CMP operacion,'-' ;Compara operacion con '-'
JE iguales_suma_neg ;Salta si es igual a la etiqueta 'iguales_suma_neg'
signos_diferentes: ;Etiqueta 'signos_diferentes'
MOV AL,num2_signo ;Asigna el contenido de num2_signo a AL
CMP num1_signo,Al ;Compara num1_signo con Al
JA neg_pos ;si el signo del primer operando es (-) y el segundo es (+) => (-)>(+)=?
JMP pos_neg ;si el signo del primer operando es (+) y el segundo es (-) => (+)>(-)=?
;si el signo del primer operando es (-) y el segundo es (+) => (-)>(+)=?
neg_pos: ;Etiqueta 'neg_pos'
CMP operacion,'+' ;Compara operacion con '+'
JE resta_invertida ;con los operandos invertidos
CMP operacion,'-' ;Compara operacion con '-'
JE resta_invertida ;con los operandos invertidos
CMP operacion,'x' ;Compara operacion con 'x'
JE diferente_mul ;+*+=> (+) le correponde a la multiplicacion
CMP operacion,0F6h ;Compara operacion con 0F6h
JE diferente_mul ;+*+=> (+) le correponde a la multiplicacion
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
iguales_mult: ;Etiqueta 'iguales_mult'
;el resultado conservara su signo
MOV es_negativo_res,Al ;Asigna el contenido de Al a es_negativo_res
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
iguales_suma_neg: ;Etiqueta 'iguales_suma_neg'
MOV operacion,'+' ;Asigna el contenido de '+' a operacion
MOV es_negativo_res,Al ;Asigna el contenido de Al a es_negativo_res
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diferente_mul: ;Etiqueta 'diferente_mul'
MOV AL,num2_signo ;Asigna el contenido de num2_signo a AL
XOR AL,num1_signo ;Aplica la operacion XOR con AL y num1_signo
MOV es_negativo_res,Al ;Asigna el contenido de Al a es_negativo_res
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
resta_invertida: ;Etiqueta 'resta_invertida'
;copiamos el numero num2 a la variable temporal ajuste_decimales_1
MOV SI,00h ;Asigna 00h a SI
num2_inversion_cpy: ;Etiqueta 'num2_inversion_cpy'
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
MOV ajuste_decimales_1[SI],AL ;Asigna el contenido de AL a ajuste_decimales_1[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num2_inversion_cpy ;Salta a la etiqueta 'num2_inversion_cpy' si es menor o igual
;copiamos el numero (num1) menor a num2
MOV SI,00h ;Asigna 00h a SI
num2_inversion1_cpy: ;Etiqueta 'num2_inversion1_cpy'
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
MOV num2[SI],AL ;Asigna el contenido de AL a num2[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num2_inversion1_cpy ;Salta a la etiqueta 'num2_inversion1_cpy' si es menor o igual
;copiamos el numero en ajuste_decimales_1 a num1
MOV SI,00h ;Asigna 00h a SI
num1_inversion_cpy: ;Etiqueta 'num1_inversion_cpy'
MOV AL,ajuste_decimales_1[SI] ;Asigna el contenido de ajuste_decimales_1[SI] a AL
MOV num1[SI],AL ;Asigna el contenido de AL a num1[SI]
MOV ajuste_decimales_1[SI],00h ;limpiamos la variable temporal
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num1_inversion_cpy ;Salta a la etiqueta 'num1_inversion_cpy' si es menor o igual
;;INVERTIR LOS DECIMALES TAMBIEN
;------------------------------------------------------------------
;copiamos el numero mayor (decimales_2) a la variable temporal ajuste_decimales_1
MOV SI,00h ;Asigna 00h a SI
dec2_inversion_cpy: ;Etiqueta 'dec2_inversion_cpy'
MOV AL,decimales_2[SI] ;Asigna el contenido de decimales_2[SI] a AL
MOV ajuste_decimales_1[SI],AL ;Asigna el contenido de AL a ajuste_decimales_1[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec2_inversion_cpy ;Salta a la etiqueta 'dec2_inversion_cpy' si es menor o igual
;copiamos el numero (decimales_1) menor a decimales_2
MOV SI,00h ;Asigna 00h a SI
dec2_inversion1_cpy: ;Etiqueta 'dec2_inversion1_cpy'
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
MOV decimales_2[SI],AL ;Asigna el contenido de AL a decimales_2[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec2_inversion1_cpy ;Salta a la etiqueta 'dec2_inversion1_cpy' si es menor o igual
;copiamos el numero mayor guardado en ajuste_decimales_1 a decimales_1
MOV SI,00h ;Asigna 00h a SI
dec1_inversion_cpy: ;Etiqueta 'dec1_inversion_cpy'
MOV AL,ajuste_decimales_1[SI] ;Asigna el contenido de ajuste_decimales_1[SI] a AL
MOV decimales_1[SI],AL ;Asigna el contenido de AL a decimales_1[SI]
MOV ajuste_decimales_1[SI],00h ;limpiamos la variable temporal
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec1_inversion_cpy ;Salta a la etiqueta 'dec1_inversion_cpy' si es menor o igual
MOV operacion,'-' ;Asigna el contenido de '-' a operacion
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
;------------------------------------------------------------------
;si el signo del primer operando es (+) y el segundo es (-) => (+)>(-)=?
pos_neg: ;Etiqueta 'pos_neg'
CMP operacion,'+' ;Compara operacion con '+'
JE resta_invertida ;con los operandos invertidos
CMP operacion,'-' ;Compara operacion con '-'
JE suma_pos ;
CMP operacion ,'x' ;se multiplican los signos en ambos casos (-)*(-)=+ (+)*(+)=+ -*+=-
JE pos_neg_mul ;Salta si es igual a la etiqueta 'pos_neg_mul'
CMP operacion,0F6h ;Compara operacion con 0F6h
JE pos_neg_mul ;Salta si es igual a la etiqueta 'pos_neg_mul'
suma_pos: ;Etiqueta 'suma_pos'
MOV operacion,'+' ;Asigna el contenido de '+' a operacion
MOV es_negativo_res,00h ;Asigna 00h a es_negativo_res
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
pos_neg_mul: ;Etiqueta 'pos_neg_mul'
MOV AL,num2_signo ;Asigna el contenido de num2_signo a AL
XOR AL,num1_signo ;Aplica la operacion XOR con AL y num1_signo
MOV es_negativo_res,Al ;Asigna el contenido de Al a es_negativo_res
JMP ley_signos_end ;Salta a la etiqueta 'ley_signos_end'
ley_signos_end: ;Etiqueta 'ley_signos_end'
;;INVERTIMOS LAS PARTES ENTERAS DE LOS OPERANDOS PORQUE SE GUARDARON AL REVEZ
;lo copiamos ajustado a una variable auxiliar para ajustes de este tipo
MOV CX,09h ;Asigna 09h a CX
MOV SI,00h ;Asigna 00h a SI
Count_1: ;Etiqueta 'Count_1'
INC SI ;Incrementa en uno el valor de SI
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
CMP AL,00h ;Compara AL con 00h
JNE fin_count1 ;Salta si no es igual a la etiqueta 'fin_count1'
Loop Count_1 ;Salta a la etiqueta 'Count_1' y decrementa CX mientras no sea cero
fin_count1: ;Etiqueta 'fin_count1'
MOV BX,SI ;Asigna el contenido de SI a BX
MOV DI,09h ;iniciamos el destino en la ultima posicion de los numeros enteros
return_num1: ;Etiqueta 'return_num1'
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
MOV ajuste_decimales_1[DI],Al ;Asigna el contenido de Al a ajuste_decimales_1[DI]
DEC DI ;Decrementa en uno el valor de DI
INC SI ;Incrementa en uno el valor de SI
CMP SI,0Ah ;Compara SI con 0Ah
JL return_num1 ;Salta a la etiqueta 'return_num1' si es menor
;pasamos de la variable temporal ajustada a la definitiva
MOV CX,09h ;Asigna 09h a CX
adjust_num1: ;Etiqueta 'adjust_num1'
MOV DI,CX ;Asigna el contenido de CX a DI
MOV AL,ajuste_decimales_1[DI] ;Asigna el contenido de ajuste_decimales_1[DI] a AL
SUB AL,30h ;restamos 30h para obtener el numero real
CMP AL,0D0h ;Compara AL con 0D0h
JE fix_al1 ;Salta si es igual a la etiqueta 'fix_al1'
fixed_al1: ;Etiqueta 'fixed_al1'
MOV num1[DI],AL ;Asigna el contenido de AL a num1[DI]
DEC CX ;Decrementa en uno el valor de CX
JNS adjust_num1 ;Salta a la etiqueta 'adjust_num1' si no hay signo el ZF
;para el numero 2
MOV CX,09h ;Asigna 09h a CX
MOV SI,00h ;Asigna 00h a SI
Count_2: ;Etiqueta 'Count_2'
INC SI ;Incrementa en uno el valor de SI
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
CMP AL,00h ;Compara AL con 00h
JNE fin_count2 ;Salta si no es igual a la etiqueta 'fin_count2'
Loop Count_2 ;Salta a la etiqueta 'Count_2' y decrementa CX mientras no sea cero
fin_count2: ;Etiqueta 'fin_count2'
MOV BX,SI ;Asigna el contenido de SI a BX
MOV DI,09h ;iniciamos el destino en la ultima posicion de los numeros enteros
return_num2: ;Etiqueta 'return_num2'
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
MOV ajuste_decimales_2[DI],Al ;Asigna el contenido de Al a ajuste_decimales_2[DI]
DEC DI ;Decrementa en uno el valor de DI
INC SI ;Incrementa en uno el valor de SI
CMP SI,0Ah ;Compara SI con 0Ah
JL return_num2 ;Salta a la etiqueta 'return_num2' si es menor
;pasamos de la variable temporal ajustada a la definitiva
MOV CX,09h ;Asigna 09h a CX
adjust_num2: ;Etiqueta 'adjust_num2'
MOV DI,CX ;Asigna el contenido de CX a DI
MOV AL,ajuste_decimales_2[DI] ;Asigna el contenido de ajuste_decimales_2[DI] a AL
SUB AL,30h ;restamos 30h para obtener el numero real
CMP AL,0D0h ;Compara AL con 0D0h
JE fix_al2 ;Salta si es igual a la etiqueta 'fix_al2'
fixed_al2: ;Etiqueta 'fixed_al2'
MOV num2[DI],AL ;Asigna el contenido de AL a num2[DI]
DEC CX ;Decrementa en uno el valor de CX
JNS adjust_num2 ;Salta a la etiqueta 'adjust_num2' si no hay signo el ZF
RET ;Retorna el control a la direccion de el SP desde donde se llamo
fix_al1: ;Etiqueta 'fix_al1'
ADD AL,30h ;AGREGA 30h a AL
JMP fixed_al1 ;Salta a la etiqueta 'fixed_al1'
fix_al2: ;Etiqueta 'fix_al2'
ADD AL,30h ;AGREGA 30h a AL
JMP fixed_al2 ;Salta a la etiqueta 'fixed_al2'
JMP fin_ajusta_operandos ;Salta a la etiqueta 'fin_ajusta_operandos'
mas_10_numeros: ;Etiqueta 'mas_10_numeros'
ERROR Mas10_numeros ;Llamada a la Macro ERROR con los parametros : Mas10_numeros
MOV resultado_str[00h],'E' ;Asigna el contenido de 'E' a resultado_str[00h]
MOV resultado_str[01h],'R' ;Asigna el contenido de 'R' a resultado_str[01h]
MOV resultado_str[02h],'R' ;Asigna el contenido de 'R' a resultado_str[02h]
MOV resultado_str[03h],'O' ;Asigna el contenido de 'O' a resultado_str[03h]
MOV resultado_str[04h],'R' ;Asigna el contenido de 'R' a resultado_str[04h]
MOV resultado_str[05h],'$' ;Asigna el contenido de '$' a resultado_str[05h]
MOV operacion,00h ;Asigna 00h a operacion
RET ;Retorna el control a la direccion de el SP desde donde se llamo
sintaxs_error: ;Etiqueta 'sintaxs_error'
ERROR sintax_error_msj ;Llamada a la Macro ERROR con los parametros : sintax_error_msj
MOV resultado_str[00h],'E' ;Asigna el contenido de 'E' a resultado_str[00h]
MOV resultado_str[01h],'R' ;Asigna el contenido de 'R' a resultado_str[01h]
MOV resultado_str[02h],'R' ;Asigna el contenido de 'R' a resultado_str[02h]
MOV resultado_str[03h],'O' ;Asigna el contenido de 'O' a resultado_str[03h]
MOV resultado_str[04h],'R' ;Asigna el contenido de 'R' a resultado_str[04h]
MOV resultado_str[05h],'$' ;Asigna el contenido de '$' a resultado_str[05h]
MOV operacion,00h ;Asigna 00h a operacion
RET ;Retorna el control a la direccion de el SP desde donde se llamo
fin_ajusta_operandos: ;Etiqueta 'fin_ajusta_operandos'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
AJUSTA_OPERANDOS ENDP ;Fin del procedimiento
;______________________PROC_SUMA________________
SUMA PROC NEAR ;Inicia prodecimiento cercano 'SUMA'
;SUMAR PARTES ENTERAS SIN IMPORTAR ACARREOS
MOV DI,13h ;Asigna 13h a DI
MOV SI,09h ;Asigna 09h a SI
JMP siguiente_entero ;Salta a la etiqueta 'siguiente_entero'
fin_enteros: ;Etiqueta 'fin_enteros'
MOV num_res[SI],'$' ;Asigna el contenido de '$' a num_res[SI]
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_entero ;Salta a la etiqueta 'siguiente_entero'
siguiente_entero: ;Etiqueta 'siguiente_entero'
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE fin_enteros ;Salta si es igual a la etiqueta 'fin_enteros'
ADD AL,num2[SI] ;Suma el valor de AL con el de num2[SI], el resultado queda en AL
MOV num_res[DI],AL ;Asigna el contenido de AL a num_res[DI]
DEC DI ;Decrementa en uno el valor de DI
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_entero ;Salta a la etiqueta 'siguiente_entero' si no hay signo el ZF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MOV num1[0Ah],'$' ;Asigna el contenido de '$' a num1[0Ah]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;SUMAR PARTES DECIMALES SIN IMPORTAR ACARREOS
MOV SI,0Ah ;Asigna 0Ah a SI
JMP siguiente_decimal ;Salta a la etiqueta 'siguiente_decimal'
fin_decimales: ;Etiqueta 'fin_decimales'
;MOV decimales_Res[SI],'$'
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_decimal ;Salta a la etiqueta 'siguiente_decimal'
siguiente_decimal: ;Etiqueta 'siguiente_decimal'
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE fin_decimales ;Salta si es igual a la etiqueta 'fin_decimales'
ADD AL,decimales_2[SI] ;Suma el valor de AL con el de decimales_2[SI], el resultado queda en AL
MOV decimales_Res[SI],AL ;Asigna el contenido de AL a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_decimal ;Salta a la etiqueta 'siguiente_decimal' si no hay signo el ZF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
JMP primer_vezSumando ;Salta a la etiqueta 'primer_vezSumando'
acarreo_del_Acarreo: ;Etiqueta 'acarreo_del_Acarreo'
MOV hay_acarreo,00h ;Asigna 00h a hay_acarreo
primer_vezSumando: ;Etiqueta 'primer_vezSumando'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;AJUSTAR LOS ACARREOS DECIMALES
MOV SI,0Ah ;Asigna 0Ah a SI
JMP siguiente_Acarreo_decimal ;Salta a la etiqueta 'siguiente_Acarreo_decimal'
;
es_fin_decimal: ;Etiqueta 'es_fin_decimal'
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_Acarreo_decimal ;Salta a la etiqueta 'siguiente_Acarreo_decimal'
;
AcarreoDecimal: ;Etiqueta 'AcarreoDecimal'
MOV hay_acarreo,01h ;Asigna 01h a hay_acarreo
MOV Al,decimales_Res[SI] ;Asigna el contenido de decimales_Res[SI] a Al
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
;;si es el primer numero decimal deselo a los enteros
cmp SI,0000h ;Compara SI con 0000h
JNE no_es_primero ;Salta si no es igual a la etiqueta 'no_es_primero'
JMP es_primero ;Salta a la etiqueta 'es_primero'
;;
no_es_primero: ;Etiqueta 'no_es_primero'
ADD decimales_Res[SI-1],Ah ;AGREGA Ah a decimales_Res[SI-1]
MOV decimales_Res[SI],Al ;Asigna el contenido de Al a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_Acarreo_decimal ;Salta a la etiqueta 'siguiente_Acarreo_decimal'
es_primero: ;Etiqueta 'es_primero'
;;--> es primero
MOV decimales_Res[SI],Al ;Asigna el contenido de Al a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
;;fin el primero
siguiente_Acarreo_decimal: ;Etiqueta 'siguiente_Acarreo_decimal'
CMP SI,0FFFFh ;Compara SI con 0FFFFh
JE fin_ajuste_AcarreoDecimal ;Salta si es igual a la etiqueta 'fin_ajuste_AcarreoDecimal'
CMP decimales_Res[SI],'$' ;Compara decimales_Res[SI] con '$'
JE es_fin_decimal ;Salta si es igual a la etiqueta 'es_fin_decimal'
CMP decimales_Res[SI],0Ah ;Compara decimales_Res[SI] con 0Ah
JAE AcarreoDecimal ;Salta a la etiqueta 'AcarreoDecimal' si es mayor o igual
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_Acarreo_decimal ;Salta a la etiqueta 'siguiente_Acarreo_decimal' si no hay signo el ZF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
fin_ajuste_AcarreoDecimal: ;Etiqueta 'fin_ajuste_AcarreoDecimal'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;AJUSTAR LOS ACARREOS ENTEROS
MOV SI,13h ;Asigna 13h a SI
JMP siguiente_Acarreo_entero ;Salta a la etiqueta 'siguiente_Acarreo_entero'
;
es_fin_entero: ;Etiqueta 'es_fin_entero'
DEC SI ;Decrementa en uno el valor de SI
JS acarreos_pendientes_suma ;Salta a la etiqueta 'acarreos_pendientes_suma' si hay signo el ZF
JMP siguiente_Acarreo_entero ;Salta a la etiqueta 'siguiente_Acarreo_entero'
;
AcarreoEntero: ;Etiqueta 'AcarreoEntero'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CMP SI,0000h
MOV hay_acarreo,01h ;Asigna 01h a hay_acarreo
MOV Al,num_res[SI] ;Asigna el contenido de num_res[SI] a Al
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
ADD num_res[SI-1],Ah ;AGREGA Ah a num_res[SI-1]
MOV num_res[SI],Al ;Asigna el contenido de Al a num_res[SI]
DEC SI ;Decrementa en uno el valor de SI
siguiente_Acarreo_entero: ;Etiqueta 'siguiente_Acarreo_entero'
CMP decimales_Res[SI-1],'$' ;Compara decimales_Res[SI-1] con '$'
JE es_fin_entero ;Salta si es igual a la etiqueta 'es_fin_entero'
CMP num_res[SI],0Ah ;Compara num_res[SI] con 0Ah
JAE AcarreoEntero ;Salta a la etiqueta 'AcarreoEntero' si es mayor o igual
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_Acarreo_entero ;Salta a la etiqueta 'siguiente_Acarreo_entero' si no hay signo el ZF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
acarreos_pendientes_suma: ;Etiqueta 'acarreos_pendientes_suma'
;;;;;;;;;;;;;;;;AGREGAR ACARREOS PENDIENTES
MOV AL,num_res[13h] ;Asigna el contenido de num_res[13h] a AL
ADD AL,decimales_Res[0h] ;Suma el valor de AL con el de decimales_Res[0h], el resultado queda en AL
MOV num_res[13h],Al ;Asigna el contenido de Al a num_res[13h]
MOV decimales_Res[0h],00h ;limpiar el acarreo
CMP hay_acarreo,01h ;Compara hay_acarreo con 01h
JNE no_mas_acarreo ;Salta si no es igual a la etiqueta 'no_mas_acarreo'
JMP acarreo_del_Acarreo ;Salta a la etiqueta 'acarreo_del_Acarreo'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;AJUSTAR PARA IMPRESION
;;ajustar la parte entera
no_mas_acarreo: ;Etiqueta 'no_mas_acarreo'
MOV SI,13h ;Asigna 13h a SI
JMP inicia_ajuste ;Salta a la etiqueta 'inicia_ajuste'
salta_fin: ;Etiqueta 'salta_fin'
DEC SI ;Decrementa en uno el valor de SI
JMP inicia_ajuste ;Salta a la etiqueta 'inicia_ajuste'
inicia_ajuste: ;Etiqueta 'inicia_ajuste'
MOV AL,num_res[SI] ;Asigna el contenido de num_res[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE salta_fin ;Salta si es igual a la etiqueta 'salta_fin'
ADD AL,30h ;AGREGA 30h a AL
MOV num_res[SI],AL ;lo devuelve convertido en ascii a la posicion de donde lo tomo
DEC SI ;Decrementa en uno el valor de SI
JNS inicia_ajuste ;Salta a la etiqueta 'inicia_ajuste' si no hay signo el ZF
;;ajustar la parte decimal
MOV SI,13h ;Asigna 13h a SI
JMP inicia_ajuste_d ;Salta a la etiqueta 'inicia_ajuste_d'
salta_fin_d: ;Etiqueta 'salta_fin_d'
DEC SI ;Decrementa en uno el valor de SI
JMP inicia_ajuste_d ;Salta a la etiqueta 'inicia_ajuste_d'
inicia_ajuste_d: ;Etiqueta 'inicia_ajuste_d'
MOV AL,decimales_Res[SI] ;Asigna el contenido de decimales_Res[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE salta_fin_d ;Salta si es igual a la etiqueta 'salta_fin_d'
ADD AL,30h ;AGREGA 30h a AL
MOV decimales_Res[SI],AL ;Asigna el contenido de AL a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS inicia_ajuste_d ;Salta a la etiqueta 'inicia_ajuste_d' si no hay signo el ZF
MOV decimales_Res[0h],07h ;limpiar el acarreo
CALL AJUSTE_PARA_IMPRESION ;Llamada al procedimiento 'AJUSTE_PARA_IMPRESION'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
SUMA ENDP ;Fin del procedimiento
;----------------------RESTA PROC------------------------------------------
RESTA PROC NEAR ;Inicia prodecimiento cercano 'RESTA'
;DETERMINAR CUAL NUMERO ES MAYOR
;reccorer el num1 y num2 desde la posicion 0
MOV SI,00h ;Asigna 00h a SI
cual_es_mayor_res: ; etiqueta
INC SI ;Incrementa en uno el valor de SI
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
;COMPARAR NUM1 CON NUM2
CMP num1[SI],AL ;compara el contenido de AL con num1[SI]
;si num1 es mayor ya podemos restar
JA acomodados_para_la_resta ;salta a la etiqueta acomodados_para_la_resta si es mayor
JE iguales ;salta a la etiqueta iguales si son iguales
JMP num2_mayor ;si no significa que num2 es mayor y salta a la etiqueta
acomodados_para_la_resta: ;etiqueta
MOV es_negativo_res,01h ;asigna 01h a es_negativo_res
JMP ya_puedes_restar ;salta a la etiqueta ya_puedes_restar
iguales: ;etiqueta
;REVISAR LOS DECIMALES
MOV SI,01H
decim_mayor:
MOV AL,decimales_2[SI]
MOV AH,decimales_1[SI]
CMP AL,AH
JA num2_mayor
CMP SI,09H
INC SI
JL decim_mayor
JMP acomodados_para_la_resta
MOV es_negativo_res,00h ;Asigna 00h a es_negativo_res
CMP SI,09h ;Compara SI con 09h
JE ya_puedes_restar ; si son iguales salta a acomodados_para_la_resta
JMP cual_es_mayor_res ;salta a la etiqueta cual_es_mayor_res
num2_mayor: ;etiqueta
;copiamos el numero mayor (num2) a la variable temporal ajuste_decimales_1
MOV SI,00h ;Asigna 00h a SI
num2_mayor_cpy: ;etiqueta
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
MOV ajuste_decimales_1[SI],AL ;Asigna el contenido de AL a ajuste_decimales_1[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num2_mayor_cpy ;salta a num2_mayor_cpy si es menor o igual
;copiamos el numero (num1) menor a num2
MOV SI,00h ;Asigna 00h a SI
num2_menor_cpy: ;etiqueta
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
MOV num2[SI],AL ;Asigna el contenido de AL a num2[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num2_menor_cpy ;salta a num2_mayor_cpy si es menor o igual
;copiamos el numero mayor guardado en ajuste_decimales_1 a num1
MOV SI,00h ;Asigna 00h a SI
num1_ajuste_cpy: ;etiqueta
MOV AL,ajuste_decimales_1[SI] ;Asigna el contenido de ajuste_decimales_1[SI] a AL
MOV num1[SI],AL ;Asigna el contenido de AL a num1[SI]
MOV ajuste_decimales_1[SI],00h ;limpiamos la variable temporal
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num1_ajuste_cpy ;salta a num1_mayor_cpy si es menor o igual
;;INVERTIR LOS DECIMALES TAMBIEN
;------------------------------------------------------------------
;copiamos el numero mayor (decimales_2) a la variable temporal ajuste_decimales_1
MOV SI,00h ;Asigna 00h a SI
dec2_mayor_cpy: ;etiqueta
MOV AL,decimales_2[SI] ;Asigna el contenido de decimales_2[SI] a AL
MOV ajuste_decimales_1[SI],AL ;Asigna el contenido de AL a ajuste_decimales_1[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec2_mayor_cpy ;salta a dec2_mayor_cpy si es menor o igual
;copiamos el numero (decimales_1) menor a decimales_2
MOV SI,00h ;Asigna 00h a SI
dec2_menor_cpy: ;etiqueta
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
MOV decimales_2[SI],AL ;Asigna el contenido de AL a decimales_2[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec2_menor_cpy ;salta a dec2_mayor_cpy si es menor o igual
;copiamos el numero mayor guardado en ajuste_decimales_1 a decimales_1
MOV SI,00h ;Asigna 00h a SI
dec1_ajuste_cpy: ;etiqueta
MOV AL,ajuste_decimales_1[SI] ;Asigna el contenido de ajuste_decimales_1[SI] a AL
MOV decimales_1[SI],AL ;Asigna el contenido de AL a decimales_1[SI]
MOV ajuste_decimales_1[SI],00h ;limpiamos la variable temporal
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec1_ajuste_cpy ;salta a dec1_mayor_cpy si es menor o igual
;MOV es_negativo_res,01h;asigna 01h a es_negativo_res
;------------------------------------------------------------------
ya_puedes_restar: ;Etiqueta 'ya_puedes_restar'
;RESTAR PARTES DECIMALES
MOV SI,09h ;Asigna 09h a SI
JMP siguiente_decimal_res ;salta a la etiqueta siguiente_entero_res
fin_decimal_res: ;etiqueta
MOV decimales_Res[SI],'$' ;asigna fin de cadena a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_decimal_res ;salta a la etiqueta siguiente_entero_res
siguiente_decimal_res: ;etiqueta
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE fin_decimal_res ; salta a la etiqueta fin_decimal_res si es igual
CMP AL,decimales_2[SI] ;asigna el contenido de la direccion de memoria de decimales_2 direccionada por SI a AL
JL pide_prestado_d ;salta a la etiqueta pide_prestado_d si es menor
JMP resta_conNormalidad_d ; salta a la etiqueta resta_conNormalidad_d
pide_prestado_d: ;etiqueta
CMP SI,0000h ;compara si el SI esta limpio
JE prestamo_desde_los_enteros ; si es igual salta a prestamo_desde_los_enteros
DEC decimales_1[SI-1] ;decrementa decimales_1[SI-1]
ADD decimales_1[SI],0Ah ;suma 0Ah a decimales_1[SI]
resta_conNormalidad_d: ;etiqueta
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
SUB AL,decimales_2[SI] ;asigna el contenido de la direccion de memoria de decimales_2 direccionada por SI a AL
MOV decimales_Res[SI],AL ;Asigna el contenido de AL a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_decimal_res ;salta a siguiente_decimal_res si no tiene signo
JMP enteros_res ;salta a la etiqueta enteros_res
;AJUSTAR ACARREO DECIMAL NEGATIVO PARA LOS ENTEROS
prestamo_desde_los_enteros: ;etiqueta
DEC num1[09h] ;decrementa num1[09h]
MOV decimales_Res[0h],00h ;limpiar el acarreo
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;RESTAR PARTES ENTERAS
enteros_res: ;etiqueta
MOV SI,09h ;Asigna 09h a SI
MOV DI,13h ;Asigna 13h a DI
JMP siguiente_entero_res ;salta a la etiqueta siguiente_entero_res
fin_enteros_res: ;etiqueta
MOV num_res[SI],'$' ;Asigna el contenido de '$' a num_res[SI]
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_entero_res ;salta a la etiqueta siguiente_entero_res
siguiente_entero_res: ;etiqueta
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE fin_enteros_res ;salta a fin_enteros_res si es igual
CMP AL,num2[SI] ;compara el contenido de num2[SI] con AL
JL pide_prestado_e ;salta a pide_prestado_e si es menor
JMP resta_conNormalidad_e ;salta a la etiqueta resta_conNormalidad_e
pide_prestado_e: ;etiqueta
DEC num1[SI-1] ;decrementa num1[SI-1]
ADD num1[SI],0Ah ;suma 0Ah a num1[SI]
resta_conNormalidad_e: ;etiqueta
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
SUB AL,num2[SI] ;asigna el contenido de la direccion de memoria de num2 direccionada por SI a AL
MOV num_res[DI],AL ;Asigna el contenido de AL a num_res[DI]
DEC DI ;Decrementa en uno el valor de DI
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_entero_res ;salta a siguiente_entero_res si no tiene signo
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;AJUSTAR PARA IMPRESION
;;ajustar la parte entera
MOV SI,13h ;Asigna 13h a SI
JMP inicia_ajuste_res ;salta a la etiqueta inicia_ajuste_res
salta_fin_res: ;etiqueta
DEC SI ;Decrementa en uno el valor de SI
JMP inicia_ajuste_res ;salta a la etiqueta inicia_ajuste_res
inicia_ajuste_res: ;etiqueta
MOV AL,num_res[SI] ;Asigna el contenido de num_res[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE salta_fin_res ;Si es igual salta a salta_fin_res
ADD AL,30h ;AGREGA 30h a AL
MOV num_res[SI],AL ;lo devuelve convertido en ascii a la posicion de donde lo tomo
DEC SI ;Decrementa en uno el valor de SI
JNS inicia_ajuste_res ;salta a inicia_ajuste_res si no tiene signo
;;ajustar la parte decimal
MOV SI,13h ;Asigna 13h a SI
JMP inicia_ajuste_d_res ;salta a la etiqueta inicia_ajuste_res
salta_fin_d_res: ;etiqueta
DEC SI ;Decrementa en uno el valor de SI
JMP inicia_ajuste_d_res ;salta a la etiqueta inicia_ajuste_res
inicia_ajuste_d_res: ;etiqueta
MOV AL,decimales_Res[SI] ;Asigna el contenido de decimales_Res[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE salta_fin_d_res ;Si es igual salta a salta_fin_res
ADD AL,30h ;AGREGA 30h a AL
MOV decimales_Res[SI],AL ;Asigna el contenido de AL a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS inicia_ajuste_d_res ;salta a inicia_ajuste_res si no tiene signo
MOV decimales_Res[0h],07h ;limpiar el acarreo
CALL AJUSTE_PARA_IMPRESION ;Llamada al procedimiento 'AJUSTE_PARA_IMPRESION'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
RESTA ENDP ;fin del procedimento resta
;-------------------------------MULTIPLICA----------------------------------------------
MULTIPLICA PROC NEAR ;Inicia prodecimiento cercano 'MULTIPLICA'
MOV CX,09h ;Asigna 09h a CX
cpy_mul_e: ;Etiqueta 'cpy_mul_e'
MOV SI,CX ;Asigna el contenido de CX a SI
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
MOV num_1_mul[SI-1],Al ;Asigna el contenido de Al a num_1_mul[SI-1]
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
MOV num_2_mul[SI-1],Al ;Asigna el contenido de Al a num_2_mul[SI-1]
LOOP cpy_mul_e ;Salta a la etiqueta 'cpy_mul_e' y decrementa CX mientras no sea cero
MOV CX,09h ;Asigna 09h a CX
cpy_mul_d: ;Etiqueta 'cpy_mul_d'
MOV SI,CX ;Asigna el contenido de CX a SI
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
MOV decimal_1_mul[SI-1],Al ;Asigna el contenido de Al a decimal_1_mul[SI-1]
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
MOV decimal_2_mul[SI-1],Al ;Asigna el contenido de Al a decimal_2_mul[SI-1]
LOOP cpy_mul_d ;Salta a la etiqueta 'cpy_mul_d' y decrementa CX mientras no sea cero
mov si,0000h ;Asigna 0000h a si
mov di,0000h ;Asigna 0000h a di
LEA di,num_res_mul[23h] ;Asigna a DX la direccion inicial de desplzamiento de la variable: 'di,num_res_mul[23h]'
LEA si,num_1_mul[11h] ;Asigna a DX la direccion inicial de desplzamiento de la variable: 'si,num_1_mul[11h]'
LEA bx,num_2_mul ;Asigna a DX la direccion inicial de desplzamiento de la variable: 'bx,num_2_mul'
mov cx,18 ;Asigna 18 a cx
p_ciclo_mul: ;Etiqueta 'p_ciclo_mul'
PUSH cx ;Envia cx a la pila
PUSH di ;Envia di a la pila
mov ax,17 ;Asigna 17 a ax
mov cx,18 ;Asigna 18 a cx
s_ciclo_mul: ;Etiqueta 's_ciclo_mul'
mov dx,ax ;Asigna el contenido de ax a dx
XLAT ;Transfiere el contenido de la direccion de memoria dada por la suma de (BX + Al) a Al
mov dh,[si] ;Asigna el contenido de [si] a dh
mul dh ;Multiplica Al por dh
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
add al,[di] ;Suma el valor de al con el de [di], el resultado queda en al
add al,acarreo ;Suma el valor de al con el de acarreo, el resultado queda en al
mov acarreo,ah ;Asigna ah a acarreo
mov ah,0h ;Asigna 0h a ah
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
mov [di],al ;Asigna el contenido de al a [di]
mov al,acarreo ;Asigna el contenido de acarreo a al
add al,ah ;AGREGA ah a al
mov acarreo,al ;Asigna el contenido de al a acarreo
dec di ;Decrementa en uno el valor de di
mov dh,0 ;Asigna 0 a dh
mov ax,dx ;Asigna el contenido de dx a ax
dec ax ;Decrementa en uno el valor de ax
LOOP s_ciclo_mul ;Salta a la etiqueta 's_ciclo_mul' y decrementa CX mientras no sea cero
mov ax,[di] ;Asigna el contenido de [di] a ax
add al,acarreo ;Suma el valor de al con el de acarreo, el resultado queda en al
mov [di],al ;Asigna el contenido de al a [di]
POP di ;Saca di de la pila
POP cx ;Saca cx de la pila
dec si ;Decrementa en uno el valor de si
dec di ;Decrementa en uno el valor de di
mov acarreo,0h ;Asigna 0h a acarreo
LOOP p_ciclo_mul ;Salta a la etiqueta 'p_ciclo_mul' y decrementa CX mientras no sea cero
mov cx,36 ;Asigna 36 a cx
LEA di,num_res_mul ;Asigna a DX la direccion inicial de desplzamiento de la variable: 'di,num_res_mul'
ciclo_A: ;Etiqueta 'ciclo_A'
mov al,[di] ;Asigna el contenido de [di] a al
add al,30h ;AGREGA 30h a al
mov [di],al ;Asigna el contenido de al a [di]
inc di ;Incrementa en uno el valor de di
LOOP ciclo_A ;Salta a la etiqueta 'ciclo_A' y decrementa CX mientras no sea cero
MOV CX,11h ;Asigna 11h a CX
cpy_res_e: ;Etiqueta 'cpy_res_e'
MOV SI,CX ;Asigna el contenido de CX a SI
MOV AL,num_res_mul[SI] ;Asigna el contenido de num_res_mul[SI] a AL
MOV num_res[SI+2],Al ;Asigna el contenido de Al a num_res[SI+2]
LOOP cpy_res_e ;Salta a la etiqueta 'cpy_res_e' y decrementa CX mientras no sea cero
MOV CX,11h ;Asigna 11h a CX
cpy_res_d: ;Etiqueta 'cpy_res_d'
MOV SI,CX ;Asigna el contenido de CX a SI
MOV AL,decimal_res_mul[SI] ;Asigna el contenido de decimal_res_mul[SI] a AL
MOV decimales_res[SI],Al ;Asigna el contenido de Al a decimales_res[SI]
LOOP cpy_res_d ;Salta a la etiqueta 'cpy_res_d' y decrementa CX mientras no sea cero
MOV decimales_res[0h],07h ;Asigna 07h a decimales_res[0h]
MOV decimales_res[12h],30H ;Asigna 30H a decimales_res[12h]
MOV decimales_res[13h],30H ;Asigna 30H a decimales_res[13h]
MOV num_res[00h],30h ;Asigna 30h a num_res[00h]
MOV num_res[01h],30h ;Asigna 30h a num_res[01h]
MOV num_res[02h],30h ;Asigna 30h a num_res[02h]
CALL AJUSTE_PARA_IMPRESION ;Llamada al procedimiento 'AJUSTE_PARA_IMPRESION'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
MULTIPLICA ENDP ;Fin del procedimiento
;;;;----------------------------------DIVIDE------------------------------
DIVIDE PROC NEAR ;Inicia prodecimiento cercano 'DIVIDE'
MOV resultado_entero_div,01h ;Asigna 01h a resultado_entero_div
;----------------------------------------------------------------------------------
;;REVISAR QUE LA DIVISION NO SEA x/0
MOV SI,09h ;Asigna 09h a SI
revisa_indefinidos: ;Etiqueta 'revisa_indefinidos'
CMP num2[SI],00H ;Compara num2[SI] con 00H
JNE no_es_indefinida_jmp ;Salta si no es igual a la etiqueta 'no_es_indefinida_jmp'
CMP decimales_2[SI],00H ;Compara decimales_2[SI] con 00H
JNE no_es_indefinida_jmp ;Salta si no es igual a la etiqueta 'no_es_indefinida_jmp'
DEC SI ;Decrementa en uno el valor de SI
JNS revisa_indefinidos ;Salta a la etiqueta 'revisa_indefinidos' si no hay signo el ZF
MOV CX,0Dh ;longuitud de la palabra "Indeterminado"
MOV SI,00h ;Asigna 00h a SI
JMP indeterminado_cpy ;Salta a la etiqueta 'indeterminado_cpy'
no_es_indefinida_jmp: ;Etiqueta 'no_es_indefinida_jmp'
JMP no_es_indefinida ;Salta a la etiqueta 'no_es_indefinida'
indeterminado_cpy: ;Etiqueta 'indeterminado_cpy'
MOV AL,indefinida[SI] ;Asigna el contenido de indefinida[SI] a AL
MOV num_res[SI],Al ;Asigna el contenido de Al a num_res[SI]
INC SI ;Incrementa en uno el valor de SI
Loop indeterminado_cpy ;Salta a la etiqueta 'indeterminado_cpy' y decrementa CX mientras no sea cero
MOV decimales_Res[00h],07h ;borrar los decimales
MOV decimales_Res[01h],07h ;borrar los decimales
CALL AJUSTE_PARA_IMPRESION ;Llamada al procedimiento 'AJUSTE_PARA_IMPRESION'
ERROR div_x_cero ;Llamada a la Macro ERROR con los parametros : div_x_cero
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_indefinida: ;Etiqueta 'no_es_indefinida'
;;COPIAR LOS OPERANDOS ORIGINALES EN LAS VARIABLES ESPECIALES
;;PARA LA DIVISION
MOV DI,0000h ;Asigna 0000h a DI
aun_hay_resuido: ;Etiqueta 'aun_hay_resuido'
;------------------------------------------------------------------------------------INICIA_RESTA
;DETERMINAR CUAL NUMERO ES MAYOR
;reccorer el num1 y num2 desde la posicion 0
MOV SI,00h ;Asigna 00h a SI
cual_es_mayor_div: ;Etiqueta 'cual_es_mayor_div'
INC SI ;Incrementa en uno el valor de SI
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
;COMPARAR num1 CON num2
CMP num1[SI],AL ;compara el contenido de AL con num1[SI]
;si num1 es mayor ya podemos restar
JA acomodados_para_la_resta_div ;Salta si es mayor a la etiqueta 'acomodados_para_la_resta_div'
;si son iguales_div
JE iguales_div ;Salta si es igual a la etiqueta 'iguales_div'
;si no significa que num2 es mayor
JMP num2_mayor_div ;Salta a la etiqueta 'num2_mayor_div'
acomodados_para_la_resta_div: ;Etiqueta 'acomodados_para_la_resta_div'
JMP ya_puedes_restar_div ;Salta a la etiqueta 'ya_puedes_restar_div'
iguales_div: ;Etiqueta 'iguales_div'
MOV es_negativo_resuido_div,00h ;no hay signo en la parte entera
CMP SI,09h ;Compara SI con 09h
JE revisar_parte_decimal ;Salta si es igual a la etiqueta 'revisar_parte_decimal'
JMP cual_es_mayor_div ;Salta a la etiqueta 'cual_es_mayor_div'
;-----------------------------------------------------------------------------
revisar_parte_decimal: ;Etiqueta 'revisar_parte_decimal'
;revisar su parte decimal para determinar el mayor
MOV SI,00h ;Asigna 00h a SI
cual_es_mayor_dec: ;Etiqueta 'cual_es_mayor_dec'
INC SI ;Incrementa en uno el valor de SI
MOV AL,decimales_2[SI] ;Asigna el contenido de decimales_2[SI] a AL
;COMPARAR num1 CON num2
CMP decimales_1[SI],AL ;Compara decimales_1[SI] con AL
;si num1 es mayor ya podemos restar
JA acomodados_para_la_resta_div ;Salta si es mayor a la etiqueta 'acomodados_para_la_resta_div'
;si no significa que num2 es mayor
JL num2_mayor_div ;Salta a la etiqueta 'num2_mayor_div' si es menor
CMP SI,09h ;Compara SI con 09h
JL cual_es_mayor_dec ;Salta a la etiqueta 'cual_es_mayor_dec' si es menor
JMP ya_puedes_restar_div ;Salta a la etiqueta 'ya_puedes_restar_div'
;-----------------------------------------------------------------------------
;------------------->inicia ajuste para que num 1 sea siempre mayor
num2_mayor_div: ;Etiqueta 'num2_mayor_div'
MOV es_negativo_resuido_div,01h ;Asigna 01h a es_negativo_resuido_div
MOV resultado_entero_div,00h ;Asigna 00h a resultado_entero_div
JMP la_resta_ya_es_negativa ;Salta a la etiqueta 'la_resta_ya_es_negativa'
;copiamos el numero mayor (num2) a la variable temporal ajuste_decimales_1
MOV SI,00h ;Asigna 00h a SI
num2_mayor_div_cpy: ;Etiqueta 'num2_mayor_div_cpy'
MOV AL,num2[SI] ;Asigna el contenido de num2[SI] a AL
MOV ajuste_decimales_1[SI],AL ;Asigna el contenido de AL a ajuste_decimales_1[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num2_mayor_div_cpy ;Salta a la etiqueta 'num2_mayor_div_cpy' si es menor o igual
;copiamos el numero (num1) menor a num2
MOV SI,00h ;Asigna 00h a SI
num2_menor_cpy_div: ;Etiqueta 'num2_menor_cpy_div'
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
MOV num2[SI],AL ;Asigna el contenido de AL a num2[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num2_menor_cpy_div ;Salta a la etiqueta 'num2_menor_cpy_div' si es menor o igual
;copiamos el numero mayor guardado en ajuste_decimales_1 a num1
MOV SI,00h ;Asigna 00h a SI
num1_ajuste_cpy_div: ;Etiqueta 'num1_ajuste_cpy_div'
MOV AL,ajuste_decimales_1[SI] ;Asigna el contenido de ajuste_decimales_1[SI] a AL
MOV num1[SI],AL ;Asigna el contenido de AL a num1[SI]
MOV ajuste_decimales_1[SI],00h ;limpiamos la variable temporal
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE num1_ajuste_cpy_div ;Salta a la etiqueta 'num1_ajuste_cpy_div' si es menor o igual
;;INVERTIR LOS DECIMALES TAMBIEN
;------------------------------------------------------------------
;copiamos el numero mayor (decimales_2) a la variable temporal ajuste_decimales_1
MOV SI,00h ;Asigna 00h a SI
dec2_mayor_cpy_div: ;Etiqueta 'dec2_mayor_cpy_div'
MOV AL,decimales_2[SI] ;Asigna el contenido de decimales_2[SI] a AL
MOV ajuste_decimales_1[SI],AL ;Asigna el contenido de AL a ajuste_decimales_1[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec2_mayor_cpy_div ;Salta a la etiqueta 'dec2_mayor_cpy_div' si es menor o igual
;copiamos el numero (decimales_1) menor a decimales_2
MOV SI,00h ;Asigna 00h a SI
dec2_menor_cpy_div: ;Etiqueta 'dec2_menor_cpy_div'
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
MOV decimales_2[SI],AL ;Asigna el contenido de AL a decimales_2[SI]
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec2_menor_cpy_div ;Salta a la etiqueta 'dec2_menor_cpy_div' si es menor o igual
;copiamos el numero mayor guardado en ajuste_decimales_1 a decimales_1
MOV SI,00h ;Asigna 00h a SI
dec1_ajuste_cpy_div: ;Etiqueta 'dec1_ajuste_cpy_div'
MOV AL,ajuste_decimales_1[SI] ;Asigna el contenido de ajuste_decimales_1[SI] a AL
MOV decimales_1[SI],AL ;Asigna el contenido de AL a decimales_1[SI]
MOV ajuste_decimales_1[SI],00h ;limpiamos la variable temporal
INC SI ;Incrementa en uno el valor de SI
CMP SI,09h ;Compara SI con 09h
JLE dec1_ajuste_cpy_div ;Salta a la etiqueta 'dec1_ajuste_cpy_div' si es menor o igual
;------------------------------------------------------------------
ya_puedes_restar_div: ;Etiqueta 'ya_puedes_restar_div'
MOV dividi_una_vez,01h ;Asigna 01h a dividi_una_vez
;RESTAR PARTES DECIMALES
MOV SI,09h ;Asigna 09h a SI
JMP siguiente_decimal_res_div ;salta a la etiqueta siguiente_entero_res_div
fin_decimal_res_div: ;Etiqueta 'fin_decimal_res_div'
MOV decimales_Res_div[SI],'$' ;Asigna el contenido de '$' a decimales_Res_div[SI]
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_decimal_res_div ;salta a la etiqueta siguiente_entero_res_div
siguiente_decimal_res_div: ;Etiqueta 'siguiente_decimal_res_div'
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE fin_decimal_res_div ;Salta si es igual a la etiqueta 'fin_decimal_res_div'
CMP AL,decimales_2[SI] ;asigna el contenido de la direccion de memoria de decimales_2 direccionada por SI a AL
JL pide_prestado_d_div ;Salta a la etiqueta 'pide_prestado_d_div' si es menor
JMP resta_conNormalidad_d_div ;Salta a la etiqueta 'resta_conNormalidad_d_div'
pide_prestado_d_div: ;Etiqueta 'pide_prestado_d_div'
CMP SI,0000h ;compara si el SI esta limpio
JE prestamo_desde_los_enteros_div ;Salta si es igual a la etiqueta 'prestamo_desde_los_enteros_div'
DEC decimales_1[SI-1] ;decrementa decimales_1[SI-1]
ADD decimales_1[SI],0Ah ;suma 0Ah a decimales_1[SI]
resta_conNormalidad_d_div: ;Etiqueta 'resta_conNormalidad_d_div'
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
SUB AL,decimales_2[SI] ;asigna el contenido de la direccion de memoria de decimales_2 direccionada por SI a AL
MOV decimales_Res_div[SI],AL ;Asigna el contenido de AL a decimales_Res_div[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_decimal_res_div ;Salta a la etiqueta 'siguiente_decimal_res_div' si no hay signo el ZF
JMP enteros_res_div ;Salta a la etiqueta 'enteros_res_div'
;AJUSTAR ACARREO DECIMAL NEGATIVO PARA LOS ENTEROS
prestamo_desde_los_enteros_div: ;Etiqueta 'prestamo_desde_los_enteros_div'
DEC num1[09h] ;decrementa num1[09h]
MOV decimales_Res_div[0h],00h ;limpiar el acarreo
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
enteros_res_div: ;Etiqueta 'enteros_res_div'
;RESTAR PARTES ENTERAS
MOV SI,09h ;Asigna 09h a SI
JMP siguiente_entero_res_div ;salta a la etiqueta siguiente_entero_res_div
fin_enteros_res_div: ;Etiqueta 'fin_enteros_res_div'
MOV num_res_div[SI],'$' ;Asigna el contenido de '$' a num_res_div[SI]
DEC SI ;Decrementa en uno el valor de SI
JMP siguiente_entero_res_div ;salta a la etiqueta siguiente_entero_res_div
siguiente_entero_res_div: ;Etiqueta 'siguiente_entero_res_div'
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE fin_enteros_res_div ;Salta si es igual a la etiqueta 'fin_enteros_res_div'
CMP AL,num2[SI] ;compara el contenido de num2[SI] con AL
JL pide_prestado_e_div ;Salta a la etiqueta 'pide_prestado_e_div' si es menor
JMP resta_conNormalidad_e_div ;Salta a la etiqueta 'resta_conNormalidad_e_div'
pide_prestado_e_div: ;Etiqueta 'pide_prestado_e_div'
DEC num1[SI-1] ;decrementa num1[SI-1]
ADD num1[SI],0Ah ;suma 0Ah a num1[SI]
resta_conNormalidad_e_div: ;Etiqueta 'resta_conNormalidad_e_div'
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
SUB AL,num2[SI] ;asigna el contenido de la direccion de memoria de num2 direccionada por SI a AL
MOV num_res_div[SI],AL ;Asigna el contenido de AL a num_res_div[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_entero_res_div ;Salta a la etiqueta 'siguiente_entero_res_div' si no hay signo el ZF
;-------------------------------------------------------------------------------------FIN_RESTA
;COPIAR NUM_RES_DIV A NUM1
MOV SI,09H ;Asigna 09H a SI
siguiente_resultado_resta: ;Etiqueta 'siguiente_resultado_resta'
;para su parte entera
MOV Al,num_res_div[SI] ;Asigna el contenido de num_res_div[SI] a Al
MOV num1[SI],Al ;Asigna el contenido de Al a num1[SI]
;para su parte decimal
MOV AL,decimales_Res_div[SI] ;Asigna el contenido de decimales_Res_div[SI] a AL
MOV decimales_1[SI],AL ;Asigna el contenido de AL a decimales_1[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_resultado_resta ;Salta a la etiqueta 'siguiente_resultado_resta' si no hay signo el ZF
;;INICIA INCREMENTO DE CONTADOR PARA EL RESULTADO
CMP resultado_entero_div,01h ;Compara resultado_entero_div con 01h
JE enteros_div ;Salta si es igual a la etiqueta 'enteros_div'
JMP decimales_div ;Salta a la etiqueta 'decimales_div'
enteros_div: ;Etiqueta 'enteros_div'
INC num_res[13h] ;agregamos 1 a la ultima posicion de el resultado entero
;ajustar los acarreos
MOV SI,14h ;Asigna 14h a SI
siguiente_posicion_enteros_div: ;Etiqueta 'siguiente_posicion_enteros_div'
DEC SI ;Decrementa en uno el valor de SI
JS fin_incremento_contador ;Salta a la etiqueta 'fin_incremento_contador' si hay signo el ZF
CMP num_res[SI],0Ah ;Compara num_res[SI] con 0Ah
JL siguiente_posicion_enteros_div ;Salta a la etiqueta 'siguiente_posicion_enteros_div' si es menor
JAE desempaca_div_e ;Salta a la etiqueta 'desempaca_div_e' si es mayor o igual
JMP fin_incremento_contador ;Salta a la etiqueta 'fin_incremento_contador'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
desempaca_div_e: ;Etiqueta 'desempaca_div_e'
MOV AL,num_res[SI] ;Asigna el contenido de num_res[SI] a AL
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
MOV num_res[SI],AL ;lo devuelve convertido en ascii a la posicion de donde lo tomo
ADD num_res[SI-1],Ah ;AGREGA Ah a num_res[SI-1]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
JMP siguiente_posicion_enteros_div ;Salta a la etiqueta 'siguiente_posicion_enteros_div'
decimales_div: ;Etiqueta 'decimales_div'
;-------------------------------------------------------------------------------------------
INC decimales_res[DI] ;agregamos 1 a la posicion actual del resultado decimal
;ajustar los acarreos
MOV SI,14h ;Asigna 14h a SI
siguiente_posicion_decimales_div: ;Etiqueta 'siguiente_posicion_decimales_div'
DEC SI ;Decrementa en uno el valor de SI
CMP decimales_res[SI],0Ah ;Compara decimales_res[SI] con 0Ah
JLE siguiente_posicion_decimales_div ;Salta a la etiqueta 'siguiente_posicion_decimales_div' si es menor o igual
JMP fin_incremento_contador ;Salta a la etiqueta 'fin_incremento_contador'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
XOR AX,AX ;Resituye el registro AX a ceros por medio de XOR
INT 16h ;Interrupcion 16h (funciones de llamada al teclado)
MOV AL,decimales_res[SI] ;Asigna el contenido de decimales_res[SI] a AL
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
MOV CL,AL ;Asigna el contenido de AL a CL
ADD AL,CL ;Suma el valor de AL con el de CL, el resultado queda en AL
MOV decimales_res[SI-1],Ah ;Asigna Ah a decimales_res[SI-1]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
JMP siguiente_posicion_decimales_div ;Salta a la etiqueta 'siguiente_posicion_decimales_div'
;-------------------------------------------------------------------------------------------
fin_incremento_contador: ;Etiqueta 'fin_incremento_contador'
JMP aun_hay_resuido ;Salta a la etiqueta 'aun_hay_resuido'
la_resta_ya_es_negativa: ;Etiqueta 'la_resta_ya_es_negativa'
CMP dividi_una_vez,01h ;Compara dividi_una_vez con 01h
JNE resultado_menor_que_cero ;Salta si no es igual a la etiqueta 'resultado_menor_que_cero'
JMP resultado_mayor_que_cero ;Salta a la etiqueta 'resultado_mayor_que_cero'
resultado_menor_que_cero: ;Etiqueta 'resultado_menor_que_cero'
;;si el resultado es 0.xxxxxxx copiamos el operador num1 a num_res_div para que lo
;;multiplique por 10
MOV resultado_entero_div,00h ;Asigna 00h a resultado_entero_div
MOV SI,09h ;Asigna 09h a SI
cpy_menor_cero: ;Etiqueta 'cpy_menor_cero'
;para los enteros
MOV AL,num1[SI] ;Asigna el contenido de num1[SI] a AL
MOV Num_res_div[SI],Al ;Asigna el contenido de Al a Num_res_div[SI]
;para los decimales
MOV AL,decimales_1[SI] ;Asigna el contenido de decimales_1[SI] a AL
MOV decimales_res_div[SI],Al ;Asigna el contenido de Al a decimales_res_div[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS cpy_menor_cero ;Salta a la etiqueta 'cpy_menor_cero' si no hay signo el ZF
resultado_mayor_que_cero: ;Etiqueta 'resultado_mayor_que_cero'
;------------------------------------------------------------------------------
;;MULTIPLICAR EL RESUIDO GUARADO EN NUM_RES_DIV Y DECIAMALES_RES_DIV X10
;incrementar el 1 el destino decimal
INC DI ;Incrementa en uno el valor de DI
CMP DI,14H ;Compara DI con 14H
JNE no_periodico_div ;Salta si no es igual a la etiqueta 'no_periodico_div'
JMP periodico_div ;Salta a la etiqueta 'periodico_div'
no_periodico_div: ;Etiqueta 'no_periodico_div'
MOV SI,09H ;Asigna 09H a SI
multiplica_siguiente_resuido: ;Etiqueta 'multiplica_siguiente_resuido'
;multiplicar su parte entera
MOV AL,Num_res_div[SI] ;Asigna el contenido de Num_res_div[SI] a AL
MOV AUX,0AH ;Asigna 0AH a AUX
MUL Aux ;Multiplica Al por Aux
MOV Num_res_div[SI],Al ;Asigna el contenido de Al a Num_res_div[SI]
;multiplicar su parte decimal
MOV AL,decimales_res_div[SI] ;Asigna el contenido de decimales_res_div[SI] a AL
MUL Aux ;Multiplica Al por Aux
MOV decimales_res_div[SI],Al ;Asigna el contenido de Al a decimales_res_div[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS multiplica_siguiente_resuido ;Salta a la etiqueta 'multiplica_siguiente_resuido' si no hay signo el ZF
;------------------------------------------------------------------------------
;AJUSTAR LOS ACARREOS PROVOCADOS POR LA MULTIPLICACION POR 10
;para el acarreo decimal
MOV SI,09H ;Asigna 09H a SI
siguiente_res_div_mul10: ;Etiqueta 'siguiente_res_div_mul10'
MOV AL,decimales_res_div[SI] ;Asigna el contenido de decimales_res_div[SI] a AL
CMP AL,0AH ;Compara AL con 0AH
JAE acarreo_por_resuido ;Salta a la etiqueta 'acarreo_por_resuido' si es mayor o igual
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_res_div_mul10 ;Salta a la etiqueta 'siguiente_res_div_mul10' si no hay signo el ZF
JMP fin_res_div_mul10 ;Salta a la etiqueta 'fin_res_div_mul10'
acarreo_por_resuido: ;Etiqueta 'acarreo_por_resuido'
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
MOV decimales_res_div[SI],Al ;Asigna el contenido de Al a decimales_res_div[SI]
MOV CL,decimales_res_div[SI-1] ;Asigna el contenido de decimales_res_div[SI-1] a CL
ADD Ah,CL ;Suma el valor de Ah con el de CL, el resultado queda en Ah
MOV decimales_res_div[SI-1],Ah ;Asigna Ah a decimales_res_div[SI-1]
JNS siguiente_res_div_mul10 ;Salta a la etiqueta 'siguiente_res_div_mul10' si no hay signo el ZF
fin_res_div_mul10: ;Etiqueta 'fin_res_div_mul10'
;--------------------------------------------------
;Agregar acarreo pendiente guarado en la primer posicion de decimales_res_div
MOV AL,decimales_res_div[00h] ;Asigna el contenido de decimales_res_div[00h] a AL
MOV decimales_res_div[00h],00h ;Asigna 00h a decimales_res_div[00h]
MOV CL,num_res_div[09h] ;Asigna el contenido de num_res_div[09h] a CL
ADD AL,CL ;Suma el valor de AL con el de CL, el resultado queda en AL
MOV num_res_div[09h],Al ;Asigna el contenido de Al a num_res_div[09h]
;--------------------------------------------------
;para el acarreo entero
MOV SI,09H ;Asigna 09H a SI
siguiente_res_div_mul10_e: ;Etiqueta 'siguiente_res_div_mul10_e'
MOV AL,num_res_div[SI] ;Asigna el contenido de num_res_div[SI] a AL
CMP AL,0AH ;Compara AL con 0AH
JAE acarreo_por_resuido_e ;Salta a la etiqueta 'acarreo_por_resuido_e' si es mayor o igual
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_res_div_mul10_e ;Salta a la etiqueta 'siguiente_res_div_mul10_e' si no hay signo el ZF
JMP fin_res_div_mul10_e ;Salta a la etiqueta 'fin_res_div_mul10_e'
acarreo_por_resuido_e: ;Etiqueta 'acarreo_por_resuido_e'
AAM ;Desempaca AL (Divide Al entre 10 cociente:resuido AH:AL)
MOV num_res_div[SI],Al ;Asigna el contenido de Al a num_res_div[SI]
MOV CL,num_res_div[SI-1] ;Asigna el contenido de num_res_div[SI-1] a CL
ADD Ah,CL ;Suma el valor de Ah con el de CL, el resultado queda en Ah
MOV num_res_div[SI-1],Ah ;Asigna Ah a num_res_div[SI-1]
JNS siguiente_res_div_mul10_e ;Salta a la etiqueta 'siguiente_res_div_mul10_e' si no hay signo el ZF
fin_res_div_mul10_e: ;Etiqueta 'fin_res_div_mul10_e'
;------------------------------------------------------------------------------
;copiar el resuido ajustado a las variables de operacion num1 y decimales_1
MOV SI,09H ;Asigna 09H a SI
siguiente_resuido_div: ;Etiqueta 'siguiente_resuido_div'
;para su parte entera
MOV Al,num_res_div[SI] ;Asigna el contenido de num_res_div[SI] a Al
MOV num1[SI],Al ;Asigna el contenido de Al a num1[SI]
;para su parte decimal
MOV AL,decimales_Res_div[SI] ;Asigna el contenido de decimales_Res_div[SI] a AL
MOV decimales_1[SI],AL ;Asigna el contenido de AL a decimales_1[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS siguiente_resuido_div ;Salta a la etiqueta 'siguiente_resuido_div' si no hay signo el ZF
;------------------------------------------------------------------------------
;saltamos a 'restar' el residuo
JMP aun_hay_resuido ;Salta a la etiqueta 'aun_hay_resuido'
periodico_div: ;Etiqueta 'periodico_div'
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;AJUSTAR PARA IMPRESION
;;ajustar la parte entera
MOV SI,13h ;Asigna 13h a SI
JMP inicia_ajuste_div ;Salta a la etiqueta 'inicia_ajuste_div'
salta_fin_div: ;Etiqueta 'salta_fin_div'
DEC SI ;Decrementa en uno el valor de SI
JMP inicia_ajuste_div ;Salta a la etiqueta 'inicia_ajuste_div'
inicia_ajuste_div: ;Etiqueta 'inicia_ajuste_div'
MOV AL,num_res[SI] ;Asigna el contenido de num_res[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE salta_fin_div ;Salta si es igual a la etiqueta 'salta_fin_div'
ADD AL,30h ;AGREGA 30h a AL
MOV num_res[SI],AL ;lo devuelve convertido en ascii a la posicion de donde lo tomo
DEC SI ;Decrementa en uno el valor de SI
JNS inicia_ajuste_div ;Salta a la etiqueta 'inicia_ajuste_div' si no hay signo el ZF
;;ajustar la parte decimal
MOV SI,13h ;Asigna 13h a SI
JMP inicia_ajuste_d_div ;Salta a la etiqueta 'inicia_ajuste_d_div'
salta_fin_d_div: ;Etiqueta 'salta_fin_d_div'
DEC SI ;Decrementa en uno el valor de SI
JMP inicia_ajuste_d_div ;Salta a la etiqueta 'inicia_ajuste_d_div'
inicia_ajuste_d_div: ;Etiqueta 'inicia_ajuste_d_div'
MOV AL,decimales_Res[SI] ;Asigna el contenido de decimales_Res[SI] a AL
CMP AL,24h ;si es el fin de cadena
JE salta_fin_d_div ;Salta si es igual a la etiqueta 'salta_fin_d_div'
ADD AL,30h ;AGREGA 30h a AL
MOV decimales_Res[SI],AL ;Asigna el contenido de AL a decimales_Res[SI]
DEC SI ;Decrementa en uno el valor de SI
JNS inicia_ajuste_d_div ;Salta a la etiqueta 'inicia_ajuste_d_div' si no hay signo el ZF
MOV decimales_Res[0h],07h ;limpiar el acarreo
CALL AJUSTE_PARA_IMPRESION ;Llamada al procedimiento 'AJUSTE_PARA_IMPRESION'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
DIVIDE ENDP ;Fin del procedimiento
;-------------------------------------------------------------------------
;______________________PROC_AJUSTE ASCII POST OPERACIONAL________________
AJUSTE_PARA_IMPRESION PROC NEAR ;Inicia prodecimiento cercano 'AJUSTE_PARA_IMPRESION'
CALL AJUSTE_CEROS_IZQUIERDA ;remover ceros a la izquierda antes de imprimir
;;AJUSTAR PARA IMPRESION
;;ajustar la parte entera
MOV DI,0000H ;Asigna 0000H a DI
MOV SI,0000H ;Asigna 0000H a SI
;REVISAMOS SI TIENE SIGNO PARA MOSTRARLO EN EL RESULTADO
CMP es_negativo_res,01h ;Compara es_negativo_res con 01h
JE agrega_signo_resultado ;Salta si es igual a la etiqueta 'agrega_signo_resultado'
JMP sin_signo_resultado ;Salta a la etiqueta 'sin_signo_resultado'
agrega_signo_resultado: ;Etiqueta 'agrega_signo_resultado'
MOV resultado_str[DI],'-' ;Asigna el contenido de '-' a resultado_str[DI]
INC DI ;Incrementa en uno el valor de DI
sin_signo_resultado: ;Etiqueta 'sin_signo_resultado'
MOV es_negativo_res,00h ;Asigna 00h a es_negativo_res
MOV CX,14H ;longuitud del resultado en su parte entera
siguiente_resultado_str: ;Etiqueta 'siguiente_resultado_str'
MOV AL,num_res[SI] ;Asigna el contenido de num_res[SI] a AL
MOV resultado_str[DI],AL ;Asigna el contenido de AL a resultado_str[DI]
INC SI ;Incrementa en uno el valor de SI
INC DI ;Incrementa en uno el valor de DI
LOOP siguiente_resultado_str ;Salta a la etiqueta 'siguiente_resultado_str' y decrementa CX mientras no sea cero
CMP sin_punto,01h ;Compara sin_punto con 01h
JE sin_punto_impresion ;Salta si es igual a 'sin_punto_impresion'
MOV resultado_str[DI],'.' ;Asigna el contenido de '.' a resultado_str[DI]
INC DI ;Incrementa en uno el valor de DI
sin_punto_impresion: ;Etiqueta 'sin_punto_impresion'
MOV CX,014H ;longuitud del resultado en su parte decimal exceptuando el primer decimal
MOV SI,0001H ;INICIAMOS DESPUES DEL PRIMER DIGITO DECIMAL
MOV decimales_res[0h],07h ;Asigna 07h a decimales_res[0h]
siguiente_decimal_str: ;Etiqueta 'siguiente_decimal_str'
MOV AL,decimales_res[SI] ;Asigna el contenido de decimales_res[SI] a AL
MOV resultado_str[DI],AL ;Asigna el contenido de AL a resultado_str[DI]
INC SI ;Incrementa en uno el valor de SI
INC DI ;Incrementa en uno el valor de DI
LOOP siguiente_decimal_str ;Salta a la etiqueta 'siguiente_decimal_str' y decrementa CX mientras no sea cero
MOV resultado_str[DI],'$' ;Termina la cadena del resultado
RET ;Retorna el control a la direccion de el SP desde donde se llamo
AJUSTE_PARA_IMPRESION ENDP ;Fin del procedimiento
;---------------------ENTRADA-------------------
ENTRADA_PROC proc near ;Inicia prodecimiento cercano 'ENTRADA_'
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
;Guarda el estado actual de los registros de proposito general
CMP posicion_entrada,00h ;Compara posicion_entrada con 00h
JE primer_entrada ;Salta si es igual a la etiqueta 'primer_entrada'
JMP no_primer_entrada ;Salta a la etiqueta 'no_primer_entrada'
primer_entrada: ;Etiqueta 'primer_entrada'
MOV resultado_entero_div,00h ;Asigna 00h a resultado_entero_div
MOV es_negativo_resuido_div,00h ;no hay signo en la parte entera
MOV num1_signo,00h ;Asigna 00h a num1_signo
MOV num2_signo,00h ;Asigna 00h a num2_signo
MOV es_negativo_res,00h ;Asigna 00h a es_negativo_res
MOV operacion,00h ;Asigna 00h a operacion
MOV dividi_una_vez,00h ;Asigna 00h a dividi_una_vez
MOV acarreo,00h ;Asigna 00h a acarreo
MOV DI,0000H ;Asigna 0000H a DI
MOV sin_punto,0h ;Asigna 0h a sin_punto
limpia_anterior_entrada: ;Etiqueta 'limpia_anterior_entrada'
MOV num1[DI],00h ;Asigna 00h a num1[DI]
MOV num2[DI],00h ;Asigna 00h a num2[DI]
MOV decimales_1[DI],00h ;Asigna 00h a decimales_1[DI]
MOV decimales_2[DI],00h ;Asigna 00h a decimales_2[DI]
MOV num_res_div[DI],00h ;Asigna 00h a num_res_div[DI]
MOV decimales_Res_div[DI],00h ;Asigna 00h a decimales_Res_div[DI]
MOV ajuste_decimales_1[DI],00h ;Asigna 00h a ajuste_decimales_1[DI]
MOV ajuste_decimales_2[DI],00h ;Asigna 00h a ajuste_decimales_2[DI]
MOV num_1_mul[DI],00h ;Asigna 00h a num_1_mul[DI]
MOV num_2_mul[DI],00h ;Asigna 00h a num_2_mul[DI]
MOV decimal_1_mul[DI],00h ;Asigna 00h a decimal_1_mul[DI]
MOV decimal_2_mul[DI],00h ;Asigna 00h a decimal_2_mul[DI]
INC DI ;Incrementa en uno el valor de DI
CMP DI,09H ;Compara DI con 09H
JLE limpia_anterior_entrada ;Salta a la etiqueta 'limpia_anterior_entrada' si es menor o igual
MOV DI,0000H ;Asigna 0000H a DI
limpia_anterior_resultado: ;Etiqueta 'limpia_anterior_resultado'
MOV num_res[DI],00h ;Asigna 00h a num_res[DI]
MOV decimales_Res[DI],00h ;Asigna 00h a decimales_Res[DI]
INC DI ;Incrementa en uno el valor de DI
CMP DI,13H ;Compara DI con 13H
JLE limpia_anterior_resultado ;Salta a la etiqueta 'limpia_anterior_resultado' si es menor o igual
MOV DI,0000H ;Asigna 0000H a DI
clean_mult: ;Etiqueta 'clean_mult'
MOV num_res_mul[DI],00H ;Asigna 00H a num_res_mul[DI]
MOV decimal_res_mul[DI],00H ;Asigna 00H a decimal_res_mul[DI]
INC DI ;Incrementa en uno el valor de DI
CMP DI,11H ;Compara DI con 11H
JLE clean_mult ;Salta a la etiqueta 'clean_mult' si es menor o igual
MOV DI,0000H ;Asigna 0000H a DI
JMP no_primer_entrada ;Salta a la etiqueta 'no_primer_entrada'
no_primer_entrada: ;Etiqueta 'no_primer_entrada'
CMP AL,03Ah ;si el caracter es '='
JE Enm_Resuelve ;Salta si es igual a la etiqueta 'Enm_Resuelve'
CMP AX,0E0Ch ;si el caracter nos indica un retroceso
JE retrocede ;Salta si es igual a la etiqueta 'retrocede'
JMP no_retrocede ;Salta a la etiqueta 'no_retrocede'
posicion_cero: ;Etiqueta 'posicion_cero'
MOV DI,0000h ;Asigna 0000h a DI
JMP borra_entrada ;Salta a la etiqueta 'borra_entrada'
retrocede: ;Etiqueta 'retrocede'
MOV DI,posicion_entrada ;Asigna el contenido de posicion_entrada a DI
DEC DI ;Decrementa en uno el valor de DI
JS posicion_cero ;Salta a la etiqueta 'posicion_cero' si hay signo el ZF
borra_entrada: ;Etiqueta 'borra_entrada'
MOV posicion_entrada,DI ;Asigna el contenido de DI a posicion_entrada
MOV display_str[DI],"$" ;Asigna el contenido de "$" a display_str[DI]
JMP Enm_Salir ;Salta a la etiqueta 'Enm_Salir'
no_retrocede: ;Etiqueta 'no_retrocede'
MOV DI,posicion_entrada ;Asigna el contenido de posicion_entrada a DI
MOV DL,AL ;posicion final en x
MOV display_str[DI],Dl ;Asigna el contenido de Dl a display_str[DI]
MOV display_str[DI+1],"$" ;Asigna el contenido de "$" a display_str[DI+1]
INC posicion_entrada ;Incrementa en uno el valor de posicion_entrada
JMP Enm_Salir ;Salta a la etiqueta 'Enm_Salir'
Enm_Resuelve: ;Etiqueta 'Enm_Resuelve'
CALL RESOLVER ;Llamada al procedimiento 'RESOLVER'
Enm_Salir: ;Etiqueta 'Enm_Salir'
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
RET ;Retorna el control a la direccion de el SP desde donde se llamo
ENTRADA_PROC ENDP ;Fin del procedimiento
;----------------------------REMOVER CEROS A LA IZQUIERDA PROC-----------------------------
AJUSTE_CEROS_IZQUIERDA PROC NEAR ;Inicia prodecimiento cercano 'AJUSTE_CEROS_IZQUIERDA'
;;REMOVER LOS CEROS A LA IZUIERDA DEL RESULTADO Y REEMPLAZARLOS CON 20h
;;ajustar la parte entera
MOV DI,00h ;Asigna 00h a DI
siguiente_cero: ;Etiqueta 'siguiente_cero'
CMP num_res[DI],30h ;si el digito mas a la izquierda es cero
JNE no_hay_mas_ceros_enteros ;si el numero es diferente de cero ya terminamos el ajuste
;si es cero y no es el unico removerlo!
CMP DI,13h ;Compara DI con 00h
JE resultado_es_cero ;Salta si es igual a 'resultado_es_cero'
MOV num_res[DI],07h ;reemplazar ceros por 07h (campana)
INC DI ;Incrementa en uno el valor de DI
CMP DI,13h ;evitar el ultimo cero por si el resultado es cero (0+0=0)
JLE siguiente_cero ;Salta a la etiqueta 'siguiente_cero' si es menor o igual
JMP no_hay_mas_ceros_enteros ;Salta a la etiqueta 'resultado_es_cero'
resultado_es_cero: ;Etiqueta 'resultado_es_cero'
MOV num_res[DI],30h ;Asigna 30h a num_res[DI]
;;ajustar la parte decimal
no_hay_mas_ceros_enteros: ;Etiqueta 'no_hay_mas_ceros_enteros'
MOV DI,13h ;Asigna 13h a DI
siguiente_cero_decimal: ;Etiqueta 'siguiente_cero_decimal'
CMP decimales_Res[DI],30h ;Compara decimales_Res[DI] con 30h
JNE fin_ajuste_cero_decimal ;si el numero es diferente de cero ya terminamos el ajuste
;si es cero removerlo!
MOV decimales_Res[DI],07h ;Asigna 07h a decimales_Res[DI]
DEC DI ;Decrementa en uno el valor de DI
CMP DI,01h ;si el resultado es cero salta a 'sin_punto_x_cero'
JL sin_punto_x_cero ;hasta el principio de los decimales
JAE siguiente_cero_decimal ;Salta a la etiqueta 'siguiente_cero_decimal' si es mayor o igual
fin_ajuste_cero_decimal: ;Etiqueta 'fin_ajuste_cero_decimal'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
sin_punto_x_cero: ;etiqueta 'sin_punto_x_cero'
MOV sin_punto,01h ;enciende la bandera que nos indica que no hay punto
RET ;Retorna el control a la direccion de el SP desde donde se llamo
AJUSTE_CEROS_IZQUIERDA ENDP ;Fin del procedimiento
;----------------------MOUSE Y TECLADO
MOUSE PROC NEAR ;Inicia prodecimiento cercano 'MOUSE'
SalvaRegistros ;Guarda el estado actual de los registros de proposito general
RestituyeRegistros ;Restituye los registros de prosito general en 0
check_mouse_buttons: ;Etiqueta 'check_mouse_buttons'
mov ax, 05h ;asignamosa Ax 05 para que junto con la int 33 y
MOV bx,00h ;en bx enviamos el boton del mouse el cual queremos saber si se presiono
;click izquierdo=0, cick derecho=1
int 33h ;regresa la veces que se preisono en bx y las coordenadas X,Y del mouse en CX,DX
mov curX, cx ;Asigna el contenido de cx a curX
mov curY, dx ;Asigna el contenido de dx a curY
cmp bx, 1 ; si se presiono al menos una vez
JAE click ;ocultar el mouse y ejecutar la seleccion
;ESPERAR POR EL TECLADO
XOR AX,AX ;Resituye el registro AX a ceros por medio de XOR
mov ah, 01h ;Asigna 01h a ah
int 16h ;Interrupcion 16h (funciones de llamada al teclado)
jnz TECLA_PRESIONADA ;Salta a la etiqueta 'TECLA_PRESIONADA' si no hay signo el ZF
jmp check_mouse_buttons ;Salta a la etiqueta 'check_mouse_buttons'
TECLA_PRESIONADA: ;Etiqueta 'TECLA_PRESIONADA'
MOV registros_tbl[0h],AX ;Asigna el contenido de AX a registros_tbl[0h]
MOV AH,0Ch ;Asigna 0Ch a AH
MOV AL,0 ;Asigna 0 a AL
INT 21H ;Interrupcion 21h (funciones de el DOS API)
RecuperaRegistros ;Reestablece los registros de proposito general al ultimo estado en el que se salvaron
ret ;Retorna el control a la direccion de el SP desde donde se llamo
click: ;Etiqueta 'click'
XOR BX,BX ;Resituye el registro BX a ceros por medio de XOR
JMP click_valido ;Salta a la etiqueta 'click_valido'
click_invalido: ;Etiqueta 'click_invalido'
JMP check_mouse_buttons ;Salta a la etiqueta 'check_mouse_buttons'
click_valido: ;Etiqueta 'click_valido'
;LOS BOTONES DE LOS OPERADORES Y NUMEROS EN X VAN DESDE 28h HASTA 70h EN Y
CMP curY,28h ;si es menor o igual que 28h no esta en ningun boton
JL click_invalido ;Salta a la etiqueta 'click_invalido' si es menor
CMP curY,70h ;si es mayor o igual que 70h no esta en ningun boton
JAE click_invalido ;Salta a la etiqueta 'click_invalido' si es mayor o igual
CMP curY,50h ;los botones numeros y igual van desde el 50h en Y
JAE numeros ;si es mayor o igual a 50h estamos en el panel de operadores
JMP operadores ;si es menor que 50h estamos el en panel numerico
operadores: ;Etiqueta 'operadores'
;COMPARAMOS SOBRE QUE OPERACION SE DIO CLICK
;la suma va del 30h al A0h
CMP CurX,0A0h ;Compara CurX con 0A0h
JA no_es_suma ;Salta si es mayor a la etiqueta 'no_es_suma'
MOV seleccion,00h ;asigna 0 a la seleccion (valor del primer boton de la primer fila)
MOV AL,2BH ;Asigna 2BH a AL
ret ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_suma: ;Etiqueta 'no_es_suma'
;la resta va hasta el 110h
CMP CurX,130h ;Compara CurX con 130h
JA no_es_resta ;Salta si es mayor a la etiqueta 'no_es_resta'
MOV seleccion,01h ;Asigna 01h a seleccion
MOV AL,2Dh ;Asigna 2Dh a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_resta: ;Etiqueta 'no_es_resta'
;la multiplicacion va hasta el 1AA
CMP CurX,1AAh ;Compara CurX con 1AAh
JA no_es_multiplica ;Salta si es mayor a la etiqueta 'no_es_multiplica'
MOV seleccion,02h ;Asigna 02h a seleccion
MOV AL,2Ah ;Asigna 2Ah a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_multiplica: ;Etiqueta 'no_es_multiplica'
;la division va hasta el 1F0h
CMP CurX,230h ;Compara CurX con 230h
JA no_es_divide ;Salta si es mayor a la etiqueta 'no_es_divide'
MOV seleccion,03h ;Asigna 03h a seleccion
MOV AL,2Fh ;Asigna 2Fh a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_divide: ;Etiqueta 'no_es_divide'
;si no fue ningun operando el click es erroneo
JMP check_mouse_buttons ;Salta a la etiqueta 'check_mouse_buttons'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
numeros: ;Etiqueta 'numeros'
;el numero 0 va desde el 30h al 50h
CMP CurX,50h ;Compara CurX con 50h
JA no_es_cero ;Salta si es mayor a la etiqueta 'no_es_cero'
MOV SELECCION,04h ;Asigna 04h a SELECCION
MOV AL,30h ;Asigna 30h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_cero: ;Etiqueta 'no_es_cero'
;el numero 1 va desde el 50h al 70h
CMP CurX,80h ;Compara CurX con 80h
JA no_es_uno ;Salta si es mayor a la etiqueta 'no_es_uno'
MOV SELECCION,05h ;Asigna 05h a SELECCION
MOV AL,31h ;Asigna 31h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_uno: ;Etiqueta 'no_es_uno'
;el numero 2 va desde el 70h al A0h
CMP CurX,0B0h ;Compara CurX con 0B0h
JA no_es_dos ;Salta si es mayor a la etiqueta 'no_es_dos'
MOV SELECCION,06h ;Asigna 06h a SELECCION
MOV AL,32h ;Asigna 32h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_dos: ;Etiqueta 'no_es_dos'
;el numero 3 va desde el 90h al B0h
CMP CurX,0E0h ;Compara CurX con 0E0h
JA no_es_tres ;Salta si es mayor a la etiqueta 'no_es_tres'
MOV SELECCION,07h ;Asigna 07h a SELECCION
MOV AL,33h ;Asigna 33h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_tres: ;Etiqueta 'no_es_tres'
;el numero 4 va desde el 30h al 50h
CMP CurX,0110h ;Compara CurX con 0110h
JA no_es_cuatro ;Salta si es mayor a la etiqueta 'no_es_cuatro'
MOV SELECCION,08h ;Asigna 08h a SELECCION
MOV AL,34h ;Asigna 34h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_cuatro: ;Etiqueta 'no_es_cuatro'
;el numero 5 va desde el 30h al 50h
CMP CurX,0140h ;Compara CurX con 0140h
JA no_es_cinco ;Salta si es mayor a la etiqueta 'no_es_cinco'
MOV SELECCION,09h ;Asigna 09h a SELECCION
MOV AL,35h ;Asigna 35h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_cinco: ;Etiqueta 'no_es_cinco'
;el numero 6 va desde el 30h al 50h
CMP CurX,170h ;Compara CurX con 170h
JA no_es_seis ;Salta si es mayor a la etiqueta 'no_es_seis'
MOV SELECCION,0Ah ;Asigna 0Ah a SELECCION
MOV AL,36h ;Asigna 36h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_seis: ;Etiqueta 'no_es_seis'
;el numero 7 va desde el 30h al 50h
CMP CurX,1A0h ;Compara CurX con 1A0h
JA no_es_siete ;Salta si es mayor a la etiqueta 'no_es_siete'
MOV SELECCION,0Bh ;Asigna 0Bh a SELECCION
MOV AL,37h ;Asigna 37h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_siete: ;Etiqueta 'no_es_siete'
;el numero 8 va desde el 30h al 50h
CMP CurX,1D0h ;Compara CurX con 1D0h
JA no_es_ocho ;Salta si es mayor a la etiqueta 'no_es_ocho'
MOV SELECCION,0Ch ;Asigna 0Ch a SELECCION
MOV AL,38h ;Asigna 38h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_ocho: ;Etiqueta 'no_es_ocho'
;el numero 9 va desde el 30h al 50h
CMP CurX,200h ;Compara CurX con 200h
JA no_es_nueve ;Salta si es mayor a la etiqueta 'no_es_nueve'
MOV SELECCION,0Dh ;Asigna 0Dh a SELECCION
MOV AL,39h ;Asigna 39h a AL
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_nueve: ;Etiqueta 'no_es_nueve'
;el signo = va desde el 30h al 50h
CMP CurX,230h ;Compara CurX con 230h
JA no_es_igual ;Salta si es mayor a la etiqueta 'no_es_igual'
MOV SELECCION,0Eh ;Asigna 0Eh a SELECCION
MOV AX,0B3Dh ;Asigna 0B3Dh a AX
RET ;Retorna el control a la direccion de el SP desde donde se llamo
no_es_igual: ;Etiqueta 'no_es_igual'
RET ;Retorna el control a la direccion de el SP desde donde se llamo
STOP: ;Etiqueta 'STOP'
XOR AX,AX ;Resituye el registro AX a ceros por medio de XOR
INT 16H ;Interrupcion 16h (funciones de llamada al teclado)
RET ;Retorna el control a la direccion de el SP desde donde se llamo
MOUSE endp ;Fin del procedimiento
end begin ;Fin de programa
| 94.950202
| 186
| 0.373309
|
56ae633c0260b8d31935237973cdfd9ed45e5f86
| 7,779
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1120.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1120.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1120.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 %r11
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1cd0d, %r15
nop
nop
nop
sub $14696, %r9
movw $0x6162, (%r15)
nop
nop
nop
sub $27478, %rcx
lea addresses_A_ht+0x138ab, %rax
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %r10
movq %r10, %xmm4
and $0xffffffffffffffc0, %rax
vmovaps %ymm4, (%rax)
nop
nop
nop
nop
xor %r9, %r9
lea addresses_A_ht+0x6fab, %rsi
lea addresses_normal_ht+0xffab, %rdi
nop
nop
nop
nop
nop
xor %r11, %r11
mov $117, %rcx
rep movsw
nop
nop
nop
nop
and %r10, %r10
lea addresses_UC_ht+0x189fb, %rax
nop
nop
nop
nop
cmp %r9, %r9
mov $0x6162636465666768, %r10
movq %r10, %xmm1
movups %xmm1, (%rax)
nop
dec %rsi
lea addresses_normal_ht+0xb7cf, %rsi
nop
nop
nop
nop
sub %r10, %r10
movb $0x61, (%rsi)
nop
nop
nop
nop
add %r15, %r15
lea addresses_A_ht+0x15fab, %rsi
lea addresses_normal_ht+0x1d8b, %rdi
nop
nop
xor $27881, %r15
mov $110, %rcx
rep movsw
add %r15, %r15
lea addresses_D_ht+0x20ab, %rsi
lea addresses_WC_ht+0x642b, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
dec %rax
mov $113, %rcx
rep movsq
add %rdi, %rdi
lea addresses_WC_ht+0x429f, %r11
nop
nop
nop
nop
nop
xor $60214, %rax
movb $0x61, (%r11)
nop
nop
nop
nop
nop
cmp $34717, %r10
lea addresses_normal_ht+0x1e8ab, %r11
nop
nop
nop
nop
and %r10, %r10
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
add %r10, %r10
lea addresses_D_ht+0xd1ab, %rsi
nop
nop
add %r10, %r10
movups (%rsi), %xmm0
vpextrq $0, %xmm0, %rdi
nop
nop
cmp $12250, %rsi
lea addresses_A_ht+0x11bab, %rsi
lea addresses_normal_ht+0x1b5ab, %rdi
nop
nop
and $48603, %r9
mov $58, %rcx
rep movsb
xor $54354, %r9
lea addresses_A_ht+0x1cdab, %rcx
nop
nop
add %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
nop
nop
nop
nop
sub %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %rax
push %rbx
push %rdi
push %rsi
// Store
lea addresses_normal+0x108ab, %rdi
cmp %rsi, %rsi
mov $0x5152535455565758, %rax
movq %rax, %xmm1
vmovups %ymm1, (%rdi)
nop
xor %r14, %r14
// Store
lea addresses_PSE+0xbe5f, %r12
nop
nop
nop
and %rbx, %rbx
mov $0x5152535455565758, %r14
movq %r14, %xmm7
vmovups %ymm7, (%r12)
nop
nop
nop
nop
nop
and $50575, %rax
// Faulty Load
mov $0x4e28d40000000bab, %r13
clflush (%r13)
nop
nop
nop
nop
and %rax, %rax
vmovups (%r13), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rsi
lea oracles, %r12
and $0xff, %rsi
shlq $12, %rsi
mov (%r12,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rbx
pop %rax
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 6, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 32.278008
| 2,999
| 0.660239
|
e2ba71bcd3ad98b44cef254e3df1be9bbfa8d9c4
| 268
|
asm
|
Assembly
|
assemblyaddition.asm
|
manas1410/Miscellaneous-Development
|
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
|
[
"MIT"
] | null | null | null |
assemblyaddition.asm
|
manas1410/Miscellaneous-Development
|
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
|
[
"MIT"
] | 2
|
2020-09-30T20:36:01.000Z
|
2020-10-04T07:12:03.000Z
|
assemblyaddition.asm
|
manas1410/Miscellaneous-Development
|
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
|
[
"MIT"
] | 7
|
2020-09-30T18:39:49.000Z
|
2020-10-16T17:59:17.000Z
|
DATA SEGMENT
NUM1 DB 9H
NUM2 DB 7H
RESULT DB ?
ENDS
CODE SEGMENT
ASSUME DS:DATA CS:CODE
START:
MOV AX,DATA
MOV DS,AX
MOV AL,NUM1
ADD AL,NUM2
MOV RESULT,AL
MOV AH,4CH
INT 21H
ENDS
END START
| 12.181818
| 26
| 0.537313
|
b2b95028444325056eaf1bd4efc1fc9794d1f33f
| 883
|
asm
|
Assembly
|
win16/lesson03.asm
|
mashingan/notes-asmtutor
|
88532e0b364a63cd1e7578a537807795d429fc2f
|
[
"MIT"
] | 1
|
2021-11-05T06:41:49.000Z
|
2021-11-05T06:41:49.000Z
|
win16/lesson03.asm
|
mashingan/notes-asmtutor
|
88532e0b364a63cd1e7578a537807795d429fc2f
|
[
"MIT"
] | null | null | null |
win16/lesson03.asm
|
mashingan/notes-asmtutor
|
88532e0b364a63cd1e7578a537807795d429fc2f
|
[
"MIT"
] | null | null | null |
;; With kernel interrupt 9, dos already know the end of string when it finds
;; the '$', but in this case we reuse the dos3.0+ internal of
;; ax=1212h which read the length in si
;; or ax=1255h which read the length in di
;; so we emulate the print with ax=2h for print a character until cx=0
;; if we interrupt using int 2fh
;; ======
;; apparently the cx always 0 even after calling the int 2fh so we opt to
;; manual counting which compare to '0' and '$' because dos recognize the '$'
;; as end of string
org 256
start:
xor cx, cx
mov si, hello
.nextchar:
cmp byte [si], 0
je @f
cmp byte [si], '$'
je @f
inc cx
inc si
jmp .nextchar
@@:
mov si, hello
mov di, cx
.printchar:
mov bx, di
sub bx, cx
mov ah, 2h
mov dl, byte [si+bx]
int 21h
loopw .printchar
.exit:
int 20h
hello db 'Hello world!', 0h, 0h
| 22.641026
| 77
| 0.626274
|
22ff52dc29d9c0ba7fbd45a329ad40f441b32ca8
| 875
|
asm
|
Assembly
|
programs/oeis/080/A080100.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/080/A080100.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/080/A080100.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A080100: a(n) = 2^(number of 0's in binary representation of n).
; 1,1,2,1,4,2,2,1,8,4,4,2,4,2,2,1,16,8,8,4,8,4,4,2,8,4,4,2,4,2,2,1,32,16,16,8,16,8,8,4,16,8,8,4,8,4,4,2,16,8,8,4,8,4,4,2,8,4,4,2,4,2,2,1,64,32,32,16,32,16,16,8,32,16,16,8,16,8,8,4,32,16,16,8,16,8,8,4,16,8,8,4,8,4,4,2,32,16,16,8,16,8,8,4,16,8,8,4,8,4,4,2,16,8,8,4,8,4,4,2,8,4,4,2,4,2,2,1,128,64,64,32,64,32,32,16,64,32,32,16,32,16,16,8,64,32,32,16,32,16,16,8,32,16,16,8,16,8,8,4,64,32,32,16,32,16,16,8,32,16,16,8,16,8,8,4,32,16,16,8,16,8,8,4,16,8,8,4,8,4,4,2,64,32,32,16,32,16,16,8,32,16,16,8,16,8,8,4,32,16,16,8,16,8,8,4,16,8,8,4,8,4,4,2,32,16,16,8,16,8,8,4,16,8,8,4,8,4,4,2,16,8,8,4,8,4,4,2,8,4
mov $9,1
lpb $9
mov $1,3
mov $3,1
sub $9,1
lpb $0
mov $2,$1
mov $1,2
gcd $1,$0
lpb $1,7
div $2,$2
mul $3,2
lpe
div $0,2
lpe
lpe
mov $1,$3
sub $1,2
div $1,2
add $1,1
| 36.458333
| 595
| 0.549714
|
95f73123b1fc6f09bfca4e72db64995d566f593d
| 394
|
asm
|
Assembly
|
programs/oeis/010/A010139.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/010/A010139.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/010/A010139.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A010139: Continued fraction for sqrt(53).
; 7,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3,14,3,1,1,3
seq $0,10186 ; Continued fraction for sqrt(125).
sub $0,1
mul $0,2
add $2,$0
lpb $2
sub $0,1
div $2,6
lpe
div $0,3
add $0,1
| 28.142857
| 220
| 0.583756
|
68ccd203a0b88bad72db3f8acc42eba29aabe2f7
| 368
|
asm
|
Assembly
|
programs/oeis/071/A071906.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/071/A071906.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/071/A071906.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A071906: Sum of digits of 2^n (mod 2).
; 1,0,0,0,1,1,0,1,1,0,1,0,1,0,0,0,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,0,1,1,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0,1,1,1,0,1,1,0,1
seq $0,51 ; a(n) = 2^n + 1.
seq $0,7953 ; Digital sum (i.e., sum of digits) of n; also called digsum(n).
add $0,13
mod $0,2
| 46
| 201
| 0.540761
|
47f235222abddcf61695a86f28a888780b200e8f
| 366
|
asm
|
Assembly
|
asm/Boot-Sector Programing - Nick Blundell/lecture_2.3.asm
|
m-ahmadi/exref
|
1f76ea029995d2f60f19443b29c04c7628125ce3
|
[
"MIT"
] | 9
|
2019-08-28T16:06:21.000Z
|
2022-01-31T10:36:08.000Z
|
asm/Boot-Sector Programing - Nick Blundell/lecture_2.3.asm
|
m-ahmadi/exref
|
1f76ea029995d2f60f19443b29c04c7628125ce3
|
[
"MIT"
] | 1
|
2022-02-23T05:50:57.000Z
|
2022-02-25T16:56:02.000Z
|
asm/Boot-Sector Programing - Nick Blundell/lecture_2.3.asm
|
m-ahmadi/exref
|
1f76ea029995d2f60f19443b29c04c7628125ce3
|
[
"MIT"
] | 5
|
2019-08-28T16:06:23.000Z
|
2022-02-19T20:24:41.000Z
|
mov ah, 0x0e ; BIOS scrolling teletype function
mov al, 'H'
int 0x10
mov al, 'e'
int 0x10
mov al, 'l'
int 0x10
mov al, 'l'
int 0x10
mov al, 'o'
int 0x10
mov al, ' '
int 0x10
mov al, 'W'
int 0x10
mov al, 'o'
int 0x10
mov al, 'r'
int 0x10
mov al, 'l'
int 0x10
mov al, 'd'
int 0x10
mov al, ' '
int 0x10
mov al, '!'
int 0x10
jmp $
times (510-($-$$)) db 0
db 0x55, 0xaa
| 11.4375
| 47
| 0.622951
|
178a7c20f4988bf360ed35f2d511ac803b012a61
| 220
|
asm
|
Assembly
|
pwnlib/shellcraft/templates/aarch64/linux/setsid.asm
|
zaratec/pwntools
|
8793decd1c9b8c822e3db6c27b9cbf6e8cddfeba
|
[
"MIT"
] | 5
|
2018-05-15T13:00:56.000Z
|
2020-02-09T14:29:00.000Z
|
pwnlib/shellcraft/templates/aarch64/linux/setsid.asm
|
FDlucifer/binjitsu
|
999ad632004bfc3e623eead20eb11de98fc1f4dd
|
[
"MIT"
] | null | null | null |
pwnlib/shellcraft/templates/aarch64/linux/setsid.asm
|
FDlucifer/binjitsu
|
999ad632004bfc3e623eead20eb11de98fc1f4dd
|
[
"MIT"
] | 6
|
2017-09-07T02:31:11.000Z
|
2021-07-05T16:59:18.000Z
|
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall setsid. See 'man 2 setsid' for more information.
Arguments:
</%docstring>
${syscall('SYS_setsid')}
| 15.714286
| 69
| 0.686364
|
643b385fab3b526283bd6448d66296527715b63d
| 6,575
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1055.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_1055.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_1055.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 %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x4f16, %rsi
lea addresses_WT_ht+0x1c38a, %rdi
nop
nop
and %rdx, %rdx
mov $105, %rcx
rep movsw
nop
nop
nop
inc %r12
lea addresses_normal_ht+0x1ae4c, %rsi
lea addresses_WT_ht+0x150bc, %rdi
nop
nop
nop
sub %r13, %r13
mov $92, %rcx
rep movsq
nop
nop
add $2703, %r12
lea addresses_A_ht+0x3a8a, %r12
nop
nop
nop
nop
nop
sub $9332, %rcx
movl $0x61626364, (%r12)
nop
sub $38829, %r12
lea addresses_D_ht+0x14c56, %rsi
lea addresses_UC_ht+0x1b2ca, %rdi
nop
cmp $32222, %r14
mov $16, %rcx
rep movsb
xor $28198, %rdi
lea addresses_WT_ht+0x19b4a, %rdi
inc %rsi
movups (%rdi), %xmm5
vpextrq $1, %xmm5, %r14
nop
nop
nop
nop
nop
inc %rdi
lea addresses_UC_ht+0x1b58a, %rsi
lea addresses_D_ht+0x132ca, %rdi
sub %rbx, %rbx
mov $25, %rcx
rep movsb
nop
nop
nop
nop
and $53746, %rcx
lea addresses_D_ht+0x238a, %rsi
lea addresses_normal_ht+0xb38a, %rdi
clflush (%rsi)
nop
nop
nop
and $21404, %r14
mov $81, %rcx
rep movsq
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0x5d8a, %r12
nop
nop
dec %rbx
vmovups (%r12), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rsi
nop
nop
nop
nop
xor $53162, %rbx
lea addresses_D_ht+0x138aa, %rdx
clflush (%rdx)
nop
nop
inc %rsi
mov (%rdx), %r12d
nop
xor %rsi, %rsi
lea addresses_WT_ht+0xe38a, %rsi
lea addresses_normal_ht+0x1d552, %rdi
nop
nop
nop
add %r13, %r13
mov $64, %rcx
rep movsw
nop
nop
sub %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %rcx
push %rsi
// Faulty Load
lea addresses_PSE+0x1878a, %rsi
cmp %rcx, %rcx
movb (%rsi), %r14b
lea oracles, %rsi
and $0xff, %r14
shlq $12, %r14
mov (%rsi,%r14,1), %r14
pop %rsi
pop %rcx
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 39.371257
| 2,999
| 0.661749
|
31d131d449850ee2a5db10255303e04a68542e46
| 736
|
asm
|
Assembly
|
oeis/279/A279557.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/279/A279557.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/279/A279557.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A279557: Number of length n inversion sequences avoiding the patterns 110, 120, and 021.
; Submitted by Jon Maiga
; 1,1,2,6,20,68,233,805,2807,9879,35073,125513,452389,1641029,5986994,21954974,80884424,299233544,1111219334,4140813374,15478839554,58028869154,218123355524,821908275548,3104046382352,11747506651600,44546351423300,169227201341652,643973514492300,2454475583281868,9369138618324169,35813931416918549,137081932075065263,525353713400309807,2015751124008149541,7742978520054000509,29774186072954835889,114606440210718052561,441564086366680450151,1702840385183220958191,6572504892268134874571
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,99376 ; An inverse Chebyshev transform of x^3.
add $3,$2
lpe
mov $0,$3
add $0,1
| 52.571429
| 486
| 0.830163
|
d61d72662f62aceae7ae7cf184f08313a9398183
| 554
|
asm
|
Assembly
|
programs/oeis/273/A273514.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/273/A273514.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/273/A273514.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A273514: a(n) is the number of arithmetic progressions m < n < p (three numbers in arithmetic progression) such that m and p contain no 2's in their ternary representation.
; 0,0,2,0,0,2,2,2,2,0,0,2,0,0,2,2,2,2,2,2,8,2,2,2,2,2,2,0,0,2,0,0,2,2,2,2,0,0,2,0,0,2,2,2,2,2,2,8,2,2,2,2,2,2,2,2,8,2,2,8,8,8,8,2,2,8,2,2,2,2,2,2,2,2,8,2,2,2,2,2,2,0,0,2,0,0,2,2,2,2,0,0,2,0,0,2,2,2,2,2
mul $0,2
seq $0,120880 ; G.f. satisfies: A(x) = A(x^3)*(1 + 2*x + x^2); thus a(n) = 2^A062756(n), where A062756(n) is the number of 1's in the ternary expansion of n.
div $0,2
| 79.142857
| 201
| 0.617329
|
877156e14cd63500ce98ea6a4e9e9bf2fa4cc0e6
| 1,098
|
asm
|
Assembly
|
3x5/BLM3031 - Microprocessor Systems/Codes/counters.asm
|
LyotardPostmodernizm/YTU-CE
|
99d7fc9526640f08478d72503a0784eb401066ac
|
[
"WTFPL"
] | 1
|
2021-10-31T12:36:02.000Z
|
2021-10-31T12:36:02.000Z
|
3x5/BLM3031 - Microprocessor Systems/Codes/counters.asm
|
LyotardPostmodernizm/YTU-CE
|
99d7fc9526640f08478d72503a0784eb401066ac
|
[
"WTFPL"
] | null | null | null |
3x5/BLM3031 - Microprocessor Systems/Codes/counters.asm
|
LyotardPostmodernizm/YTU-CE
|
99d7fc9526640f08478d72503a0784eb401066ac
|
[
"WTFPL"
] | null | null | null |
;====================================================================
; Main.asm file generated by New Project wizard
;
; Created: Cum Mar 11 2016
; Processor: 8086
; Compiler: MASM32
;
; Before starting simulation set Internal Memory Size
; in the 8086 model properties to 0x10000
;====================================================================
;78H 01111000 cntr0
;7AH 01111010 cntr1
;7CH 01111100 cntr2
;7EH 01111110 control word register
STAK SEGMENT PARA STACK 'STACK'
DW 20 DUP(?)
STAK ENDS
CODE SEGMENT PARA 'CODE'
ASSUME CS:CODE, SS:STAK
START:
MOV AL,00110111B; 0 counter lsb msb mod3 bcd
OUT 7EH,AL
; 2000000/4 = 500 000 = 1000 * 500
MOV AX,1000H; 2m/1000 = 2000hz = saniyede 2000 dalga
OUT 78H,AL
MOV AL,AH
OUT 78H,AL
XOR AX,AX
MOV AL,01110111B; 1 counter lsb msb mod3 bcd
OUT 7EH,AL
XOR AX, AX
MOV AX,500H ;2000/500 = saniyede 4 dalga
OUT 7AH,AL
MOV AL,AH
OUT 7AH,AL
ENDLESS:
JMP ENDLESS
CODE ENDS
END START
| 19.607143
| 69
| 0.538251
|
f80cb2706d8e695373efa9343d395d5cc5ccb3fe
| 2,066
|
asm
|
Assembly
|
programs/oeis/158/A158590.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/158/A158590.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/158/A158590.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A158590: a(n) = 324*n^2 + 18.
; 18,342,1314,2934,5202,8118,11682,15894,20754,26262,32418,39222,46674,54774,63522,72918,82962,93654,104994,116982,129618,142902,156834,171414,186642,202518,219042,236214,254034,272502,291618,311382,331794,352854,374562,396918,419922,443574,467874,492822,518418,544662,571554,599094,627282,656118,685602,715734,746514,777942,810018,842742,876114,910134,944802,980118,1016082,1052694,1089954,1127862,1166418,1205622,1245474,1285974,1327122,1368918,1411362,1454454,1498194,1542582,1587618,1633302,1679634,1726614,1774242,1822518,1871442,1921014,1971234,2022102,2073618,2125782,2178594,2232054,2286162,2340918,2396322,2452374,2509074,2566422,2624418,2683062,2742354,2802294,2862882,2924118,2986002,3048534,3111714,3175542,3240018,3305142,3370914,3437334,3504402,3572118,3640482,3709494,3779154,3849462,3920418,3992022,4064274,4137174,4210722,4284918,4359762,4435254,4511394,4588182,4665618,4743702,4822434,4901814,4981842,5062518,5143842,5225814,5308434,5391702,5475618,5560182,5645394,5731254,5817762,5904918,5992722,6081174,6170274,6260022,6350418,6441462,6533154,6625494,6718482,6812118,6906402,7001334,7096914,7193142,7290018,7387542,7485714,7584534,7684002,7784118,7884882,7986294,8088354,8191062,8294418,8398422,8503074,8608374,8714322,8820918,8928162,9036054,9144594,9253782,9363618,9474102,9585234,9697014,9809442,9922518,10036242,10150614,10265634,10381302,10497618,10614582,10732194,10850454,10969362,11088918,11209122,11329974,11451474,11573622,11696418,11819862,11943954,12068694,12194082,12320118,12446802,12574134,12702114,12830742,12960018,13089942,13220514,13351734,13483602,13616118,13749282,13883094,14017554,14152662,14288418,14424822,14561874,14699574,14837922,14976918,15116562,15256854,15397794,15539382,15681618,15824502,15968034,16112214,16257042,16402518,16548642,16695414,16842834,16990902,17139618,17288982,17438994,17589654,17740962,17892918,18045522,18198774,18352674,18507222,18662418,18818262,18974754,19131894,19289682,19448118,19607202,19766934,19927314,20088342
mov $1,$0
pow $1,2
mul $1,324
add $1,18
| 258.25
| 1,992
| 0.861568
|
257fb0e0f38c197f3e7902d481533b0887798cbd
| 4,959
|
asm
|
Assembly
|
Stm8Invaders/asm/player.asm
|
peteri/Invaders
|
0b08ea6a683d9ea831daa98862601cf74acc3af2
|
[
"MIT"
] | null | null | null |
Stm8Invaders/asm/player.asm
|
peteri/Invaders
|
0b08ea6a683d9ea831daa98862601cf74acc3af2
|
[
"MIT"
] | 32
|
2020-12-26T20:13:11.000Z
|
2021-06-18T01:02:53.000Z
|
Stm8Invaders/asm/player.asm
|
peteri/Invaders
|
0b08ea6a683d9ea831daa98862601cf74acc3af2
|
[
"MIT"
] | null | null | null |
stm8/
.tab 0,8,16,60
#include "player.inc"
#include "variables.inc"
#include "characterrom.inc"
#include "screenhelper.inc"
#include "constants.inc"
segment 'ram1'
saved_shields ds.b shield_size
col_x ds.b 1
segment 'rom'
shields_line_length EQU 20
shields_line_one
dc.b $00,$01,$02,$23,$23,$06,$07,$08,$09,$23
dc.b $23,$0e,$0f,$10,$23,$23,$14,$15,$16,$17
dc.b $ff
shields_line_two
dc.b $03,$04,$05,$23,$23,$0a,$0b,$0c,$0d,$23
dc.b $23,$11,$12,$13,$23,$23,$18,$19,$1a,$1b
dc.b $ff
;=============================================
;
; Reset the player
;
;=============================================
.reset_player.w
ldw x,current_player
ld a,#0
ld (score_offs,x),a
ld ({score_offs+1},x),a
ld (rack_count_offs,x),a
ld a,#1
ld (extra_ship_available_offs,x),a
ld a,#2
ld (ref_alien_delta_x_offs,x),a
ld a,#3
ld (ships_rem_offs,x),a
ld a,#$18
ld (ref_alien_x_offs,x),a
ld a,#$78
ld (ref_alien_y_offs,x),a
call init_aliens
; fall through into reset shields
;=============================================
;
; Reset the shields udg
;
;=============================================
.reset_shields.w
ldw x,#$1b
reset_shields_loop
ldw y,#8
ld a,xl
mul y,a
ld a,({characterrom+$000},x)
ld ({udg+0},y),a
ld a,({characterrom+$100},x)
ld ({udg+1},y),a
ld a,({characterrom+$200},x)
ld ({udg+2},y),a
ld a,({characterrom+$300},x)
ld ({udg+3},y),a
ld a,({characterrom+$400},x)
ld ({udg+4},y),a
ld a,({characterrom+$500},x)
ld ({udg+5},y),a
ld a,({characterrom+$600},x)
ld ({udg+6},y),a
ld a,({characterrom+$700},x)
ld ({udg+7},y),a
decw x
jrpl reset_shields_loop
ret
;=============================================
;
; Swap the shield udg with the saved
; shields also blanks udg characters
; that have been wiped out by the invaders
;
;=============================================
.swap_shields.w
ldw x,#{4 mult scr_width+$07}
ldw y,$0
alien_wipe_loop
ld a,(screen,x)
cp a,#$1c
jruge alien_wipe_check_line_two
ld a,(shields_line_one,y)
cp a,#$20
jrult alien_wipe_check_line_two
call clear_udg
alien_wipe_check_line_two
ld a,({screen-1},x)
cp a,#$1c
jruge alien_wipe_check_loop_done
ld a,(shields_line_two,y)
cp a,#$20
jrult alien_wipe_check_loop_done
call clear_udg
alien_wipe_check_loop_done
addw x,#scr_width
incw y
cpw y,#shields_line_length
jrule alien_wipe_loop
; Swap the udg with saved_shields
ldw x,#0
swap_udg_sheild_loop
ld a,(udg,x)
ld yl,a
ld a,(saved_shields,x)
ld yh,a
ld a,yl
ld (udg,x),a
ld a,yh
ld (saved_shields,x),a
incw x
cpw x,#shield_size
ret
;
; Clear the UDG character in the accumulator
;
clear_udg
pushw y
sll a
sll a
sll a
clrw y
ld yl,a
ld a,#0
ld ({udg+0},y),a
ld ({udg+1},y),a
ld ({udg+2},y),a
ld ({udg+3},y),a
ld ({udg+4},y),a
ld ({udg+5},y),a
ld ({udg+6},y),a
ld ({udg+7},y),a
popw y
ret
;=============================================
;
; Draw the shields
;
;=============================================
.draw_shields.w
ldw y,#shields_line_one
ldw x,#$0704
call write_text_unmapped_FF
ldw y,#shields_line_two
ldw x,#$0604
jp write_text_unmapped_FF
;=============================================
;
; Remove a ship and redraw the bottom
; line
;
;=============================================
.remove_ship.w
ldw x,current_player
ld a,(ships_rem_offs,x)
jreq remove_ship_exit
and a,#$0f ;Display ship count
add a,#$30
ldw y,#$0021
ld (screen,y),a
; draw players ships
ldw x,current_player
dec (ships_rem_offs,x)
ldw y,#$0061
ld a,(ships_rem_offs,x)
ld xl,a
draw_ship_loop
ld a,#$56
ld (screen,y),a
addw y,#scr_width
ld a,#$57
ld (screen,y),a
addw y,#scr_width
ld a,xl
dec a
ld xl,a
jrne draw_ship_loop
ld a,#$23
blank_ship_loop
ld (screen,y),a
addw y,#scr_width
cpw y,#{$11 mult scr_width}
jrult blank_ship_loop
remove_ship_exit
ret
;=============================================
;
; initialise the aliens.
;
;=============================================
.init_aliens.w
ldw y,#{number_of_aliens-1}
ldw x,current_player
ld a,#1
init_aliens_loop
ld (aliens_offs,x),a
incw x
decw y
jrpl init_aliens_loop
;fall through and count aliens
;=============================================
;
; Count number of aliens
;
;=============================================
.count_aliens.w
clr numaliens
ldw y,#{number_of_aliens-1}
ldw x,current_player
count_aliens_loop
ld a,(aliens_offs,x)
jreq no_alien
inc numaliens
no_alien
incw x
decw y
jrpl count_aliens_loop
ret
;=============================================
; accumulator is x position
; returns index of column (zero based)
; in the accumulator
; destroys x and y
; needs optimisation
;=============================================
.find_column.w
ldw x,#$ffff
cp a,ref_alien_x
jrult find_column_ret
push a
incw x
ld a,ref_alien_x
add a,#$10
ld col_x,a
pop a
ld yl,a
find_column_loop
cp a,col_x
jrult find_column_ret
ld a,col_x
add a,#$10
ld col_x,a
ld a,yl
incw x
jra find_column_loop
find_column_ret
ld a,xl
ret
END
| 19.447059
| 46
| 0.589635
|
3a5c37f10395d846be2fab7775274a5188cb23cc
| 721
|
asm
|
Assembly
|
oeis/165/A165867.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/165/A165867.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/165/A165867.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A165867: Totally multiplicative sequence with a(p) = 46.
; Submitted by Jon Maiga
; 1,46,46,2116,46,2116,46,97336,2116,2116,46,97336,46,2116,2116,4477456,46,97336,46,97336,2116,2116,46,4477456,2116,2116,97336,97336,46,97336,46,205962976,2116,2116,2116,4477456,46,2116,2116,4477456,46,97336,46,97336,97336,2116,46,205962976,2116,97336,2116,97336,46,4477456,2116,4477456,2116,2116,46,4477456,46,2116,97336,9474296896,2116,97336,46,97336,2116,97336,46,205962976,46,2116,97336,97336,2116,97336,46,205962976,4477456,2116,46,4477456,2116,2116,2116,4477456,46,4477456,2116,97336,2116,2116
add $0,1
mov $1,1
lpb $0
sub $0,1
seq $0,32742 ; a(1) = 1; for n > 1, a(n) = largest proper divisor of n.
mul $1,46
lpe
mov $0,$1
| 55.461538
| 499
| 0.751734
|
a48f1cc9c62873d69df1a9cf72fd576889ff00dc
| 1,440
|
asm
|
Assembly
|
programs/oeis/061/A061084.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/061/A061084.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/061/A061084.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A061084: Fibonacci-type sequence based on subtraction: a(0) = 1, a(1) = 2 and a(n) = a(n-2)-a(n-1).
; 1,2,-1,3,-4,7,-11,18,-29,47,-76,123,-199,322,-521,843,-1364,2207,-3571,5778,-9349,15127,-24476,39603,-64079,103682,-167761,271443,-439204,710647,-1149851,1860498,-3010349,4870847,-7881196,12752043,-20633239,33385282,-54018521,87403803,-141422324,228826127,-370248451,599074578,-969323029,1568397607,-2537720636,4106118243,-6643838879,10749957122,-17393796001,28143753123,-45537549124,73681302247,-119218851371,192900153618,-312119004989,505019158607,-817138163596,1322157322203,-2139295485799,3461452808002,-5600748293801,9062201101803,-14662949395604,23725150497407,-38388099893011,62113250390418,-100501350283429,162614600673847,-263115950957276,425730551631123,-688846502588399,1114577054219522,-1803423556807921,2918000611027443,-4721424167835364,7639424778862807,-12360848946698171,20000273725560978,-32361122672259149,52361396397820127,-84722519070079276,137083915467899403,-221806434537978679,358890350005878082,-580696784543856761,939587134549734843,-1520283919093591604,2459871053643326447,-3980154972736918051,6440026026380244498,-10420180999117162549,16860207025497407047,-27280388024614569596,44140595050111976643,-71420983074726546239,115561578124838522882,-186982561199565069121,302544139324403592003
mov $3,1
lpb $0
sub $0,1
add $1,$3
sub $2,$3
sub $2,$1
mov $3,$2
mov $2,0
sub $3,1
lpe
add $1,1
mov $0,$1
| 90
| 1,216
| 0.823611
|
49742b547493e70f3b19ce1585a883b16a1039d7
| 1,437
|
asm
|
Assembly
|
libsrc/target/pc88/stdio/generic_console_ioctl.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 38
|
2021-06-18T12:56:15.000Z
|
2022-03-12T20:38:40.000Z
|
libsrc/target/pc88/stdio/generic_console_ioctl.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 2
|
2021-06-20T16:28:12.000Z
|
2021-11-17T21:33:56.000Z
|
libsrc/target/pc88/stdio/generic_console_ioctl.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 6
|
2021-06-18T18:18:36.000Z
|
2021-12-22T08:01:32.000Z
|
MODULE generic_console_ioctl
PUBLIC generic_console_ioctl
SECTION code_clib
EXTERN generic_console_cls
EXTERN __console_h
EXTERN __console_w
EXTERN __pc88_mode
EXTERN generic_console_font32
EXTERN generic_console_udg32
EXTERN generic_console_caps
EXTERN pc88bios
INCLUDE "ioctl.def"
PUBLIC CLIB_GENCON_CAPS
defc CLIB_GENCON_CAPS = 0
defc CLIB_GENCON_CAPS_MODE2 = CAP_GENCON_FG_COLOUR | CAP_GENCON_BG_COLOUR | CAP_GENCON_INVERSE | CAP_GENCON_CUSTOM_FONT | CAP_GENCON_UDGS | CAP_GENCON_BOLD | CAP_GENCON_UNDERLINE
; a = ioctl
; de = arg
generic_console_ioctl:
ex de,hl
ld c,(hl) ;bc = where we point to
inc hl
ld b,(hl)
cp IOCTL_GENCON_SET_FONT32
jr nz,check_set_udg
ld (generic_console_font32),bc
success:
and a
ret
check_set_udg:
cp IOCTL_GENCON_SET_UDGS
jr nz,check_mode
ld (generic_console_udg32),bc
jr success
check_mode:
cp IOCTL_GENCON_SET_MODE
jr nz,failure
ld a,c
ld bc,$5019
ld l,CLIB_GENCON_CAPS
and a
jr z,set_mode
ld l,CLIB_GENCON_CAPS_MODE2
cp 2
jr z,set_mode
ld l,CLIB_GENCON_CAPS
cp 1
ld bc,$2519
jr nz,failure
set_mode:
ld (__pc88_mode),a
ld a,b
ld (__console_w),a
ld a,c
ld (__console_h),a
ld a,l
ld (generic_console_caps),a
ld ix,$6f6b ; CRTSET
call pc88bios
call generic_console_cls
and a
ret
failure:
scf
ret
| 19.958333
| 182
| 0.705637
|
9f3a9bb8c019c016338f5951ae3b468f60ad4ca6
| 536
|
asm
|
Assembly
|
oeis/033/A033968.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/033/A033968.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/033/A033968.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A033968: Trajectory of 1 under map n->23n+1 if n odd, n->n/2 if n even
; Submitted by Simon Strandgaard
; 1,24,12,6,3,70,35,806,403,9270,4635,106606,53303,1225970,612985,14098656,7049328,3524664,1762332,881166,440583,10133410,5066705,116534216,58267108,29133554,14566777
add $0,1
mov $1,$0
bin $0,0
lpb $1
mov $2,$0
mod $2,2
add $3,1
sub $3,$2
mov $4,$0
lpb $2
mul $0,5
add $0,1
mul $0,9
sub $0,6
sub $2,1
lpe
add $0,$4
add $3,1
lpb $3
div $0,2
sub $3,1
lpe
sub $1,1
lpe
mov $0,$4
| 17.866667
| 166
| 0.615672
|
1c3f307f6f5878e01f632603fbd239731bd4d4a2
| 5,904
|
asm
|
Assembly
|
archive/vtl-2/source/right_special.asm
|
paulscottrobson/retrochallenge-jan-2016
|
8bd340efc85969fa6f2fecc788aa21b27123a4db
|
[
"MIT"
] | null | null | null |
archive/vtl-2/source/right_special.asm
|
paulscottrobson/retrochallenge-jan-2016
|
8bd340efc85969fa6f2fecc788aa21b27123a4db
|
[
"MIT"
] | null | null | null |
archive/vtl-2/source/right_special.asm
|
paulscottrobson/retrochallenge-jan-2016
|
8bd340efc85969fa6f2fecc788aa21b27123a4db
|
[
"MIT"
] | null | null | null |
; ****************************************************************************************************************
; ****************************************************************************************************************
;
; Special Terms (Right Hand Side)
;
; ****************************************************************************************************************
; ****************************************************************************************************************
;
; (<expr>) Parenthesised expression
; :<expr>) Array access (relative to '&')
; $ Read character from keyboard
; ? Read line and evaluate expression.
;
; ****************************************************************************************************************
; ****************************************************************************************************************
;
; This function does special terms for the Right Hand Side. Returns CY/L = 0 Error, S -> A
; If No Error is reported, E != 0 if processed, E = 0 if variable. If Error reported E is the Error Number.
; Always returns a value on the stack.
;
; ****************************************************************************************************************
; ****************************************************************************************************************
CheckSpecialTerms:
ldi 0
st @-1(p2) ; allocate space for result and clear it
st @-1(p2)
pushp p3 ; save P3.
ld @1(p1) ; get character and skip over it
xri '$' ; is it character in ?
jnz __CST_NotCharacter
; ****************************************************************************************************************
; $ Get Keystroke
; ****************************************************************************************************************
lpi p3,GetChar-1 ; get character subroutine
xppc p3 ; call it
st 2(p2) ; save in return slot
__CST_ReturnDone:
ldi 1 ; set E to nonzero
xae
jmp __CST_SCLAndExit ; set carry and exit.
;
__CST_NotCharacter:
xri '?'!'$' ; is it expression in ?
jnz __CST_NotInput
; ****************************************************************************************************************
; ? Get Line and evaluate it.
; ****************************************************************************************************************
pushp p1 ; save P1
lpi p3,GetString-1 ; read string from keyboard
lpi p1,KeyboardBuffer
ldi KeyboardBufferSize
xppc p3
lpi p3,EvaluateExpression-1 ; evaluate this
xppc p3
jp __CST_EvaluateCont ; if error, don't copy result.
ld 0(p2) ; copy result
st 6(p2)
ld 1(p2)
st 7(p2)
__CST_EvaluateCont:
ld @2(p2) ; drop the return result.
pullp p1 ; restore P1
jmp __CST_ReturnDone ; exit successfully.
;
; Check for : or (
;
__CST_NotInput:
xri ':'!'?' ; is it the array marker
jz __CST_ArrayOrParenthesis
xri ':'!'(' ; or the parenthesis (open bracket)
jz __CST_ArrayOrParenthesis
ld @-1(p1) ; undo the bump.
ldi 0 ; E = 0 not processed
xae
__CST_SCLAndExit:
scl ; CY/L = 1 no error.
__CST_Exit:
pullp p3 ; restore P3
csa ; copy error flag to A.
xppc p3
; ****************************************************************************************************************
; :<expr> or (<expr>) - both evaluate and check the parenthesis value, then array does the array access
; ****************************************************************************************************************
__CST_ArrayOrParenthesis:
ld -1(p1) ; get the type (array or parenthesis)
st @-1(p2) ; push on the stack so we know what type it was for later.
lpi p3,EvaluateExpression-1 ; call the expression evaluator recursively.
xppc p3
ld @3(p2) ; drop the type and result, but they are still physically there.
csa ; check for error
jp __CST_Exit ; if error occurred, then exit
ldi ERROR_Bracket ; set E for missing close bracket error.
xae
ccl ; clear carry , this means error.
ld (p1) ; get terminating character
xri ')' ; which should be a close bracket
jnz __CST_Exit ; if not, exit with a missing close bracket error.
ld @1(p1) ; skip over the closing bracket.
ld -1(p2) ; get the operator ( or :
xae ; save in E
ld -3(p2) ; move value to correct position.
st 2(p2)
ld -2(p2)
st 3(p2)
lde ; get E
xri '(' ; is it parenthesised expression
jz __CST_SCLAndExit ; if so, exit with E != 0 and CY/L = 1
; ****************************************************************************************************************
; Now we know we had :<expr>) - so calculate & + <expr> * 2 and read what is there.
; ****************************************************************************************************************
ccl
ld 2(p2) ; double the offset
add 2(p2)
st 2(p2)
ld 3(p2)
add 3(p2)
st 3(p2)
lpi p3,Variables+('&' & 0x3F) * 2 ; point P3 to '&'
ccl
ld 2(p2) ; add &.Low to offset.low -> E
add 0(p3)
xae
ld 3(p2) ; add &.High to offset.high -> P3.H
add 1(p3)
xpah p3
lde ; E->P3.L ; P3 is now & + (offset * 2)
xpal p3
ld 0(p3) ; access array, store in return
st 2(p2)
ld 1(p3)
st 3(p2)
ldi 0xFF ; set E to non-zero and exit.
xae
jmp __CST_SCLAndExit
| 39.891892
| 114
| 0.38313
|
c1aac7a8c0dd3509fb1fa6d3a96f5aa103c739de
| 4,650
|
asm
|
Assembly
|
msx/rc2014-extended/utils.asm
|
zoggins/yellow-msx-series-for-rc2014
|
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
|
[
"MIT"
] | 19
|
2021-02-20T11:48:37.000Z
|
2022-03-14T21:02:14.000Z
|
msx/rc2014-extended/utils.asm
|
zoggins/yellow-msx-series-for-rc2014
|
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
|
[
"MIT"
] | 3
|
2021-06-11T06:07:16.000Z
|
2021-11-14T07:43:11.000Z
|
msx/rc2014-extended/utils.asm
|
zoggins/yellow-msx-series-for-rc2014
|
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
|
[
"MIT"
] | 2
|
2021-05-03T19:09:36.000Z
|
2021-11-13T19:16:52.000Z
|
;-----------------------------------------------------------------------------
;
; PRINT A ZERO-TERMINATED STRING ON SCREEN
; INPUT: DE = STRING ADDRESS
PRINT:
LD A, (DE)
OR A
RET Z
BIOS_FN CHPUT
INC DE
JR PRINT
;--------------------------------------------------------
; GTSL1 Get current slot id for page 2 (0x8000-0xBFFF)
; Entry None
; Return A Slot address as follows
; Modify Flags
;
; FxxxSSPP
; | ||||
; | ||++-- primary slot # (0-3)
; | ++---- secondary slot # (0-3)
; | 00 if not expanded
; +--------- 1 if secondary slot # specified
;
; This value can later be used as an input parameter
; for the RDSLT, WRSLT, CALSLT, ENASLT and 'RST 10H'
;
GETSL10:
PUSH HL ;Save registers
PUSH DE
BIOS_FN RSLREG
RRCA
RRCA ; page 1
RRCA
RRCA ; page 2
AND 11B ;[A]=000000PP
LD E,A
LD D,0 ;[DE]=000000PP
LD HL,EXPTBL
ADD HL,DE ;[HL]=EXPTBL+000000PP
LD E,A ;[E]=000000PP
LD A,(HL) ;A=(EXPTBL+000000PP)
AND 80H ;Use only MSB
JR Z,GTSL1NOEXP
OR E ;[A]=F00000PP
LD E,A ;save primary slot number
INC HL ;point to SLTTBL entry
INC HL
INC HL
INC HL
LD A,(HL) ;get current expansion slot register
RRCA
RRCA ; page 1
RRCA
RRCA ; page 2
AND 11B ;[A] = 000000SS
RLCA
RLCA ;[A] = 0000SS00
OR E ;[A] = F000SSPP
;
GTSL1END:
POP DE
POP HL
RET
GTSL1NOEXP:
LD A,E ;[A] = 000000PP
JR GTSL1END
;--------------------------------------------------------
;
; ASLW1 Get address of slot work
; Entry None
; Return HL address of slot work
; Modify DE
;
ASLW10:
CALL GETSL10 ;[A] = F000SSPP, SS = 00 if not expanded
AND 00001111B ;[A] = 0000SSPP
LD L,A ;[A] = 0000SSPP
RLCA
RLCA
RLCA
RLCA ;[A] = SSPP0000
AND 00110000B ;[A] = 00PP0000
OR L ;[A] = 00PPSSPP
AND 00111100B ;[A] = 00PPSS00
OR 10B ;[A] = 00PPSSBB
;
; Now, we have the sequence number for this cartridge
; as follows.
;
; 00PPSSBB
; ||||||
; ||||++-- higher 2 bits of memory address (1)
; ||++---- seconday slot # (0..3)
; ++------ primary slot # (0..3)
;
RLCA ;*=2
LD E,A
LD D,0 ;[DE] = 0PPSSBB0
LD HL,SLTWRK
ADD HL,DE
RET
;--------------------------------------------------------
;
; RSLW1 Read slot work
; Entry None
; Return HL Content of slot work
; Modify DE
;
RSLW10:
CALL ASLW10 ;[HL] = address of slot work
LD A,(HL)
INC HL
LD H,(HL) ;[HL] = (slot work)
LD L, A
RET
;--------------------------------------------------------
;
; WSLW1 Write slot work
; Entry HL Data to write
; Return None
; Modify DE
;
WSLW10:
PUSH HL
CALL ASLW10 ;[HL] = address of slot work
POP DE
LD (HL),E
INC HL
LD (HL),D
RET
;
; CALSUB
;
; In: IX = address of routine in MSX2 SUBROM
; AF, HL, DE, BC = parameters for the routine
;
; Out: AF, HL, DE, BC = depending on the routine
;
; Changes: IX, IY, AF', BC', DE', HL'
;
; Call MSX2 subrom from MSXDOS. Should work with all versions of MSXDOS.
;
; Notice: NMI hook will be changed. This should pose no problem as NMI is
; not supported on the MSX at all.
;
CALSUB: EXX
EX AF, AF' ; STORE ALL REGISTERS
LD HL, EXTROM
PUSH HL
LD HL, 0C300h
PUSH HL ; PUSH NOP ; JP EXTROM
PUSH IX
LD HL, 021DDh
PUSH HL ; PUSH LD IX, <ENTRY>
LD HL, 03333h
PUSH HL ; PUSH INC SP; INC SP
LD HL, 0
ADD HL, SP ; HL = OFFSET OF ROUTINE
LD A, 0C3h
LD (H_NMI), A
LD (H_NMI+1), HL ; JP <ROUTINE> IN NMI HOOK
EX AF, AF'
EXX ; RESTORE ALL REGISTERS
LD IX, NMI
LD IY, (EXPTBL-1)
CALL CALSLT ; CALL NMI-HOOK VIA NMI ENTRY IN ROMBIOS
; NMI-HOOK WILL CALL SUBROM
EXX
EX AF, AF' ; STORE ALL RETURNED REGISTERS
LD HL, 10
ADD HL, SP
LD SP, HL ; REMOVE ROUTINE FROM STACK
EX AF, AF'
EXX ; RESTORE ALL RETURNED REGISTERS
RET
; DE_MULT_C
; IN:
; C AND DE
;OUT:
; AHL IS THE PRODUCT, WITH A BEING THE UPPER 8 BITS
; BC = 0
; DE IS PRESERVED
DE_MULT_C:
LD A, C
LD BC, $0800
LD H, C
LD L, C
DE_MULT_C_1:
ADD HL, HL
RLA ; CHECK MOST-SIGNIFICANT BIT OF ACCUMULATOR
JR NC, DE_MULT_C_2 ; IF ZERO, SKIP ADDITION
ADD HL, DE
ADC A, C
DE_MULT_C_2:
DJNZ DE_MULT_C_1
RET
| 21.830986
| 78
| 0.502796
|
bbc3e66332436650515022480c20b2fab9cd3913
| 376
|
asm
|
Assembly
|
programs/oeis/086/A086953.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/086/A086953.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/086/A086953.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A086953: Binomial transform of (-1)^mod(n,3) (A257075).
; 1,0,0,2,6,12,22,42,84,170,342,684,1366,2730,5460,10922,21846,43692,87382,174762,349524,699050,1398102,2796204,5592406,11184810,22369620,44739242,89478486,178956972,357913942,715827882,1431655764,2863311530,5726623062
mov $1,1
mov $2,1
mov $3,1
lpb $0,1
sub $0,1
add $2,$1
add $1,$3
sub $1,$2
mul $3,2
lpe
| 26.857143
| 218
| 0.715426
|
29e2fe5bcd321c7bcda7ca170441bada3a36580b
| 2,201
|
asm
|
Assembly
|
timers/tac_set_disabled/main.asm
|
AntonioND/gbc-hw-tests
|
631e60000c885154a8526df0b148847f9c34ce42
|
[
"MIT"
] | 6
|
2018-07-21T12:11:21.000Z
|
2021-07-23T16:32:47.000Z
|
timers/tac_set_disabled/main.asm
|
PMArkive/gbc-hw-tests
|
631e60000c885154a8526df0b148847f9c34ce42
|
[
"MIT"
] | null | null | null |
timers/tac_set_disabled/main.asm
|
PMArkive/gbc-hw-tests
|
631e60000c885154a8526df0b148847f9c34ce42
|
[
"MIT"
] | 3
|
2016-04-26T07:45:34.000Z
|
2018-12-30T05:45:14.000Z
|
INCLUDE "hardware.inc"
INCLUDE "header.inc"
SECTION "var",BSS
repeat_loop: DS 1
current_test: DS 1
SECTION "Main",HOME
;--------------------------------------------------------------------------
;- Main() -
;--------------------------------------------------------------------------
Main:
ld a,-1
ld [current_test],a
; -------------------------------------------------------
ld a,$0A
ld [$0000],a ; enable ram
ld a,$00
ld [$4000],a ; ram bank change
ld d,0
ld hl,$A000
ld bc,$2000
call memset
ld a,$01
ld [$4000],a ; ram bank change
ld d,0
ld hl,$A000
ld bc,$2000
call memset
ld a,$02
ld [$4000],a ; ram bank change
ld d,0
ld hl,$A000
ld bc,$2000
call memset
ld a,$03
ld [$4000],a ; ram bank change
ld d,0
ld hl,$A000
ld bc,$2000
call memset
; -------------------------------------------------------
ld a,[Init_Reg_A]
cp a,$11
jr nz,.skipchange1
ld a,0
ld [repeat_loop],a
call CPU_slow
.skipchange1:
.repeat_all:
; -------------------------------------------------------
ld d,0
.loopram:
ld a,[current_test]
inc a
ld [current_test],a
srl a
ld [$4000],a
ld a,[current_test]
and a,1
jr nz,.skip
ld hl,$A000
.skip:
ld c,251
.loopout:
ld b,0
.loop:
REPETITIONS SET 0
REPT 16
ld a,d
ld [rTAC],a
ld a,0
ld [rTMA],a
ld [rDIV],a
ld [rIF],a
ld a,c
ld [rTIMA],a
ld a,b
ld [rDIV],a ; sync
REPT REPETITIONS
nop
ENDR
ld [rTAC],a
ld a,[rTIMA]
ld [hl+],a
ld a,[rIF]
and a,4
ld [hl+],a
REPETITIONS SET REPETITIONS+1
ENDR
inc b
ld a,16
cp a,b
jp nz,.loop
inc c
ld a,2
cp a,c
jp nz,.loopout
push hl ; magic number
ld [hl],$12
inc hl
ld [hl],$34
inc hl
ld [hl],$56
inc hl
ld [hl],$78
pop hl
inc d
ld a,4
cp a,d
jp nz,.loopram
; -------------------------------------------------------
ld a,[Init_Reg_A]
cp a,$11
jr nz,.skipchange2
ld a,[repeat_loop]
and a,a
jr nz,.endloop
; -------------------------------------------------------
call CPU_fast
ld a,1
ld [repeat_loop],a
jp .repeat_all
.skipchange2:
ld a,$00
ld [$0000],a ; disable ram
.endloop:
halt
jr .endloop
| 12.505682
| 75
| 0.462063
|
49b89fb321add9c634ba40809159758aed67a7b0
| 7,005
|
asm
|
Assembly
|
dimension/cell/io/video/vga/vga.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | 7
|
2019-03-04T08:53:33.000Z
|
2022-01-28T19:32:12.000Z
|
dimension/cell/io/video/vga/vga.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | null | null | null |
dimension/cell/io/video/vga/vga.asm
|
ekscrypto/Unununium
|
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
|
[
"BSD-2-Clause"
] | null | null | null |
;--------------------------------------------------------------------------==|
; Mode13h Video Driver Copyright (c) 2000-2001 Richard Fillion
; Distributed under the BSD License
;--------------------------------------------------------------------------==|
; File description:
;
;This driver provides the standard drawing routines and video card
;handling routines for most standard VGA modes.
;
;notes:
;this driver should work for any VGA compatible video card, which is almost
;all of them out there from ISA to AGP. It is not capable of being loaded
;twice for dual video cards, a special version will be made for that.
[bits 32]
section .c_info
db 0,0,1,'a'
dd str_name
dd str_author
dd str_copyrights
str_name: db "VGA Driver via bios",0
str_author: db "Richard Fillion (rick@rhix.dhs.org)",0
str_copyrights: db "Distributed under BSD License",0
section .c_init
global _start
_start:
retn
;initialization:
; push esi
; lea esi, [.initstr_completed]
; externfunc string_out, system_log
;
; pop esi
; jmp short .completed
;
;.initstr_completed: db "VGA video driver loaded", 0x0A, 0
;
;.completed:
section .text
;; <indigo> TODO: there needs to be written a sort of unified driver manager
;; thingie to keep track of all these drivers. While the old FID/CID system
;; would have not required this, drivers are the only components that need it
;; so it was decided that this would be part of another cell. Until this
;; manager is written these functions have been given tempoary negitive VIDs.
globalfunc video.get_mode_info
;--------------[GET MODE INFORMATION]-------------
;>
;;DAMNIT! I had to scrap the idea of only having one mode,
;;cause afterall what kinda driver would this be if there were only
;;one mode. ARGH! (Rick)
;;
;;Parameters:
;;---------------
;; EAX = Mode
;;
;;Returned Values:
;;-----------------
;; if CF = 0, successful
;; EAX = Mode
;; EBX = (untouched)
;; ECX = Size of screen needed
;; EDX = (untouched)
;; ESI = (untouched)
;; EDI = Base of screen when active
;; ESP = (untouched)
;; EBP = (untouched)
;;
;; if CF = 1, error occured
;; EAX = error code
;; EBX = (undetermined)
;; ECX = (undetermined)
;; EDX = (undetermined)
;; ESI = (undetermined)
;; EDI = (undetermined)
;; ESP = (undetermined)
;; EBP = (undetermined)
;<
mov ecx, [VGA_modes + 8 * eax] ; that gives us the size
mov edi, [VGA_modes + 8 * eax + 4] ; that gives use destination
clc ;almost a waste of a cycle
retn
;get_mode_info
globalfunc video.restore_card_state
;----------------[RESTORE CARD STATE]-----------------
;>
;; i'll look into this. :) XXX <-signal for HACK (rick)
;;
;<
mov bx, 0x5000
push dword 0x50000000 ;sets ES to 5
push dword 0x10 ;int 10h
mov al, 0x1C ;function 0x1C
mov ah, 02h ;restore state
externfunc realmode.proc_call
;should be done that, put the stack back to normal
add esp, byte 8 ;done
xor al, 0x1c ;check if all went well
jnz .error
clc
retn
.error:
stc
mov eax, 0x01
retn
globalfunc video.save_card_state
;------------------[SAVE CARD STATE]------------
;>
;; this one too i guess. XXX <-signal for HACK (rick)
;;
;<
save_state:
;alright, we will be stealing memory from 0x55000 on
mov bx, 0x5000
push dword 0x50000000 ;sets DS to 5
push dword 0x10 ;int 10h
mov al, 0x1C ;function 0x1C
mov ah, 01h ;save state
externfunc realmode.proc_call
;must restore right after (most bios screw the registers)
mov ah, 02h ;restore state
externfunc realmode.proc_call
;should be done that, put the stack back to normal
add esp, byte 8 ;done
xor al, 0x1c ;check if all went well
jnz .error
clc
retn
.error:
stc
mov eax, 0x01
retn
globalfunc video.set_mode
;--------------[SET RESOLUTION]------------------
;>
;;Parameters:
;;---------------
;; EAX = Mode
;;
;;Returned Values:
;;-----------------
;; if CF = 0, successful
;; EAX = Mode
;; EBX = (untouched)
;; ECX = (untouched)
;; EDX = (untouched)
;; ESI = (untouched)
;; EDI = (untouched)
;; ESP = (untouched)
;; EBP = (untouched)
;;
;; if CF = 1, error occured
;; EAX = error code
;; EBX = (undetermined)
;; ECX = (undetermined)
;; EDX = (undetermined)
;; ESI = (undetermined)
;; EDI = (undetermined)
;; ESP = (undetermined)
;; EBP = (undetermined)
;<
cmp eax, [current_mode]
je .done ;if desired video mode = current mode, why change?
push dword 0x10 ;we need a int 10h (bios change res interupt)
;mode is already in eax
;thats it ladies and gents, lets do it. :)
externfunc realmode.proc_call
add esp, byte 4 ;get rid of that last stack push
.done:
clc ;how can any of this go wrong? :)
retn
;set_rez
globalfunc video.get_mode
;--------------[GET RESOLUTION]------------------
;>
;;Parameters:
;;---------------
;; None
;;
;;Returned Values:
;;-----------------
;; if CF = 0, successful
;; EAX = Mode
;; EBX = (undetermind)
;; ECX = (untouched)
;; EDX = (untouched)
;; ESI = (untouched)
;; EDI = (untouched)
;; ESP = (untouched)
;; EBP = (untouched)
;;
;; if CF = 1, error occured
;; EAX = error code
;; EBX = (undetermined)
;; ECX = (undetermined)
;; EDX = (undetermined)
;; ESI = (undetermined)
;; EDI = (undetermined)
;; ESP = (undetermined)
;; EBP = (undetermined)
;<
mov eax, dword [current_mode]
clc ;how can any of this go wrong? :)
retn
;current mode:
current_mode: dd 3 ;3 is default mode when comp starts
;---------------[MODE LISTING]------------------
;here we insert all the modes that are VGA compatible, and abit
;of info about them for the programmers. You may wish to add
;modes or take some out.
;/--[MODE]-----|----[SIZE]------|---[Base when active]-----
VGA_modes:
vidmode00: dd 0 , 0
vidmode01: dd 0 , 0
vidmode02: dd 0 , 0
vidmode03: dd 8000 , 0xB8000
vidmode04: dd 0 , 0
vidmode05: dd 0 , 0
vidmode06: dd 0 , 0
vidmode07: dd 0 , 0
vidmode08: dd 0 , 0
vidmode09: dd 0 , 0
vidmode0A: dd 0 , 0
vidmode0B: dd 0 , 0
vidmode0C: dd 0 , 0
vidmode0D: dd 32000 , 0xA0000
vidmode0E: dd 64000 , 0xA0000
vidmode0F: dd 28000 , 0xA0000
vidmode10: dd 0 , 0
vidmode11: dd 38400 , 0xA0000
vidmode12: dd 153600 , 0xA0000
vidmode13: dd 64000 , 0xA0000
| 24.928826
| 78
| 0.550892
|
1d4bb00484c376e8840d21cb634f831a7087b55e
| 1,412
|
asm
|
Assembly
|
test/ref/iter1.asm
|
halfa/yaka-compiler
|
d8b371d8a88002c08fae1d26570259e90084cdaa
|
[
"MIT"
] | 3
|
2015-03-09T09:55:29.000Z
|
2015-03-16T16:08:02.000Z
|
test/ref/iter1.asm
|
halfa/yaka-compiler
|
d8b371d8a88002c08fae1d26570259e90084cdaa
|
[
"MIT"
] | 17
|
2015-03-12T07:47:17.000Z
|
2015-04-27T07:57:22.000Z
|
test/ref/iter1.asm
|
halfa/yaka-compiler
|
d8b371d8a88002c08fae1d26570259e90084cdaa
|
[
"MIT"
] | null | null | null |
;entete
extrn lirent:proc
extrn ecrent:proc
extrn ecrbool:proc
extrn ecrch:proc
extrn ligsuiv:proc
.model SMALL
.586
.DATA
FALSE EQU 0
TRUE EQU -1
.CODE
debut :
STARTUPCODE
;ouvrePrinc 6
mov bp,sp
sub sp,6
;ecrireChaine "n="
.DATA
mess0 DB "n=$"
.CODE
lea dx, mess0
push dx
call ecrch
;lireEnt -6
lea dx,[bp-6]
push dx
call lirent
;iconst 1
push 1
;istore -4
pop ax
mov word ptr[bp-4],ax
;iconst 0
push 0
;istore -2
pop ax
mov word ptr[bp-2],ax
FAIRE1:
;iload -4
push word ptr [bp-4]
;iload -6
push word ptr [bp-6]
;iinfegal
pop bx
pop ax
cmp ax,bx
jg $+6
push TRUE
jmp $+4
push FALSE
;iffaux FAIT1
pop ax
cmp ax,FALSE
je FAIT1
;iload -2
push word ptr [bp-2]
;iload -4
push word ptr [bp-4]
;iadd
pop bx
pop ax
add ax,bx
push ax
;istore -2
pop ax
mov word ptr[bp-2],ax
;iload -4
push word ptr [bp-4]
;iconst 1
push 1
;iadd
pop bx
pop ax
add ax,bx
push ax
;istore -4
pop ax
mov word ptr[bp-4],ax
;ecrireChaine "i = "
.DATA
mess1 DB "i = $"
.CODE
lea dx, mess1
push dx
call ecrch
;iload -4
push word ptr [bp-4]
;ecrireEnt
call ecrent
;ecrireChaine " s = "
.DATA
mess2 DB " s = $"
.CODE
lea dx, mess2
push dx
call ecrch
;iload -2
push word ptr [bp-2]
;ecrireEnt
call ecrent
;aLaLigne
call ligsuiv
;jump FAIRE1
jmp FAIRE1
FAIT1:
;aLaLigne
call ligsuiv
;ecrireChaine "s="
.DATA
mess3 DB "s=$"
.CODE
lea dx, mess3
push dx
call ecrch
;iload -2
push word ptr [bp-2]
;ecrireEnt
call ecrent
;queue
nop
EXITCODE
end debut
| 11.387097
| 22
| 0.706091
|
4a2a4d2592f58937547008ba29c789d9a818213c
| 1,393
|
asm
|
Assembly
|
programs/oeis/129/A129194.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/129/A129194.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/129/A129194.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A129194: a(n) = n^2*(3/4 - (-1)^n/4).
; 0,1,2,9,8,25,18,49,32,81,50,121,72,169,98,225,128,289,162,361,200,441,242,529,288,625,338,729,392,841,450,961,512,1089,578,1225,648,1369,722,1521,800,1681,882,1849,968,2025,1058,2209,1152,2401,1250,2601,1352,2809,1458,3025,1568,3249,1682,3481,1800,3721,1922,3969,2048,4225,2178,4489,2312,4761,2450,5041,2592,5329,2738,5625,2888,5929,3042,6241,3200,6561,3362,6889,3528,7225,3698,7569,3872,7921,4050,8281,4232,8649,4418,9025,4608,9409,4802,9801,5000,10201,5202,10609,5408,11025,5618,11449,5832,11881,6050,12321,6272,12769,6498,13225,6728,13689,6962,14161,7200,14641,7442,15129,7688,15625,7938,16129,8192,16641,8450,17161,8712,17689,8978,18225,9248,18769,9522,19321,9800,19881,10082,20449,10368,21025,10658,21609,10952,22201,11250,22801,11552,23409,11858,24025,12168,24649,12482,25281,12800,25921,13122,26569,13448,27225,13778,27889,14112,28561,14450,29241,14792,29929,15138,30625,15488,31329,15842,32041,16200,32761,16562,33489,16928,34225,17298,34969,17672,35721,18050,36481,18432,37249,18818,38025,19208,38809,19602,39601,20000,40401,20402,41209,20808,42025,21218,42849,21632,43681,22050,44521,22472,45369,22898,46225,23328,47089,23762,47961,24200,48841,24642,49729,25088,50625,25538,51529,25992,52441,26450,53361,26912,54289,27378,55225,27848,56169,28322,57121,28800,58081,29282,59049,29768,60025,30258,61009,30752,62001
pow $0,2
dif $0,2
mov $1,$0
| 199
| 1,323
| 0.791816
|
8ecfd6e46b61231bcbc49d359e25f98e232a1750
| 408
|
asm
|
Assembly
|
programs/oeis/004/A004773.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/004/A004773.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/004/A004773.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A004773: Numbers congruent to {0, 1, 2} mod 4: a(n) = floor(4*n/3).
; 0,1,2,4,5,6,8,9,10,12,13,14,16,17,18,20,21,22,24,25,26,28,29,30,32,33,34,36,37,38,40,41,42,44,45,46,48,49,50,52,53,54,56,57,58,60,61,62,64,65,66,68,69,70,72,73,74,76,77,78,80,81,82,84,85,86,88,89,90,92,93,94,96,97,98,100,101,102,104,105,106,108,109,110,112,113,114,116,117,118,120,121,122,124,125,126,128,129,130,132
mul $0,4
div $0,3
| 68
| 318
| 0.659314
|
b51b01c17df775247308f4154711909f4c2a6671
| 738
|
asm
|
Assembly
|
audio/sfx/cry11_2.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
audio/sfx/cry11_2.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
audio/sfx/cry11_2.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
SFX_Cry11_2_Ch5:
duty_cycle_pattern 3, 3, 0, 0
square_note 6, 15, 7, 1952
square_note 8, 14, 6, 1956
square_note 4, 13, 6, 1952
square_note 15, 13, 3, 1824
square_note 8, 12, 3, 1827
square_note 2, 12, 2, 1832
square_note 8, 11, 1, 1840
sound_ret
SFX_Cry11_2_Ch6:
duty_cycle_pattern 0, 0, 2, 2
square_note 4, 0, 8, 0
square_note 6, 10, 7, 1857
square_note 8, 8, 6, 1859
square_note 4, 7, 6, 1857
square_note 13, 8, 3, 1730
square_note 7, 7, 3, 1729
square_note 3, 8, 2, 1740
square_note 8, 7, 1, 1752
sound_ret
SFX_Cry11_2_Ch8:
noise_note 2, 15, 2, 76
noise_note 6, 14, 6, 58
noise_note 4, 13, 7, 58
noise_note 6, 13, 6, 44
noise_note 8, 14, 5, 60
noise_note 12, 13, 2, 61
noise_note 8, 13, 1, 44
sound_ret
| 21.085714
| 30
| 0.685637
|
b24b28183a9162ad336a0a83672449317595449a
| 3,157
|
asm
|
Assembly
|
sem1/asc/Caractere/main.asm
|
itsbratu/bachelor
|
b3bcae07fc8297fb0557a4bf752b20c6104c2563
|
[
"MIT"
] | null | null | null |
sem1/asc/Caractere/main.asm
|
itsbratu/bachelor
|
b3bcae07fc8297fb0557a4bf752b20c6104c2563
|
[
"MIT"
] | null | null | null |
sem1/asc/Caractere/main.asm
|
itsbratu/bachelor
|
b3bcae07fc8297fb0557a4bf752b20c6104c2563
|
[
"MIT"
] | null | null | null |
bits 32
global start
extern exit , printf
import exit msvcrt.dll
import printf msvcrt.dll
segment data use32 class=data
s db "aa222%%%%%)()()vvvvvv$$$$" , 0
len equ ($-s)
vocale db "aeiouAEIOU" , 0
len_vocale equ ($-vocale)
consoane db "qwrtypsdfghjklzxcvbnmQWRTYPSDFGHJKLZXCVBNM" , 0
len_consoane equ ($-consoane)
cifre db "0123456789" , 0
len_cifre equ ($-cifre)
nr_vocale dd 0
nr_consoane dd 0
nr_cifre dd 0
nr_speciale dd 0
copie_offset dd -1
copie_contor dd -1
afisare_mesaj db "Sirul de caractere are : %d vocale , %d consoane , %d cifre , respectiv %d caractere speciale" , 0
format db "%d" , 0
segment code use32 class=code
start:
mov esi , s
mov ecx , len
dec ecx
parcurgere:
xor eax , eax
xor ebx , ebx
lodsb
mov bl , al
mov dword[copie_offset] , esi
mov dword[copie_contor] , ecx
mov esi , vocale
mov ecx , len_vocale
dec ecx
parcurgere_vocale:
lodsb
cmp al , bl
je vowel_next
loop parcurgere_vocale
mov esi , consoane
mov ecx , len_consoane
dec ecx
parcurgere_consoane:
lodsb
cmp al , bl
je consonant_next
loop parcurgere_consoane
mov esi , cifre
mov ecx , len_cifre
dec ecx
parcurgere_cifre:
lodsb
cmp al , bl
je digit_next
loop parcurgere_cifre
xor ebx , ebx
mov ebx , dword[nr_speciale]
inc ebx
mov dword[nr_speciale] , ebx
jmp final
revenire:
loop parcurgere
jmp end_parcurgere
vowel_next:
xor ebx , ebx
mov ebx , dword[nr_vocale]
inc ebx
mov dword[nr_vocale] , ebx
jmp final
consonant_next:
xor ebx , ebx
mov ebx , dword[nr_consoane]
inc ebx
mov dword[nr_consoane] , ebx
jmp final
digit_next:
xor ebx , ebx
mov ebx , dword[nr_cifre]
inc ebx
mov dword[nr_cifre] , ebx
jmp final
final:
mov ecx , dword[copie_contor]
mov esi , dword[copie_offset]
cmp ecx , 0
jg revenire
end_parcurgere:
push dword [nr_speciale]
push dword [nr_cifre]
push dword [nr_consoane]
push dword [nr_vocale]
push dword afisare_mesaj
call [printf]
add esp , 4*5
push dword 0
call [exit]
| 27.692982
| 120
| 0.451061
|
0a45ae3fe4f19068aca2955e39d5e655a63a8880
| 272
|
asm
|
Assembly
|
software/profi/net-tools/src/pqdos/browser/gopher/engine/history/model.asm
|
andykarpov/karabas-pro
|
11d897e51a7a66fddcdfb97fc7b785ca535d48dd
|
[
"MIT"
] | 26
|
2020-07-25T15:00:32.000Z
|
2022-03-22T19:30:04.000Z
|
software/profi/net-tools/src/pqdos/browser/gopher/engine/history/model.asm
|
zxrepo/andykarpov.karabas-pro
|
ab84aa2c95c206b2384d99054eb23cbe6aeec56b
|
[
"MIT"
] | 42
|
2020-07-29T14:29:18.000Z
|
2022-03-22T11:34:28.000Z
|
software/profi/net-tools/src/pqdos/browser/gopher/engine/history/model.asm
|
zxrepo/andykarpov.karabas-pro
|
ab84aa2c95c206b2384d99054eb23cbe6aeec56b
|
[
"MIT"
] | 7
|
2020-09-07T14:21:31.000Z
|
2022-01-24T17:18:56.000Z
|
total equ 5
depth db 0
historyBlock:
.isFile db 0
.mediaType db 0
.locator ds #ff
.host ds 64
.port ds 6
.search ds #ff
.position dw #00
HistoryRecord EQU $ - historyBlock
dup total
ds HistoryRecord
edup
HistoryEnd equ $ - 1
| 16
| 34
| 0.613971
|
6c5298949b1fa651842e17a096aa67cac30014c6
| 1,225
|
asm
|
Assembly
|
programs/oeis/131/A131780.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/131/A131780.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/131/A131780.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A131780: Row sums of triangle A131779.
; 1,4,5,10,15,26,41,68,109,178,287,466,753,1220,1973,3194,5167,8362,13529,21892,35421,57314,92735,150050,242785,392836,635621,1028458,1664079,2692538,4356617,7049156,11405773,18454930,29860703,48315634,78176337,126491972,204668309,331160282,535828591,866988874,1402817465,2269806340,3672623805,5942430146,9615053951,15557484098,25172538049,40730022148,65902560197,106632582346,172535142543,279167724890,451702867433,730870592324,1182573459757,1913444052082,3096017511839,5009461563922,8105479075761,13114940639684,21220419715445,34335360355130,55555780070575,89891140425706,145446920496281,235338060921988,380784981418269,616123042340258,996908023758527,1613031066098786,2609939089857313,4222970155956100,6832909245813413
mov $2,$0
add $2,1
mov $4,$0
lpb $2,1
mov $0,$4
sub $2,1
sub $0,$2
mov $6,2
mov $8,$0
lpb $6,1
mov $0,$8
sub $6,1
add $0,$6
sub $0,1
cal $0,131269 ; a(n) = 3*a(n-1) - 2*a(n-2) - a(n-3) + a(n-4) with n>3, a(0)=1, a(1)=2, a(2)=3, a(3)=6.
div $0,2
mov $3,$0
mov $5,$6
lpb $5,1
sub $5,1
mov $7,$3
lpe
lpe
lpb $8,1
sub $7,$3
mov $8,0
lpe
mov $3,$7
mul $3,2
add $3,1
add $1,$3
lpe
| 34.027778
| 721
| 0.707755
|
9fb4a00d8de2f306dc5dd1c749c4ca5fd2ae0d88
| 1,096
|
asm
|
Assembly
|
Pending/2021-04-25_01_Allen/COCOIOCFG-02.asm
|
MarkO-555/CoCoIO-NIC-Base-Code
|
f3084e1f1a351d950812ea351f777b279a2a2110
|
[
"BSD-3-Clause"
] | 1
|
2021-12-12T04:03:37.000Z
|
2021-12-12T04:03:37.000Z
|
Allen/COCOIOCFG.asm
|
MarkO-555/CoCoIO-NIC-Base-Code
|
f3084e1f1a351d950812ea351f777b279a2a2110
|
[
"BSD-3-Clause"
] | null | null | null |
Allen/COCOIOCFG.asm
|
MarkO-555/CoCoIO-NIC-Base-Code
|
f3084e1f1a351d950812ea351f777b279a2a2110
|
[
"BSD-3-Clause"
] | 1
|
2021-12-14T04:18:19.000Z
|
2021-12-14T04:18:19.000Z
|
;*********************************************************************
;* Title: COCOIOCFG.asm
;*********************************************************************
;* Author: R. Allen Murphey
;*
;* License: Contributed 2021 by R. Allen Murphey to CoCoIO Development
;*
;* Description: CoCoIO for Color Computer Configuration
;*
;* Documentation: none
;*
;* Include Files: none
;*
;* Assembler: lwasm 1.4.2
;*
;* Revision History:
;* Rev # Date Who Comments
;* ----- ----------- ------ ---------------------------------------
;* 00 2021 RAM Initial data to config for testing
;*********************************************************************
MYGATEWAY: ; My Gateway IP Address
fcb 10,39,128,1
MYSUBNET: ; My Subnet Mask
fcb 255,255,255,0
MYMAC: ; My Source Hardware Address
fcb $00,$08,$DC,$00,$00,$01
MYIP: ; My Source IP Address
fcb 10,39,128,68
; End of My CoCoIO configuration
| 32.235294
| 70
| 0.394161
|
c78f7d3b5a8b4bd30af5cff073f58596099007e7
| 7,515
|
asm
|
Assembly
|
source/features/screen.asm
|
sanjula97/CustomOS
|
c8d435ce57f7a479af949fbfdf370a4707ce626d
|
[
"MIT"
] | null | null | null |
source/features/screen.asm
|
sanjula97/CustomOS
|
c8d435ce57f7a479af949fbfdf370a4707ce626d
|
[
"MIT"
] | null | null | null |
source/features/screen.asm
|
sanjula97/CustomOS
|
c8d435ce57f7a479af949fbfdf370a4707ce626d
|
[
"MIT"
] | null | null | null |
; ==================================================================
; Dragon_OS -- The Dragon_OS Operating System kernel
;
; SCREEN HANDLING SYSTEM CALLS
; ==================================================================
; ------------------------------------------------------------------
; os_print_string -- Displays text
; IN: SI = message location (zero-terminated string)
; OUT: Nothing (registers preserved)
os_print_string:
pusha
mov ah, 0Eh ; int 10h teletype function
.repeat:
lodsb ; Get char from string
cmp al, 0
je .done ; If char is zero, end of string
int 10h ; Otherwise, print it
jmp .repeat ; And move on to next char
.done:
popa
ret
; ------------------------------------------------------------------
; os_show_cursor -- Turns on cursor in text mode
; IN/OUT: Nothing
os_show_cursor:
pusha
mov ch, 6
mov cl, 7
mov ah, 1
mov al, 3
int 10h
popa
ret
; ------------------------------------------------------------------
; os_hide_cursor -- Turns off cursor in text mode
; IN/OUT: Nothing
os_hide_cursor:
pusha
mov ch, 32
mov ah, 1
mov al, 3 ; Must be video mode for buggy BIOSes!
int 10h
popa
ret
; ------------------------------------------------------------------
; os_draw_block -- Render block of specified colour
; IN: BL/DL/DH/SI/DI = colour/start X pos/start Y pos/width/finish Y pos
; ------------------------------------------------------------------
; os_draw_background -- Clear screen with white top and bottom bars
; containing text, and a coloured middle section.
; IN: AX/BX = top/bottom string locations, CX = colour
os_draw_background:
pusha
push ax ; Store params to pop out later
push bx
push cx
mov dl, 0
mov dh, 0
call os_move_cursor
mov ah, 09h ; Draw white bar at top
mov bh, 0
mov cx, 80
mov bl, 10001111b
mov al, ' '
int 10h
mov dh, 1
mov dl, 0
call os_move_cursor
mov ah, 09h ; Draw colour section
mov cx, 1840
pop bx ; Get colour param (originally in CX)
mov bh, 0
mov al, ' '
int 10h
mov dh, 24
mov dl, 0
call os_move_cursor
mov ah, 09h ; Draw white bar at bottom
mov bh, 0
mov cx, 80
mov bl, 10001111b
mov al, ' '
int 10h
mov dh, 24
mov dl, 1
call os_move_cursor
pop bx ; Get bottom string param
mov si, bx
call os_print_string
mov dh, 0
mov dl, 1
call os_move_cursor
pop ax ; Get top string param
mov si, ax
call os_print_string
mov dh, 1 ; Ready for app text
mov dl, 0
call os_move_cursor
popa
ret
; ------------------------------------------------------------------
; os_draw_block -- Render block of specified colour
; IN: BL/DL/DH/SI/DI = colour/start X pos/start Y pos/width/finish Y pos
os_draw_block:
pusha
.more:
call os_move_cursor ; Move to block starting position
mov ah, 09h ; Draw colour section
mov bh, 0
mov cx, si
mov al, ' '
int 10h
inc dh ; Get ready for next line
mov ax, 0
mov al, dh ; Get current Y position into DL
cmp ax, di ; Reached finishing point (DI)?
jne .more ; If not, keep drawing
popa
ret
; ------------------------------------------------------------------
; os_move_cursor -- Moves cursor in text mode
; IN: DH, DL = row, column; OUT: Nothing (registers preserved)
os_move_cursor:
pusha
mov bh, 0
mov ah, 2
int 10h ; BIOS interrupt to move cursor
popa
ret
; ------------------------------------------------------------------
; os_dialog_box -- Print dialog box in middle of screen, with button(s)
; IN: AX, BX, CX = string locations (set registers to 0 for no display)
; IN: DX = 0 for single 'OK' dialog, 1 for two-button 'OK' and 'Cancel'
; OUT: If two-button mode, AX = 0 for OK and 1 for cancel
; NOTE: Each string is limited to 40 characters
os_dialog_box:
pusha
mov [.tmp], dx
call os_hide_cursor
mov dh, 9 ; First, draw red background box
mov dl, 19
.redbox: ; Loop to draw all lines of box
call os_move_cursor
pusha
mov ah, 09h
mov bh, 0
mov cx, 42
mov bl, 10010000b ; White on red
mov al, ' '
int 10h
popa
inc dh
cmp dh, 16
je .boxdone
jmp .redbox
.boxdone:
cmp ax, 0 ; Skip string params if zero
je .no_first_string
mov dl, 20
mov dh, 10
call os_move_cursor
mov si, ax ; First string
call os_print_string
.no_first_string:
cmp bx, 0
je .no_second_string
mov dl, 20
mov dh, 11
call os_move_cursor
mov si, bx ; Second string
call os_print_string
.no_second_string:
cmp cx, 0
je .no_third_string
mov dl, 20
mov dh, 12
call os_move_cursor
mov si, cx ; Third string
call os_print_string
.no_third_string:
mov dx, [.tmp]
cmp dx, 0
je .one_button
cmp dx, 1
je .two_button
.one_button:
mov bl, 11110000b ; Black on white
mov dh, 14
mov dl, 35
mov si, 8
mov di, 15
call os_draw_block
mov dl, 38 ; OK button, centred at bottom of box
mov dh, 14
call os_move_cursor
mov si, .ok_button_string
call os_print_string
jmp .one_button_wait
.one_button_wait:
call os_wait_for_key
cmp al, 13 ; Wait for enter key (13) to be pressed
jne .one_button_wait
call os_show_cursor
popa
ret
.two_button:
mov bl, 11110000b ; Black on white
mov dh, 14
mov dl, 27
mov si, 8
mov di, 15
call os_draw_block
mov dl, 30 ; OK button
mov dh, 14
call os_move_cursor
mov si, .ok_button_string
call os_print_string
mov dl, 44 ; Cancel button
mov dh, 14
call os_move_cursor
mov si, .cancel_button_string
call os_print_string
mov cx, 0 ; Default button = 0
jmp .two_button_wait
.two_button_wait:
call os_wait_for_key
cmp ah, 75 ; Left cursor key pressed?
jne .noleft
mov bl, 11110000b ; Black on white
mov dh, 14
mov dl, 27
mov si, 8
mov di, 15
call os_draw_block
mov dl, 30 ; OK button
mov dh, 14
call os_move_cursor
mov si, .ok_button_string
call os_print_string
mov bl, 01001111b ; White on red for cancel button
mov dh, 14
mov dl, 42
mov si, 9
mov di, 15
call os_draw_block
mov dl, 44 ; Cancel button
mov dh, 14
call os_move_cursor
mov si, .cancel_button_string
call os_print_string
mov cx, 0 ; And update result we'll return
jmp .two_button_wait
.noleft:
cmp ah, 77 ; Right cursor key pressed?
jne .noright
mov bl, 01001111b ; Black on white
mov dh, 14
mov dl, 27
mov si, 8
mov di, 15
call os_draw_block
mov dl, 30 ; OK button
mov dh, 14
call os_move_cursor
mov si, .ok_button_string
call os_print_string
mov bl, 11110000b ; White on red for cancel button
mov dh, 14
mov dl, 43
mov si, 8
mov di, 15
call os_draw_block
mov dl, 44 ; Cancel button
mov dh, 14
call os_move_cursor
mov si, .cancel_button_string
call os_print_string
mov cx, 1 ; And update result we'll return
jmp .two_button_wait
.noright:
cmp al, 13 ; Wait for enter key (13) to be pressed
jne .two_button_wait
call os_show_cursor
mov [.tmp], cx ; Keep result after restoring all regs
popa
mov ax, [.tmp]
ret
.ok_button_string db 'HInfo', 0
.cancel_button_string db 'Exit', 0
.ok_button_noselect db 'HardwareInfo', 0
.cancel_button_noselect db ' Exit ', 0
.tmp dw 0
; ==================================================================
| 18.419118
| 73
| 0.585363
|
5f9b874590b536215dd354428bb1a9517064f048
| 649
|
asm
|
Assembly
|
oeis/051/A051399.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/051/A051399.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/051/A051399.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A051399: a(n) = (n-1)!*a(n-1)+1.
; Submitted by Jamie Morken(s2.)
; 0,1,2,5,31,745,89401,64368721,324418353841,13080548026869121,4746669267990266628481,17224713439683079541431852801,687555441429141549439426981886956801,329340156533265088807964627407023326809881601,2050808005007897599921042940527784322130330374964300801,178785937455869555265697778477035463325472545780843004833971251201,233793787769891748572512414548961352017724489605314942853484300844436915968001,4891618298629109147887601181879472656899254347884044597390179195274734566469197054373888001
mov $2,1
lpb $0
sub $0,1
mul $1,$2
add $1,1
add $3,1
mul $2,$3
lpe
mov $0,$1
| 46.357143
| 492
| 0.853621
|
547b545dac93d547f8b34201169e2dd395ce36ca
| 354
|
asm
|
Assembly
|
programs/oeis/162/A162255.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/162/A162255.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/162/A162255.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A162255: a(n) = 2*a(n-2) for n > 2; a(1) = 3, a(2) = 2.
; 3,2,6,4,12,8,24,16,48,32,96,64,192,128,384,256,768,512,1536,1024,3072,2048,6144,4096,12288,8192,24576,16384,49152,32768,98304,65536,196608,131072,393216,262144,786432,524288,1572864,1048576,3145728,2097152
mov $1,3
mov $2,1
lpb $0
sub $0,1
mul $2,2
mov $3,$1
mov $1,$2
mov $2,$3
lpe
| 27.230769
| 207
| 0.649718
|
ed9283174e51a12fc5cd6ed643d37b25beadafb4
| 4,246
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1434.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_1434.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_1434.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 %r12
push %rbp
push %rdx
lea addresses_D_ht+0x3f13, %r11
nop
nop
nop
nop
nop
add %rdx, %rdx
mov (%r11), %r12d
nop
nop
add $7960, %rbp
pop %rdx
pop %rbp
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
// Store
mov $0xfc1e00000000f13, %r15
nop
xor %rcx, %rcx
mov $0x5152535455565758, %r14
movq %r14, (%r15)
sub %r14, %r14
// Faulty Load
lea addresses_D+0x15713, %r15
and %rdi, %rdi
mov (%r15), %r8d
lea oracles, %r14
and $0xff, %r8
shlq $12, %r8
mov (%r14,%r8,1), %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 59.802817
| 2,999
| 0.659209
|
cbd551e9c4b0b8503d0ca1d2e2e54b3e38886432
| 442
|
nasm
|
Assembly
|
Projetos/F-Assembly/src/nasm/add.nasm
|
mariaeduardabicalho/Z01
|
a08eb895cb064aad16e512d20b09c3f02704f98d
|
[
"Unlicense"
] | 2
|
2018-03-21T01:20:58.000Z
|
2018-04-16T14:35:51.000Z
|
Projetos/F-Assembly/src/nasm/add.nasm
|
mariaeduardabicalho/Z01
|
a08eb895cb064aad16e512d20b09c3f02704f98d
|
[
"Unlicense"
] | 70
|
2018-03-13T12:19:23.000Z
|
2018-05-16T20:38:45.000Z
|
Projetos/F-Assembly/src/nasm/add.nasm
|
mariaeduardabicalho/Z01
|
a08eb895cb064aad16e512d20b09c3f02704f98d
|
[
"Unlicense"
] | null | null | null |
; Arquivo: add.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 27/03/2017
; 2018 @ Rafael Corsi
; Adicione o valor de RAM[1] com RAM[0] gravando em RAM[2].
leaw $R1,%A ;atribui R1 a A
movw (%A),%S ;Move o que esta em A[1] para S
leaw $R0,%A ;atribui R0 a A
addw %S,(%A),%D ;D fica igual a S mais ram[A]
leaw $R2,%A ;atribui R2 a A
movw %D,(%A) ;Move o que esta em D para A[3]
| 29.466667
| 60
| 0.595023
|
1254dad02e1b1b1e2290fea19d4fde5af4438ce8
| 2,918
|
asm
|
Assembly
|
src/x86-64/syscalls/input.asm
|
ohnx/ge
|
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
|
[
"BSD-2-Clause"
] | null | null | null |
src/x86-64/syscalls/input.asm
|
ohnx/ge
|
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
|
[
"BSD-2-Clause"
] | null | null | null |
src/x86-64/syscalls/input.asm
|
ohnx/ge
|
e1ea8dcc1a908aa4d45963a282ad40c82a71b0a8
|
[
"BSD-2-Clause"
] | null | null | null |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2015 Return Infinity -- see LICENSE.TXT
;
; Input Functions
; =============================================================================
; -----------------------------------------------------------------------------
; os_input -- Take string from keyboard entry
; IN: RDI = location where string will be stored
; RCX = maximum number of characters to accept
; OUT: RCX = length of string that was input (NULL not counted)
; All other registers preserved
os_input:
push rdi
push rdx ; Counter to keep track of max accepted characters
push rax
mov rdx, rcx ; Max chars to accept
xor rcx, rcx ; Offset from start
os_input_more:
mov al, '_'
call os_output_char
call os_dec_cursor
call os_input_key
jnc os_input_halt ; No key entered... halt until an interrupt is received
cmp al, 0x1C ; If Enter key pressed, finish
je os_input_done
cmp al, 0x0E ; Backspace
je os_input_backspace
cmp al, 32 ; In ASCII range (32 - 126)?
jl os_input_more
cmp al, 126
jg os_input_more
cmp rcx, rdx ; Check if we have reached the max number of chars
je os_input_more ; Jump if we have (should beep as well)
stosb ; Store AL at RDI and increment RDI by 1
inc rcx ; Increment the counter
call os_output_char ; Display char
jmp os_input_more
os_input_backspace:
cmp rcx, 0 ; backspace at the beginning? get a new char
je os_input_more
mov al, ' ' ; 0x20 is the character for a space
call os_output_char ; Write over the last typed character with the space
call os_dec_cursor ; Decrement the cursor again
call os_dec_cursor ; Decrement the cursor
dec rdi ; go back one in the string
mov byte [rdi], 0x00 ; NULL out the char
dec rcx ; decrement the counter by one
jmp os_input_more
os_input_halt:
hlt ; Halt until another keystroke is received
jmp os_input_more
os_input_done:
mov al, 0x00
stosb ; We NULL terminate the string
mov al, ' '
call os_output_char
pop rax
pop rdx
pop rdi
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; os_input_key -- Scans keyboard for input
; IN: Nothing
; OUT: AL = 0 if no key pressed, otherwise ASCII code, other regs preserved
; Carry flag is set if there was a keystroke, clear if there was not
; All other registers preserved
os_input_key:
mov al, [key]
cmp al, 0
je os_input_key_no_key
mov byte [key], 0x00 ; clear the variable as the keystroke is in AL now
stc ; set the carry flag
ret
os_input_key_no_key:
clc ; clear the carry flag
ret
; -----------------------------------------------------------------------------
; =============================================================================
; EOF
| 30.715789
| 79
| 0.59013
|
c406bc6c2293eda6adc233116b19f96f46958b75
| 558
|
asm
|
Assembly
|
oeis/157/A157666.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/157/A157666.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/157/A157666.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A157666: a(n) = 19683*n - 13716.
; 5967,25650,45333,65016,84699,104382,124065,143748,163431,183114,202797,222480,242163,261846,281529,301212,320895,340578,360261,379944,399627,419310,438993,458676,478359,498042,517725,537408,557091,576774,596457,616140,635823,655506,675189,694872,714555,734238,753921,773604,793287,812970,832653,852336,872019,891702,911385,931068,950751,970434,990117,1009800,1029483,1049166,1068849,1088532,1108215,1127898,1147581,1167264,1186947,1206630,1226313,1245996,1265679,1285362,1305045,1324728,1344411
mul $0,19683
add $0,5967
| 93
| 496
| 0.829749
|
c1f09341b3a02ee15506b85d91fec41e3372e3ba
| 498
|
asm
|
Assembly
|
arch/lib/scheme/is_sob_bool.asm
|
Mosseridan/Compiler-Principles
|
6c72a462b90ca6c6db380976c2aa60471fa65325
|
[
"MIT"
] | null | null | null |
arch/lib/scheme/is_sob_bool.asm
|
Mosseridan/Compiler-Principles
|
6c72a462b90ca6c6db380976c2aa60471fa65325
|
[
"MIT"
] | null | null | null |
arch/lib/scheme/is_sob_bool.asm
|
Mosseridan/Compiler-Principles
|
6c72a462b90ca6c6db380976c2aa60471fa65325
|
[
"MIT"
] | null | null | null |
/* scheme/is_sob_bool.asm
* Take pointers to a Scheme object, and places in R0 either 0 or 1
* (long, not Scheme integer objects or Scheme boolean objets),
* depending on whether the argument is Boolean.
*
* Programmer: Mayer Goldberg, 2010
*/
IS_SOB_BOOL:
PUSH(FP);
MOV(FP, SP);
MOV(R0, FPARG(0));
CMP(IND(R0), T_BOOL);
JUMP_EQ(L_IS_SOB_BOOL_TRUE);
MOV(R0, IMM(0));
JUMP(L_IS_SOB_BOOL_EXIT);
L_IS_SOB_BOOL_TRUE:
MOV(R0, IMM(1));
L_IS_SOB_BOOL_EXIT:
POP(FP);
RETURN;
| 22.636364
| 67
| 0.690763
|
af9bbd44c737694d648df06f7e6935d57e16f819
| 771
|
asm
|
Assembly
|
programs/oeis/273/A273791.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/273/A273791.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/273/A273791.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A273791: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 931", based on the 5-celled von Neumann neighborhood.
; 4,20,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,464,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,608,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,752,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,896,904,912,920,928,936,944,952,960,968,976,984,992,1000,1008,1016,1024
mul $0,2
mov $1,$0
sub $0,1
div $1,$0
add $1,$0
add $1,2
mul $1,4
| 70.090909
| 504
| 0.735409
|
3fc1e9a305ba100900c617589a69d19d4bf67372
| 6,074
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1928.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1928.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_1928.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 %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x87c5, %r9
nop
nop
nop
nop
xor %r13, %r13
vmovups (%r9), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r8
nop
nop
nop
sub %r9, %r9
lea addresses_UC_ht+0x11d65, %rsi
lea addresses_A_ht+0x1d50d, %rdi
xor $11853, %rbp
mov $100, %rcx
rep movsb
nop
nop
sub $42752, %rcx
lea addresses_D_ht+0x2de5, %rbp
and %r8, %r8
and $0xffffffffffffffc0, %rbp
movaps (%rbp), %xmm3
vpextrq $0, %xmm3, %rcx
nop
nop
nop
nop
add $18497, %r13
lea addresses_D_ht+0x1b7e5, %rsi
lea addresses_WC_ht+0x21a5, %rdi
nop
xor $58146, %r10
mov $79, %rcx
rep movsb
nop
nop
nop
add %rdi, %rdi
lea addresses_A_ht+0xcee5, %rsi
lea addresses_UC_ht+0x7625, %rdi
nop
nop
nop
nop
add %rbp, %rbp
mov $83, %rcx
rep movsl
nop
xor $57308, %r8
lea addresses_WT_ht+0x1e265, %rsi
lea addresses_UC_ht+0xbf45, %rdi
nop
nop
nop
nop
nop
cmp %r8, %r8
mov $61, %rcx
rep movsq
nop
nop
xor $42427, %r13
lea addresses_WC_ht+0x131a5, %r10
nop
nop
inc %rbp
mov (%r10), %di
nop
nop
nop
nop
lfence
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
// Store
lea addresses_WC+0x29a1, %rdx
xor $16798, %rbp
mov $0x5152535455565758, %r14
movq %r14, (%rdx)
// Exception!!!
nop
nop
nop
mov (0), %rcx
nop
nop
dec %rbp
// Faulty Load
mov $0x5e7770000000de5, %rcx
nop
and $12621, %r9
mov (%rcx), %r14w
lea oracles, %rcx
and $0xff, %r14
shlq $12, %r14
mov (%rcx,%r14,1), %r14
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.687898
| 2,999
| 0.659039
|
7bb7bf46d37ff0763578ec3d70a89dcd23137d9e
| 249
|
asm
|
Assembly
|
programs/oeis/134/A134960.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/134/A134960.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/134/A134960.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A134960: a(n) = n*453060.
; 0,453060,906120,1359180,1812240,2265300,2718360,3171420,3624480,4077540,4530600,4983660,5436720,5889780,6342840,6795900,7248960,7702020,8155080,8608140,9061200,9514260,9967320,10420380,10873440
mov $1,$0
mul $1,453060
| 41.5
| 195
| 0.803213
|
a653c2ae3fb5087673aeafceb3fe669f401ce14a
| 461
|
asm
|
Assembly
|
src/classes/intro-systems/assembly1/prework/sum_to_n.asm
|
ggilmore/csi
|
e05958cbb89f1d4b7ade4b0c21072adf848f241f
|
[
"MIT"
] | 1
|
2021-08-21T03:22:50.000Z
|
2021-08-21T03:22:50.000Z
|
src/classes/intro-systems/assembly1/prework/sum_to_n.asm
|
ggilmore/csi
|
e05958cbb89f1d4b7ade4b0c21072adf848f241f
|
[
"MIT"
] | null | null | null |
src/classes/intro-systems/assembly1/prework/sum_to_n.asm
|
ggilmore/csi
|
e05958cbb89f1d4b7ade4b0c21072adf848f241f
|
[
"MIT"
] | null | null | null |
; section .text
; global sum_to_n, loop, done
; sum_to_n:
; ; rdi = n
; xor rax, rax ; total = 0
; xor rsi, rsi ; i = 0 (where do I save local vars)?
; cmp rsi, rdi ; i > n ?
; jg done
; loop:
; add rax, rsi ; total = total + i;
; inc rsi ; i++
; cmp rsi, rdi ; i <= n ?
; jle loop
; done:
; ret
section .text
global sum_to_n
sum_to_n:
; rdi = n
mov rax, rdi
inc rax
imul rdi
sar rax, 1
ret
| 15.896552
| 56
| 0.507592
|
a66b2746464614fa997bce66722eecc39de7e7d9
| 1,244
|
asm
|
Assembly
|
lib/chibiakumas/SrcMSX/MSX_V1_GetHardwareVer.asm
|
gilbertfrancois/msx
|
f34418180820df067530f31bd9727ef1c65a7989
|
[
"Apache-2.0"
] | null | null | null |
lib/chibiakumas/SrcMSX/MSX_V1_GetHardwareVer.asm
|
gilbertfrancois/msx
|
f34418180820df067530f31bd9727ef1c65a7989
|
[
"Apache-2.0"
] | null | null | null |
lib/chibiakumas/SrcMSX/MSX_V1_GetHardwareVer.asm
|
gilbertfrancois/msx
|
f34418180820df067530f31bd9727ef1c65a7989
|
[
"Apache-2.0"
] | null | null | null |
GetHardwareVer:
call BankSwapper_INIT
;D= 0=msx 1=MSX2 2=MSX2+ 3=TurboR 4=WSX
;E= 0= No memory Mapper / 1=has memory mapper with 128k+
di
ld a,(&002D)
ld d,a
ld e,0
cp 2
jr nz,GetHardwareVerSwappertest
ld a,8
out (64),a ;Get current device id
in a,(64)
cp 247 ;247=CPL of 8
jr nz,GetHardwareVerSwappertest
ld d,4
GetHardwareVerSwappertest:
;FCH to FFH memory mapper for banks 1-4
ld a,&69
ld (&C000),a
ld a,4
out (&FF),a ;Switch to bank 4 in top bank
ld a,(&C000)
cp &69 ;Did it work?
ret z
ld a,&69
ld (&C000),a
ld a,(&C000)
cp &69 ;is the current bank writable
ret nz ;if no then we don't have extra ram
xor a
out (&FF),a ;Yes we have a 128k memory mapper!
inc e
ret
CHGCPU equ &0180 ;Turbo R ON
EnableFastCPU:
;Kick in the turbo-R
ld A,(CHGCPU)
cp &C3 ;See if this is a Turbo-R
ld a,&82
jp z,CHGCPU ;Call the 'Turbo' Firmware function
;Panasonic FS-A1WX turbo mode
ld a,(&002D)
cp 2 ;See if we're on a MSX2+
ret nz ;No? then give up
ld a,8
out (64),a ;See if this is a WSX
in a,(64)
cp 247 ;CPL of the 8 we sent
ret nz ;No? then return
xor a
out (65),a ;Turn on 6mhz
ret
| 18.848485
| 58
| 0.604502
|
95b4751d3f9475c347a01e812420006098c64904
| 9,153
|
asm
|
Assembly
|
src/test/cpp/raw/lrsc/build/lrsc.asm
|
zeldin/VexRiscv
|
2942d0652a89646c5225bee15dd55cc3b0871766
|
[
"MIT"
] | 3
|
2021-07-06T06:14:44.000Z
|
2021-12-15T16:26:09.000Z
|
src/test/cpp/raw/lrsc/build/lrsc.asm
|
zeldin/VexRiscv
|
2942d0652a89646c5225bee15dd55cc3b0871766
|
[
"MIT"
] | null | null | null |
src/test/cpp/raw/lrsc/build/lrsc.asm
|
zeldin/VexRiscv
|
2942d0652a89646c5225bee15dd55cc3b0871766
|
[
"MIT"
] | 2
|
2021-02-03T16:34:13.000Z
|
2022-01-12T04:46:05.000Z
|
build/lrsc.elf: file format elf32-littleriscv
Disassembly of section .crt_section:
80000000 <trap_entry-0x20>:
80000000: 04c0006f j 8000004c <_start>
80000004: 00000013 nop
80000008: 00000013 nop
8000000c: 00000013 nop
80000010: 00000013 nop
80000014: 00000013 nop
80000018: 00000013 nop
8000001c: 00000013 nop
80000020 <trap_entry>:
80000020: 30002ef3 csrr t4,mstatus
80000024: 080efe93 andi t4,t4,128
80000028: 000e8a63 beqz t4,8000003c <notExternalInterrupt>
8000002c: 00002eb7 lui t4,0x2
80000030: 800e8e93 addi t4,t4,-2048 # 1800 <trap_entry-0x7fffe820>
80000034: 300e9073 csrw mstatus,t4
80000038: 30200073 mret
8000003c <notExternalInterrupt>:
8000003c: 34102ef3 csrr t4,mepc
80000040: 004e8e93 addi t4,t4,4
80000044: 341e9073 csrw mepc,t4
80000048: 30200073 mret
8000004c <_start>:
8000004c: 00100e13 li t3,1
80000050: 10000537 lui a0,0x10000
80000054: 06400593 li a1,100
80000058: 06500613 li a2,101
8000005c: 06600693 li a3,102
80000060: 00d52023 sw a3,0(a0) # 10000000 <trap_entry-0x70000020>
80000064: 18b5262f sc.w a2,a1,(a0)
80000068: 00100713 li a4,1
8000006c: 26e61e63 bne a2,a4,800002e8 <fail>
80000070: 00052703 lw a4,0(a0)
80000074: 26e69a63 bne a3,a4,800002e8 <fail>
80000078: 00200e13 li t3,2
8000007c: 10000537 lui a0,0x10000
80000080: 00450513 addi a0,a0,4 # 10000004 <trap_entry-0x7000001c>
80000084: 06700593 li a1,103
80000088: 06800613 li a2,104
8000008c: 06900693 li a3,105
80000090: 00d52023 sw a3,0(a0)
80000094: 18b5262f sc.w a2,a1,(a0)
80000098: 00100713 li a4,1
8000009c: 24e61663 bne a2,a4,800002e8 <fail>
800000a0: 00052703 lw a4,0(a0)
800000a4: 24e69263 bne a3,a4,800002e8 <fail>
800000a8: 00300e13 li t3,3
800000ac: 10000537 lui a0,0x10000
800000b0: 00450513 addi a0,a0,4 # 10000004 <trap_entry-0x7000001c>
800000b4: 06700593 li a1,103
800000b8: 06800613 li a2,104
800000bc: 06900693 li a3,105
800000c0: 18b5262f sc.w a2,a1,(a0)
800000c4: 00100713 li a4,1
800000c8: 22e61063 bne a2,a4,800002e8 <fail>
800000cc: 00052703 lw a4,0(a0)
800000d0: 20e69c63 bne a3,a4,800002e8 <fail>
800000d4: 00400e13 li t3,4
800000d8: 10000537 lui a0,0x10000
800000dc: 00850513 addi a0,a0,8 # 10000008 <trap_entry-0x70000018>
800000e0: 06a00593 li a1,106
800000e4: 06b00613 li a2,107
800000e8: 06c00693 li a3,108
800000ec: 00d52023 sw a3,0(a0)
800000f0: 100527af lr.w a5,(a0)
800000f4: 18b5262f sc.w a2,a1,(a0)
800000f8: 1ed79863 bne a5,a3,800002e8 <fail>
800000fc: 1e061663 bnez a2,800002e8 <fail>
80000100: 00052703 lw a4,0(a0)
80000104: 1ee59263 bne a1,a4,800002e8 <fail>
80000108: 00500e13 li t3,5
8000010c: 10000537 lui a0,0x10000
80000110: 00850513 addi a0,a0,8 # 10000008 <trap_entry-0x70000018>
80000114: 06d00593 li a1,109
80000118: 06e00613 li a2,110
8000011c: 06f00693 li a3,111
80000120: 00d52023 sw a3,0(a0)
80000124: 18b5262f sc.w a2,a1,(a0)
80000128: 1c061063 bnez a2,800002e8 <fail>
8000012c: 00052703 lw a4,0(a0)
80000130: 1ae59c63 bne a1,a4,800002e8 <fail>
80000134: 00600e13 li t3,6
80000138: 10000537 lui a0,0x10000
8000013c: 00c50513 addi a0,a0,12 # 1000000c <trap_entry-0x70000014>
80000140: 07000593 li a1,112
80000144: 07100613 li a2,113
80000148: 07200693 li a3,114
8000014c: 10000437 lui s0,0x10000
80000150: 01040413 addi s0,s0,16 # 10000010 <trap_entry-0x70000010>
80000154: 07300493 li s1,115
80000158: 07400913 li s2,116
8000015c: 07500993 li s3,117
80000160: 00d52023 sw a3,0(a0)
80000164: 01342023 sw s3,0(s0)
80000168: 100527af lr.w a5,(a0)
8000016c: 10042aaf lr.w s5,(s0)
80000170: 18b5262f sc.w a2,a1,(a0)
80000174: 1894292f sc.w s2,s1,(s0)
80000178: 16d79863 bne a5,a3,800002e8 <fail>
8000017c: 16061663 bnez a2,800002e8 <fail>
80000180: 00052703 lw a4,0(a0)
80000184: 16e59263 bne a1,a4,800002e8 <fail>
80000188: 173a9063 bne s5,s3,800002e8 <fail>
8000018c: 14091e63 bnez s2,800002e8 <fail>
80000190: 00042a03 lw s4,0(s0)
80000194: 15449a63 bne s1,s4,800002e8 <fail>
80000198: 00700e13 li t3,7
8000019c: 10000537 lui a0,0x10000
800001a0: 01450513 addi a0,a0,20 # 10000014 <trap_entry-0x7000000c>
800001a4: 07800593 li a1,120
800001a8: 07900613 li a2,121
800001ac: 07a00693 li a3,122
800001b0: 01000e93 li t4,16
800001b4 <test7>:
800001b4: 00d52023 sw a3,0(a0)
800001b8: 100527af lr.w a5,(a0)
800001bc: 18b5262f sc.w a2,a1,(a0)
800001c0: 12d79463 bne a5,a3,800002e8 <fail>
800001c4: 12061263 bnez a2,800002e8 <fail>
800001c8: 00052703 lw a4,0(a0)
800001cc: 10e59e63 bne a1,a4,800002e8 <fail>
800001d0: fffe8e93 addi t4,t4,-1
800001d4: 00450513 addi a0,a0,4
800001d8: 00358593 addi a1,a1,3
800001dc: 00360613 addi a2,a2,3
800001e0: 00368693 addi a3,a3,3
800001e4: fc0e98e3 bnez t4,800001b4 <test7>
800001e8: 00900e13 li t3,9
800001ec: 10000537 lui a0,0x10000
800001f0: 10050513 addi a0,a0,256 # 10000100 <trap_entry-0x6fffff20>
800001f4: 07b00593 li a1,123
800001f8: 07c00613 li a2,124
800001fc: 07d00693 li a3,125
80000200: 00d52023 sw a3,0(a0)
80000204: 100527af lr.w a5,(a0)
80000208: 00000073 ecall
8000020c: 18b5262f sc.w a2,a1,(a0)
80000210: 00100713 li a4,1
80000214: 0ce61a63 bne a2,a4,800002e8 <fail>
80000218: 00052703 lw a4,0(a0)
8000021c: 0ce69663 bne a3,a4,800002e8 <fail>
80000220: 00b00e13 li t3,11
80000224: 10000537 lui a0,0x10000
80000228: 30050513 addi a0,a0,768 # 10000300 <trap_entry-0x6ffffd20>
8000022c: 08200593 li a1,130
80000230: 08300613 li a2,131
80000234: 08400693 li a3,132
80000238: 00d52023 sw a3,0(a0)
8000023c: 00001eb7 lui t4,0x1
80000240: 800e8e93 addi t4,t4,-2048 # 800 <trap_entry-0x7ffff820>
80000244: 304e9073 csrw mie,t4
80000248: 00800e93 li t4,8
8000024c: 100527af lr.w a5,(a0)
80000250: 300e9073 csrw mstatus,t4
80000254: 00000013 nop
80000258: 00000013 nop
8000025c: 00000013 nop
80000260: 00000013 nop
80000264: 00000013 nop
80000268: 00000013 nop
8000026c: 18b5262f sc.w a2,a1,(a0)
80000270: 00100713 li a4,1
80000274: 06e61a63 bne a2,a4,800002e8 <fail>
80000278: 00052703 lw a4,0(a0)
8000027c: 06e69663 bne a3,a4,800002e8 <fail>
80000280: 00c00e13 li t3,12
80000284: 10000537 lui a0,0x10000
80000288: 40050513 addi a0,a0,1024 # 10000400 <trap_entry-0x6ffffc20>
8000028c: 08c00593 li a1,140
80000290: 08d00613 li a2,141
80000294: 08e00693 li a3,142
80000298: 00d52023 sw a3,0(a0)
8000029c: 00001eb7 lui t4,0x1
800002a0: 800e8e93 addi t4,t4,-2048 # 800 <trap_entry-0x7ffff820>
800002a4: 304e9073 csrw mie,t4
800002a8: 00002eb7 lui t4,0x2
800002ac: 808e8e93 addi t4,t4,-2040 # 1808 <trap_entry-0x7fffe818>
800002b0: 100527af lr.w a5,(a0)
800002b4: 300e9073 csrw mstatus,t4
800002b8: 00000013 nop
800002bc: 00000013 nop
800002c0: 00000013 nop
800002c4: 00000013 nop
800002c8: 00000013 nop
800002cc: 00000013 nop
800002d0: 18b5262f sc.w a2,a1,(a0)
800002d4: 00100713 li a4,1
800002d8: 00e61863 bne a2,a4,800002e8 <fail>
800002dc: 00052703 lw a4,0(a0)
800002e0: 00e69463 bne a3,a4,800002e8 <fail>
800002e4: 0100006f j 800002f4 <pass>
800002e8 <fail>:
800002e8: f0100137 lui sp,0xf0100
800002ec: f2410113 addi sp,sp,-220 # f00fff24 <pass+0x700ffc30>
800002f0: 01c12023 sw t3,0(sp)
800002f4 <pass>:
800002f4: f0100137 lui sp,0xf0100
800002f8: f2010113 addi sp,sp,-224 # f00fff20 <pass+0x700ffc2c>
800002fc: 00012023 sw zero,0(sp)
80000300: 00000013 nop
80000304: 00000013 nop
80000308: 00000013 nop
8000030c: 00000013 nop
80000310: 00000013 nop
80000314: 00000013 nop
| 41.986239
| 79
| 0.612695
|
9e14128fed72acb853b46d99af03d2fc1cbd87f3
| 6,206
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_1813.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_1813.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_1813.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 %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x18a8e, %r8
nop
nop
nop
add $51325, %rax
movw $0x6162, (%r8)
nop
nop
nop
nop
add %rbp, %rbp
lea addresses_UC_ht+0x405e, %rsi
lea addresses_WC_ht+0xfa74, %rdi
nop
nop
dec %r15
mov $124, %rcx
rep movsb
nop
nop
xor %rdi, %rdi
lea addresses_WC_ht+0xd2de, %rsi
nop
and $26946, %r15
mov $0x6162636465666768, %r8
movq %r8, %xmm2
movups %xmm2, (%rsi)
dec %r15
lea addresses_WT_ht+0x70b2, %rsi
lea addresses_UC_ht+0x1c25e, %rdi
nop
nop
nop
dec %rbp
mov $44, %rcx
rep movsq
nop
add $39182, %rsi
lea addresses_D_ht+0x785e, %rsi
lea addresses_WC_ht+0x1825e, %rdi
nop
nop
nop
nop
nop
add $24196, %r9
mov $1, %rcx
rep movsb
cmp %rsi, %rsi
lea addresses_WT_ht+0x1005e, %rsi
lea addresses_normal_ht+0x16a5e, %rdi
nop
nop
nop
nop
xor $51067, %r15
mov $67, %rcx
rep movsb
nop
nop
cmp %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rsi
// Load
lea addresses_WT+0x1a25e, %r10
clflush (%r10)
nop
nop
nop
nop
nop
cmp $64619, %rcx
movb (%r10), %r13b
nop
nop
nop
sub $49598, %r9
// Store
lea addresses_WT+0x1ea5e, %rsi
cmp %r13, %r13
movw $0x5152, (%rsi)
add %r13, %r13
// Load
mov $0x58c0b10000000c5e, %r9
nop
nop
nop
nop
nop
sub %r15, %r15
movb (%r9), %r13b
nop
nop
sub $21711, %r10
// Faulty Load
lea addresses_WT+0x1ea5e, %r15
add $19803, %r10
mov (%r15), %si
lea oracles, %rcx
and $0xff, %rsi
shlq $12, %rsi
mov (%rcx,%rsi,1), %rsi
pop %rsi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}}
{'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}}
{'src': {'same': True, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'src': {'same': True, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}}
{'src': {'same': True, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}}
{'52': 21829}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 38.308642
| 2,999
| 0.657428
|
9f34b134696e8d216ccf3d2ee4274a1633c2ddf6
| 554
|
asm
|
Assembly
|
programs/oeis/308/A308495.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/308/A308495.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/308/A308495.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A308495: a(n) is the position of the first occurrence of prime(n) in A027748.
; 2,3,5,8,13,16,22,25,32,41,45,55,62,66,73,83,94,98,109,117,120,132,138,150,166,173,177,185,188,196,224,231,243,247,267,271,284,295,303,315,327,331,353,356,364,368,394,419,426,430,439,452,456,475,487,500,513,517,530,538,542,563,593,602,606,614,645,657,678,682,690,703,720,733,746,754,766,784,792,810,832,837,859,862,876,885,897,915,923,928,936,963,980,988,1007,1014,1027,1054,1058,1098
seq $0,6093 ; a(n) = prime(n) - 1.
seq $0,82186 ; 1 + sum of first n terms of A001221.
| 92.333333
| 385
| 0.712996
|
f5338fd2f3fd5d118e39c4dd8775da2032eb3083
| 305
|
asm
|
Assembly
|
programs/oeis/140/A140976.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/140/A140976.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/140/A140976.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A140976: Period length 10: repeat 8, 8, 6, 6, 4, 4, 2, 2, 0, 0.
; 8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0,8,8,6,6,4,4,2,2,0,0
div $0,2
mod $0,5
sub $0,4
sub $1,$0
mul $1,2
mov $0,$1
| 30.5
| 181
| 0.514754
|
bcf4558ad24c7b08b2a8e0679658b5efe5ca4652
| 5,845
|
asm
|
Assembly
|
SPIlib.asm
|
TheTrueForce/IttiaraStandardHeaders
|
95dfce9f00e16550ad6fe645614d04401ff9e385
|
[
"Apache-2.0"
] | null | null | null |
SPIlib.asm
|
TheTrueForce/IttiaraStandardHeaders
|
95dfce9f00e16550ad6fe645614d04401ff9e385
|
[
"Apache-2.0"
] | null | null | null |
SPIlib.asm
|
TheTrueForce/IttiaraStandardHeaders
|
95dfce9f00e16550ad6fe645614d04401ff9e385
|
[
"Apache-2.0"
] | null | null | null |
;Routines for easily controlling the 65SPI and certain SPI peripherals
;SPI configuration:
MASK_MODE = %11111100
;SPI constants
SPI_TxDone = %10000000
SPI_IRQen = %01000000
SPI_Busy = %00100000
SPI_FastRx = %00010000
SPI_HiZMOSI = %00001000
SPI_ExtClk = %00000100
SPI_CPOL = %00000010
SPI_CPHA = %00000001
SPI.Init:
LDA #$FF
STA SPI.SSR ;deassert slave selects
STZ SPI.CONTROL
STZ SPI.DIVISOR
RTS
;Mode number in A. Only the bottom two bits may be set, or crazies may occur.
;Disturbs SCRATCH1 and the N flag
SPI.SetMode:
STA SCRATCH1 ;save the mode for later. We can't use it from a register or the stack, so it must go in memory.
LDA #MASK_MODE
AND SPI.CONTROL ;remove the existing mode
ORA SCRATCH1 ;substitute in the new one.
STA SPI.CONTROL
RTS
;transmits the byte in A and receives one to A.
SPI.TRxByte:
STA SPI.DATA ;Shift out the byte
JSR SPI.WaitTRx
LDA SPI.DATA ;get the received byte
RTS
;Transmits byte in A.
SPI.TxByte:
PHA
STA SPI.DATA
JSR SPI.WaitTRx
PLA
RTS
SPI.WaitTRx:
LDA SPI.STATUS
BPL SPI.WaitTRx ;TC is bit 7 - if set, shift complete.
RTS
SPI.SelectSlave:
;Disturbs: SCRATCH1
;Parameters: A - bit number to lower(0-7)
;Returns: Nothing
;Lowers the slave-select line specified in A.
PHA
JSR ThreeToEight
EOR #$FF ;NOT A
STA SPI.SSR
PLA
RTS
;TODO: This routine produces incorrect results.
ThreeToEight:
;Disturbs: SCRATCH1
; C
;Parameters: A - bit number to set(0-7)
;Returns: A - decoded bit pattern
;Sets the bit as specified in A
STA SCRATCH1
SEC ;I'll need to shift in a one, and the carry is where it comes from
ASL A ;drop in a one into bit zero, to prevent off-by-one errors
BBR2 SCRATCH1, .no4 ;because SCRATCH1 is in ZP, I can make use of the fact that the W65C02 has these bit-branch instructions.
ASL A ;If bit 2(4s place) is set, shift the bit over 4 places
ASL A
ASL A
ASL A
.no4
BBR1 SCRATCH1, .no2 ;If bit 1(2s place) is set, shift the bit over 2 places
ASL A
ASL A
.no2
BBR0 SCRATCH1, .no1 ;If bit 0(is place) is set, shift the bit over 1 place
ASL A
.no1
RTS
;25AAxxx control implementation:
;Constants
AAROM_READ = $03
AAROM_WRITE = $02
AAROM_WREN = $06
AAROM_WRDI = $04
AAROM_RDSR = $05
AAROM_WRSR = $01
AAROM_PE = $42
AAROM_SE = $D8
AAROM_CE = $C7
AAROM_RDID = $AB
AAROM_DPD = $B9
AAROM_StagingArea = $7E00 ;This is where the AAROM driver puts and gets its data from.
;Disturbs: None
;Parameters: A Slave Mask
; X Page address
;Returns: Nothing
;Reads the given page into the SPI storage Staging Area($7E00 - $7EFF).
;Handles chip select signal.
SPI.AA_Read:
PHA
PHX
STA SPI.SSR ;Select SPI-10 #1
LDA #AAROM_Read
JSR SPI.TxByte ;Read command
;PLA
;PHA
TXA
JSR SPI.TxByte ;Page number
LDA #$00
JSR SPI.TxByte ;Low byte == 0
LDX #$00
.loop
JSR SPI.TRxByte
STA AAROM_StagingArea, X
INX
BNE .loop
LDA #$FF
STA SPI.SSR ;Deselect all SPI devices.
PLX
PLA
RTS
;Disturbs: None
;Parameters: A Slave Mask
; X Page address
;Returns: Nothing
;Writes the 256 bytes in the SPI storage Staging Area($7E00 - $7EFF).
;Handles chip select signal and write-enable.
SPI.AA_Write:
PHA
PHX
STA SPI.SSR ;Select the SPI device
PHA ;Also stack it; we'll need it again.
JSR SPI.AA_WREN ;Enable writing
LDA #$FF
STA SPI.SSR ;deselect
PLA
PHA
STA SPI.SSR ;select again
LDA #AAROM_WRITE
JSR SPI.TxByte ;Send write command
TXA
JSR SPI.TxByte ;Send page address
LDA #$00
JSR SPI.TxByte ;Send zero(low EEPROM page)
LDX #$00
.lowerLoop
LDA AAROM_StagingArea, X
JSR SPI.TxByte ;send a byte
INX
CPX #$80
BNE .lowerLoop ;If we reach byte $80(copied up to $7F), this loop is complete.
LDA #$FF
STA SPI.SSR ;deselect everything
;Polling the eeprom's status register is the proper way to do it, but it will be far simpler to simply wait for 5 ms, which is the maximum time a page write takes.
JSR Delay_5ms
;Now write the next half.
PLA ;retrieve the select pattern
PHA
STA SPI.SSR ;Select the EEPROM
JSR SPI.AA_WREN ;enable writing again(The write operation before disabled it)
LDA #$FF
STA SPI.SSR
PLA ;select the EEPROM one last time(it won't be needed again)
STA SPI.SSR
LDA #AAROM_WRITE
JSR SPI.TxByte ;Send write command
PLA ;Get the original contents of X(page address) into A
PHA
JSR SPI.TxByte ;Send page address
LDA #$80
JSR SPI.TxByte ;Send $80(high EEPROM page)
LDX #$80
.upperLoop
LDA AAROM_StagingArea, X
JSR SPI.TxByte ;send a byte
INX
BNE .upperLoop ;If we reach byte $100(copied up to $FF), this loop is complete.
.end
LDA #$FF
STA SPI.SSR
;Wait 5ms for write to complete
JSR Delay_5ms
PLX
PLA
RTS
;Calculated for a 1MHz clock frequency. Uses 5001 cycles
;Any routine of this form will take (2y + 3(y-1) + 4)x + 2x + 2(x-1) + 4 + 12 + 12.
;The constant fours are the last BNE(where the branch is not taken) and the decrement operation.
;The constant twelves are the JSR/RTS used to enter the routine, and the stack operations at the beginning and end.
Delay_5ms:
PHX ;3 cycles
PHY ;3 cycles
;Outer loop uses 4977 cycles. The remaining 24 is in the JSR/RTS and stack ops
LDX #$05 ;2 cycles
.outerLoop
;comes to 991 cycles, which is just under 1ms, but there is other overhead that will pick up the difference.
LDY #198 ;2 cycles ; - decimal 198
.innerLoop ;4 + 2y + 3(y-1) cycles
DEY ;2y cycles ;
BNE .innerLoop ;3y-1 + 2 cycles; - 3y for branches taken, 2 for exit.
DEX ;2x cycles
BNE .outerLoop ;2x-1 + 2 cycles
PLY ;3 cycles
PLX ;3 cycles
RTS
SPI.AA_WREN:
;Disturbs: None
;Parameters: None
;Returns: Nothing
;Enables writing to the EEPROM. Must be called before any write will stick.
PHA
LDA #AAROM_WREN
JSR SPI.TxByte
PLA
RTS
| 22.743191
| 164
| 0.701112
|
36093c6059b34db9be6e7f5f6fc277f44f26e900
| 408
|
asm
|
Assembly
|
oeis/089/A089186.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/089/A089186.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/089/A089186.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A089186: Decreases from 9 * 10^k down to 1, restarting at 9 * 10^(k+1).
; Submitted by Jamie Morken(s2)
; 9,8,7,6,5,4,3,2,1,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28
mov $1,$0
add $1,1
sub $2,$0
mov $0,1
lpb $1
mul $0,10
div $1,10
lpe
add $0,$2
sub $0,1
| 27.2
| 208
| 0.627451
|
bea2f16a00ed6f0195d3e25fdb375acf4c9baaae
| 644
|
asm
|
Assembly
|
oeis/007/A007586.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/007/A007586.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/007/A007586.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A007586: 11-gonal (or hendecagonal) pyramidal numbers: n*(n+1)*(3*n-2)/2.
; 0,1,12,42,100,195,336,532,792,1125,1540,2046,2652,3367,4200,5160,6256,7497,8892,10450,12180,14091,16192,18492,21000,23725,26676,29862,33292,36975,40920,45136,49632,54417,59500,64890,70596,76627,82992,89700,96760,104181,111972,120142,128700,137655,147016,156792,166992,177625,188700,200226,212212,224667,237600,251020,264936,279357,294292,309750,325740,342271,359352,376992,395200,413985,433356,453322,473892,495075,516880,539316,562392,586117,610500,635550,661276,687687,714792,742600,771120,800361
add $0,1
mov $1,$0
bin $0,2
mul $1,6
sub $1,10
mul $0,$1
div $0,2
| 58.545455
| 500
| 0.782609
|
ddcdd2b96839fe215f6a0a298ff7a1deabb4536d
| 174
|
asm
|
Assembly
|
kernel/amd64/sys/gdt.asm
|
ndmrr/fnix
|
ff8e260787474daf0d373bd2fb3c2e067e5b6486
|
[
"MIT"
] | 2
|
2022-03-19T01:21:59.000Z
|
2022-03-28T20:57:26.000Z
|
kernel/amd64/sys/gdt.asm
|
ndmrr/fnix
|
ff8e260787474daf0d373bd2fb3c2e067e5b6486
|
[
"MIT"
] | null | null | null |
kernel/amd64/sys/gdt.asm
|
ndmrr/fnix
|
ff8e260787474daf0d373bd2fb3c2e067e5b6486
|
[
"MIT"
] | null | null | null |
global gdtFlush
gdtFlush:
lgdt[rdi]
mov ax, 0x10
mov es, ax
mov ss, ax
mov ds, ax
mov fs, ax
mov gs, ax
push 0x08
lea rax, [rel .reload_cs]
push rax
retfq
.reload_cs:
ret
| 9.666667
| 25
| 0.706897
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.