Advertisement
ifinox

3000 byte assembler

Nov 24th, 2019
1,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "main.cpp"
  2. __SREG__ = 0x3f
  3. __SP_H__ = 0x3e
  4. __SP_L__ = 0x3d
  5. __CCP__  = 0x34
  6. __tmp_reg__ = 0
  7. __zero_reg__ = 1
  8.     .section    .debug_abbrev,"",@progbits
  9. .Ldebug_abbrev0:
  10.     .section    .debug_info,"",@progbits
  11. .Ldebug_info0:
  12.     .section    .debug_line,"",@progbits
  13. .Ldebug_line0:
  14.     .text
  15. .Ltext0:
  16. .global main
  17.     .type   main, @function
  18. main:
  19. .LFB6:
  20. .LM1:
  21. /* prologue: function */
  22. /* frame size = 0 */
  23. .LBB2:
  24. .LM2:
  25.     ldi r18,lo8(245)
  26.     ldi r19,hi8(245)
  27. .LVL0:
  28. .L4:
  29. .LM3:
  30.     ldi r30,lo8(0)
  31.     ldi r31,hi8(0)
  32.     ld r24,Z
  33.     ldd r25,Z+1
  34.     cpi r24,lo8(1)
  35.     brne .L2
  36. .L7:
  37.     cpi r25,lo8(2)
  38.     brne .L7
  39. .LM4:
  40.     sts (servoRotate)+1,r19
  41.     sts servoRotate,r18
  42.     rjmp .L4
  43. .L2:
  44. .L9:
  45.     rjmp .L9
  46. .LBE2:
  47. .LFE6:
  48.     .size   main, .-main
  49. .global servoRotate
  50.     .data
  51.     .type   servoRotate, @object
  52.     .size   servoRotate, 2
  53. servoRotate:
  54.     .word   500
  55.     .section    .debug_frame,"",@progbits
  56. .Lframe0:
  57.     .long   .LECIE0-.LSCIE0
  58. .LSCIE0:
  59.     .long   0xffffffff
  60.     .byte   0x1
  61.     .string ""
  62.     .uleb128 0x1
  63.     .sleb128 -1
  64.     .byte   0x24
  65.     .byte   0xc
  66.     .uleb128 0x20
  67.     .uleb128 0x0
  68.     .p2align    2
  69. .LECIE0:
  70. .LSFDE0:
  71.     .long   .LEFDE0-.LASFDE0
  72. .LASFDE0:
  73.     .long   .Lframe0
  74.     .long   .LFB6
  75.     .long   .LFE6-.LFB6
  76.     .p2align    2
  77. .LEFDE0:
  78.     .text
  79. .Letext0:
  80.     .section    .debug_info
  81.     .long   0xb0
  82.     .word   0x2
  83.     .long   .Ldebug_abbrev0
  84.     .byte   0x4
  85.     .uleb128 0x1
  86.     .long   .LASF7
  87.     .byte   0x4
  88.     .long   .LASF8
  89.     .long   .LASF9
  90.     .long   .Ltext0
  91.     .long   .Letext0
  92.     .long   .Ldebug_line0
  93.     .uleb128 0x2
  94.     .byte   0x1
  95.     .byte   0x6
  96.     .long   .LASF0
  97.     .uleb128 0x3
  98.     .long   .LASF10
  99.     .byte   0x2
  100.     .byte   0x7a
  101.     .long   0x37
  102.     .uleb128 0x2
  103.     .byte   0x1
  104.     .byte   0x8
  105.     .long   .LASF1
  106.     .uleb128 0x4
  107.     .byte   0x2
  108.     .byte   0x5
  109.     .string "int"
  110.     .uleb128 0x2
  111.     .byte   0x2
  112.     .byte   0x7
  113.     .long   .LASF2
  114.     .uleb128 0x2
  115.     .byte   0x4
  116.     .byte   0x5
  117.     .long   .LASF3
  118.     .uleb128 0x2
  119.     .byte   0x4
  120.     .byte   0x7
  121.     .long   .LASF4
  122.     .uleb128 0x2
  123.     .byte   0x8
  124.     .byte   0x5
  125.     .long   .LASF5
  126.     .uleb128 0x2
  127.     .byte   0x8
  128.     .byte   0x7
  129.     .long   .LASF6
  130.     .uleb128 0x5
  131.     .byte   0x1
  132.     .long   .LASF11
  133.     .byte   0x1
  134.     .byte   0xc
  135.     .long   0x3e
  136.     .long   .LFB6
  137.     .long   .LFE6
  138.     .byte   0x2
  139.     .byte   0x90
  140.     .uleb128 0x20
  141.     .long   0x96
  142.     .uleb128 0x6
  143.     .long   .LASF12
  144.     .byte   0x1
  145.     .byte   0xe
  146.     .long   0x96
  147.     .byte   0x6
  148.     .byte   0x6e
  149.     .byte   0x93
  150.     .uleb128 0x1
  151.     .byte   0x6f
  152.     .byte   0x93
  153.     .uleb128 0x1
  154.     .byte   0x0
  155.     .uleb128 0x7
  156.     .byte   0x2
  157.     .long   0x2c
  158.     .uleb128 0x8
  159.     .long   .LASF13
  160.     .byte   0x1
  161.     .byte   0xa
  162.     .long   0xae
  163.     .byte   0x1
  164.     .byte   0x5
  165.     .byte   0x3
  166.     .long   servoRotate
  167.     .uleb128 0x9
  168.     .long   0x3e
  169.     .byte   0x0
  170.     .section    .debug_abbrev
  171.     .uleb128 0x1
  172.     .uleb128 0x11
  173.     .byte   0x1
  174.     .uleb128 0x25
  175.     .uleb128 0xe
  176.     .uleb128 0x13
  177.     .uleb128 0xb
  178.     .uleb128 0x3
  179.     .uleb128 0xe
  180.     .uleb128 0x1b
  181.     .uleb128 0xe
  182.     .uleb128 0x11
  183.     .uleb128 0x1
  184.     .uleb128 0x12
  185.     .uleb128 0x1
  186.     .uleb128 0x10
  187.     .uleb128 0x6
  188.     .byte   0x0
  189.     .byte   0x0
  190.     .uleb128 0x2
  191.     .uleb128 0x24
  192.     .byte   0x0
  193.     .uleb128 0xb
  194.     .uleb128 0xb
  195.     .uleb128 0x3e
  196.     .uleb128 0xb
  197.     .uleb128 0x3
  198.     .uleb128 0xe
  199.     .byte   0x0
  200.     .byte   0x0
  201.     .uleb128 0x3
  202.     .uleb128 0x16
  203.     .byte   0x0
  204.     .uleb128 0x3
  205.     .uleb128 0xe
  206.     .uleb128 0x3a
  207.     .uleb128 0xb
  208.     .uleb128 0x3b
  209.     .uleb128 0xb
  210.     .uleb128 0x49
  211.     .uleb128 0x13
  212.     .byte   0x0
  213.     .byte   0x0
  214.     .uleb128 0x4
  215.     .uleb128 0x24
  216.     .byte   0x0
  217.     .uleb128 0xb
  218.     .uleb128 0xb
  219.     .uleb128 0x3e
  220.     .uleb128 0xb
  221.     .uleb128 0x3
  222.     .uleb128 0x8
  223.     .byte   0x0
  224.     .byte   0x0
  225.     .uleb128 0x5
  226.     .uleb128 0x2e
  227.     .byte   0x1
  228.     .uleb128 0x3f
  229.     .uleb128 0xc
  230.     .uleb128 0x3
  231.     .uleb128 0xe
  232.     .uleb128 0x3a
  233.     .uleb128 0xb
  234.     .uleb128 0x3b
  235.     .uleb128 0xb
  236.     .uleb128 0x49
  237.     .uleb128 0x13
  238.     .uleb128 0x11
  239.     .uleb128 0x1
  240.     .uleb128 0x12
  241.     .uleb128 0x1
  242.     .uleb128 0x40
  243.     .uleb128 0xa
  244.     .uleb128 0x1
  245.     .uleb128 0x13
  246.     .byte   0x0
  247.     .byte   0x0
  248.     .uleb128 0x6
  249.     .uleb128 0x34
  250.     .byte   0x0
  251.     .uleb128 0x3
  252.     .uleb128 0xe
  253.     .uleb128 0x3a
  254.     .uleb128 0xb
  255.     .uleb128 0x3b
  256.     .uleb128 0xb
  257.     .uleb128 0x49
  258.     .uleb128 0x13
  259.     .uleb128 0x2
  260.     .uleb128 0xa
  261.     .byte   0x0
  262.     .byte   0x0
  263.     .uleb128 0x7
  264.     .uleb128 0xf
  265.     .byte   0x0
  266.     .uleb128 0xb
  267.     .uleb128 0xb
  268.     .uleb128 0x49
  269.     .uleb128 0x13
  270.     .byte   0x0
  271.     .byte   0x0
  272.     .uleb128 0x8
  273.     .uleb128 0x34
  274.     .byte   0x0
  275.     .uleb128 0x3
  276.     .uleb128 0xe
  277.     .uleb128 0x3a
  278.     .uleb128 0xb
  279.     .uleb128 0x3b
  280.     .uleb128 0xb
  281.     .uleb128 0x49
  282.     .uleb128 0x13
  283.     .uleb128 0x3f
  284.     .uleb128 0xc
  285.     .uleb128 0x2
  286.     .uleb128 0xa
  287.     .byte   0x0
  288.     .byte   0x0
  289.     .uleb128 0x9
  290.     .uleb128 0x35
  291.     .byte   0x0
  292.     .uleb128 0x49
  293.     .uleb128 0x13
  294.     .byte   0x0
  295.     .byte   0x0
  296.     .byte   0x0
  297.     .section    .debug_pubnames,"",@progbits
  298.     .long   0x27
  299.     .word   0x2
  300.     .long   .Ldebug_info0
  301.     .long   0xb4
  302.     .long   0x68
  303.     .string "main"
  304.     .long   0x9c
  305.     .string "servoRotate"
  306.     .long   0x0
  307.     .section    .debug_aranges,"",@progbits
  308.     .long   0x1c
  309.     .word   0x2
  310.     .long   .Ldebug_info0
  311.     .byte   0x4
  312.     .byte   0x0
  313.     .word   0x0
  314.     .word   0x0
  315.     .long   .Ltext0
  316.     .long   .Letext0-.Ltext0
  317.     .long   0x0
  318.     .long   0x0
  319.     .section    .debug_line
  320.     .long   .LELT0-.LSLT0
  321. .LSLT0:
  322.     .word   0x2
  323.     .long   .LELTP0-.LASLTP0
  324. .LASLTP0:
  325.     .byte   0x1
  326.     .byte   0x1
  327.     .byte   0xf6
  328.     .byte   0xf5
  329.     .byte   0xa
  330.     .byte   0x0
  331.     .byte   0x1
  332.     .byte   0x1
  333.     .byte   0x1
  334.     .byte   0x1
  335.     .byte   0x0
  336.     .byte   0x0
  337.     .byte   0x0
  338.     .byte   0x1
  339.     .ascii  "c:/dev/avr/winavr-20100110/lib/gcc/../../avr/include"
  340.     .byte   0
  341.     .byte   0x0
  342.     .string "main.cpp"
  343.     .uleb128 0x0
  344.     .uleb128 0x0
  345.     .uleb128 0x0
  346.     .string "stdint.h"
  347.     .uleb128 0x1
  348.     .uleb128 0x0
  349.     .uleb128 0x0
  350.     .byte   0x0
  351. .LELTP0:
  352.     .byte   0x0
  353.     .uleb128 0x5
  354.     .byte   0x2
  355.     .long   .LM1
  356.     .byte   0x1f
  357.     .byte   0x0
  358.     .uleb128 0x5
  359.     .byte   0x2
  360.     .long   .LM2
  361.     .byte   0x19
  362.     .byte   0x0
  363.     .uleb128 0x5
  364.     .byte   0x2
  365.     .long   .LM3
  366.     .byte   0x13
  367.     .byte   0x0
  368.     .uleb128 0x5
  369.     .byte   0x2
  370.     .long   .LM4
  371.     .byte   0x15
  372.     .byte   0x0
  373.     .uleb128 0x5
  374.     .byte   0x2
  375.     .long   .Letext0
  376.     .byte   0x0
  377.     .uleb128 0x1
  378.     .byte   0x1
  379. .LELT0:
  380.     .section    .debug_str,"MS",@progbits,1
  381. .LASF2:
  382.     .string "unsigned int"
  383. .LASF10:
  384.     .string "uint8_t"
  385. .LASF4:
  386.     .string "long unsigned int"
  387. .LASF7:
  388.     .string "GNU C++ 4.3.3"
  389. .LASF0:
  390.     .string "signed char"
  391. .LASF13:
  392.     .string "servoRotate"
  393. .LASF8:
  394.     .string "main.cpp"
  395. .LASF6:
  396.     .string "long long unsigned int"
  397. .LASF1:
  398.     .string "unsigned char"
  399. .LASF3:
  400.     .string "long int"
  401. .LASF11:
  402.     .string "main"
  403. .LASF9:
  404.     .string "C:\\Dev\\_Projects\\RCCar\\RCCar.Avr"
  405. .LASF12:
  406.     .string "copyBuffer"
  407. .LASF5:
  408.     .string "long long int"
  409. .global __do_copy_data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement