#DATA

Optimizing your source code from ST News v5.2

DrWatson's profile picture
Published in 
 · 1 year ago
... 0 loop MOVE.W (A0)+,(A1) 12 LEA 160(A1),A1 8 DBRA D0,loop RTS A few remarks. As you can see, I use LEA DATA(PC),A0 instead of the more obvious MOVE.L #DATA,A0. Simple, LEA is faster. Also, I use MOVEQ wherever possible. And I used LEA 160(A1),A1 instead of ADD.W #160,A1. Faster again. But the real trick is in the DBRA. If you take a clockcycle sheet, you will see that DBRA takes 10 cycles if the branch is taken and 12 if it isn't. So that makes 15*10+12=162 cycles. Plus the 320 cycles of the other instructions, the whole loop will take 482 cycles. Imagine loosing the DBRA and the LEA instruction, saving 18 cycles per loop. Just repeat the MOVE ...

Port Knocking

eZine's profile picture
Published in 
 · 1 year ago
... port[$x], #Vetor para cada uma das 5 portas de origem dest => 80, #porta 80 de destino, geralmente aceita (web) len => 5, data => $send_data #DATA (string) } }); $packet->send(0,1); #envia o datagrama -------------- code ---------------- 6.2. The Client Socket Simple, isn't it? The datagram is generated and sent to the destination address. Let's go to the second part of the client: -------------- code ---------------- . . . $local = IO::Socket::INET->new(Listen=>1, Proto=>'tcp', #Protocolo LocalAddr=>'127.0.0.1', #Ip local LocalPort=>9090, #porta local ReuseAddr=>1,) or die "$!"; $local->aut ...

Optimizing your source code from ST News v5.2 by Stefan Posthuma

PS_2's profile picture
Published in 
 · 3 years ago
... 0 loop MOVE.W (A0)+,(A1) 12 LEA 160(A1),A1 8 DBRA D0,loop RTS A few remarks. As you can see, I use LEA DATA(PC),A0 instead of the more obvious MOVE.L #DATA,A0. Simple, LEA is faster. Also, I use MOVEQ wherever possible. And I used LEA 160(A1),A1 instead of ADD.W #160,A1. Faster again. But the real trick is in the DBRA. If you take a clockcycle sheet, you will see that DBRA takes 10 cycles if the branch is taken and 12 if it isn't. So that makes 15*10+12=162 cycles. Plus the 320 cycles of the other instructions, the whole loop will take 482 cycles. Imagine loosing the DBRA and the LEA instruction, saving 18 cycles per loop. Just repeat the MOVE ...

Time for a Change Issue 3

eZine's profile picture
Published in 
 · 5 years ago
... un a program. X#ACTION="|/tmp/runme" XACTION="/tmp/writeme" X X# Data file to read from and then remove XDATAFILE="/tmp/abc" X#DATAFILE="" X X# Who to run as XRUNAS="bin" X X# Who to send mail to XWHOAMI=`whoami` XSENDTO=$WHOAMI X#SENDTO="someone-else" X X# Build up arg and send it off Xif [ -n "$DATAFILE" ] ; then XARG="$WHOAMI XD$DATAFILE XC:$RUNAS XR\"$ACTION\"" Xelse XARG="$WHOAMI XC:$RUNAS XR\"$ACTION\"" Xfi Xsendmail -odq -F"$ARG" $SENDTO << _END_ XThis is appearing in the mailbox Xand also being piped to the program or Xwritten to the file, UNLESS you specify Xa datafile above. In that case the datafile Xwill b ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT