fork download
  1. .686
  2. .model flat
  3.  
  4. public _main
  5. .data
  6. liczba db 11011011b, 00111100b, 11011100b, 00111000b
  7. wynik db 4 dup (?)
  8. .code
  9. _main:
  10. xor eax, eax
  11. xor edx, edx
  12. xor ecx, ecx
  13.  
  14. mov esi, offset liczba ;adres liczby
  15. mov edi, offset wynik ;adres wyniku
  16.  
  17. mov al, byte ptr [esi]
  18. shl al, 6
  19. shl ax, 2
  20. mov dl, byte ptr [esi+1]
  21. or eax, edx
  22. shl ax, 2
  23. xor edx, edx
  24. mov dl, byte ptr[esi+2]
  25. shl dl, 6
  26. shr dl, 6
  27. or eax, edx
  28. xor edx, edx
  29. mov dl, byte ptr [esi+3]
  30. shl eax, 8
  31. or eax, edx
  32. add eax, 10000h
  33.  
  34. xor edx, edx
  35. xor ebx, ebx
  36. mov bl, al
  37. shl bl, 2
  38. shr bl, 2
  39. mov cl, 10000000b
  40. or bl, cl
  41. mov [edi], bl
  42.  
  43. xor ebx, ebx
  44. xor ecx, ecx
  45. mov bx, ax
  46. shl bx, 4
  47. shr bx, 10
  48. mov cl, 10000000b
  49. or bl, cl
  50. mov [edi+1], bl
  51.  
  52. xor ebx, ebx
  53. xor ecx, ecx
  54. mov ebx, eax
  55. shl ebx, 14
  56. shr ebx, 26
  57. mov cl, 10000000b
  58. or bl, cl
  59. mov [edi+2], bl
  60.  
  61. xor ebx, ebx
  62. xor ecx, ecx
  63. mov ebx, eax
  64. shl ebx, 11
  65. shr ebx, 29
  66. mov cl, 11110000b
  67. or bl, cl
  68. mov [edi+3], bl
  69.  
  70. mov eax, edx
  71. END
  72.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:1: error: attempt to define a local label before any non-local labels
prog.asm:2: error: attempt to define a local label before any non-local labels
prog.asm:2: error: parser: instruction expected
prog.asm:4: error: parser: instruction expected
prog.asm:7: error: comma expected after operand 1
prog.asm:14: error: comma, colon, decorator or end of line expected after operand
prog.asm:15: error: comma, colon, decorator or end of line expected after operand
prog.asm:17: error: comma, colon, decorator or end of line expected after operand
prog.asm:20: error: comma, colon, decorator or end of line expected after operand
prog.asm:24: error: comma, colon, decorator or end of line expected after operand
prog.asm:29: error: comma, colon, decorator or end of line expected after operand
ld: cannot find prog.o: No such file or directory
stdout
Standard output is empty