Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

Author: margusja

Hea on teada, et ma kasutan head seadmesertifikaatide allkirjastajat

Posted on March 8, 2010 by margusja

[kml_flashembed movie="http://www.youtube.com/v/OKQEpzJTUio" width="425" height="344" allowfullscreen="true" fvars="fs=1" /]

Posted in FunLeave a comment

Lugu mis külmavärinad tekitab

Posted on March 8, 2010 - March 8, 2010 by margusja

Tervitus naisperele 🙂

[kml_flashembed movie="http://www.youtube.com/v/b2Lx5GJgMFg" width="425" height="344" allowfullscreen="true" fvars="fs=1" /]

Posted in FunLeave a comment

Nüüd on lennukitööstuse ime ka tavainimesele kättesaadav

Posted on March 1, 2010 by margusja

Posted in FunLeave a comment

Pure assembler machine code versus using libc

Posted on February 22, 2010 - February 23, 2010 by margusja

Võtame ühe lihtsa programmijupi mis kuvab teie protsessori nimi.

[margusja@hacking asm]$ ./cpuid2
The processor Vendor ID is 'GenuineIntel'

Lähtekood juhul kui kasutame ainult “system call” meetodeid

#cpuid.s Sample program to extract the processor Vendor ID.section .dataoutput:

.ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n"

.section .text

.globl _start

_start:

movl $0, %eax

cpuid

movl $output, %edi

movl %ebx, 28(%edi)

movl %edx, 32(%edi)

movl %ecx, 36(%edi)

# Display

movl $4, %eax # sys_write

movl $1, %ebx # file descriptor to write. 1 is stdout

movl $output, %ecx # start of the display string

movl $42, %edx # lenght of the display string

int $0x80

# Exit

movl $1, %eax # sys_exit

movl $0, %ebx # exit status

Lähtekood libc kasutamisest

#cpuid2.s View the CPUID Vendor ID string using C library calls.section .dataoutput:

.asciz "The processor Vendor ID is '%s'\n"

.section .bss

.lcomm buffer, 12

.section .text

.globl _start

_start:

movl $0, %eax

cpuid

movl $buffer, %edi

movl %ebx, (%edi)

movl %edx, 4(%edi)

movl %ecx, 8(%edi)

# Prepare printf

pushl $buffer

pushl $output

call printf # print $output using libc printf

addl $8, %esp # Move stack pointer pack

pushl $0 # Exit status

call exit # Exite the program using libc exit

Palju lihtsam. Paadunud assembleri mehed võivad küll nina kirtsutada kuid minu arust annab selline miksimine hea praktika ka C ja C++ osas ning tekitab huvi ka nende keelte vastu.

Posted in AssemblerLeave a comment

Talv maal

Posted on February 21, 2010 - February 21, 2010 by margusja

Vaatan hommiku, et kass piilub midagi aknast, endal saba käib nagu ei oleks millegiga rahul.

Posted in FunLeave a comment

CPUID

Posted on February 18, 2010 - February 18, 2010 by margusja

Lihtne assembleris kirjutatud programm mis kuvab masina CPU tootja.
Programm on kompileeritud hetkel 2.6.27.5-117.fc10.i686 jaoks.
cpuid

Source


#cpuid.s Sample program to extract the processor Vendor ID.section .dataoutput:
.ascii "The processor Vendor ID is 'xxxxxxxxxxxx'\n".section .text.globl _start
_start:movl $0, %eax
cpuid

movl $output, %edi
movl %ebx, 28(%edi)
movl %edx, 32(%edi)
movl %ecx, 36(%edi)

# Display
movl $4, %eax # sys_write
movl $1, %ebx # file descriptor to write. 1 is stdout
movl $output, %ecx # start of the display string
movl $42, %edx # lenght of the display string
int $0x80

# Exit
movl $1, %eax # sys_exit
movl $0, %ebx # exit status
int $0x80

Posted in AssemblerLeave a comment

skype-sucks-over-irc

Posted on February 17, 2010 by margusja

Miks mu arvuti täna nii aeglane on? Vastuse leidsin allolevast dialoogist

Posted in FunLeave a comment

Ega langevarjur(mees) ei meeldi meestele :)

Posted on February 12, 2010 - June 3, 2011 by margusja

Omal ajal Dillinger juba meeldis soome fotografile(mees)

Ja mida aeg edasi seda hullemaks

Posted in Fun, LangevarjundusLeave a comment

Nii, stabikas läinud!

Posted on February 11, 2010 by margusja

Kunagi, üks kuulus isik ütles sõnad “Stabilisaator on stabiliseerimiseks”

Posted in Fun, LinuxLeave a comment

Sai alustatud peaaegu skydive hooaega 2010

Posted on February 8, 2010 - June 3, 2011 by margusja

Saime varjud selga. Saime lennukisse. Saime päris huvitava takeoff-i. Ümmargused said ka välja. 500m peal pilved vastas ja alla tagasi. Samas ega hooaja alguses ei saagi üle pingutada. 

Posted in LangevarjundusLeave a comment

Posts navigation

Older posts
Newer posts

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.