Term Dog wrote on Oct 29
th, 2018 at 9:24pm:
Cu Chulainn wrote on Oct 29
th, 2018 at 9:06pm:
Term Dog wrote on Oct 29
th, 2018 at 8:44pm:
Cu Chulainn wrote on Oct 29
th, 2018 at 8:29pm:
If any of you are interested in why I made the SHL comment above it's always been a fast way to multiply in Assembler, many times it's faster than using MUL(multiply) and you use it with ADD or SUB to get the result you want with less processor cycles. SHR divides by half.
When is it useful to go up or down in such big specific chunks.
Also do you mean assembly language? Yes.
You can go up or down in big chunks then apply ADD/SUB etc which altogether are less expensive than a multiply. MUL is an expensive operation in assembler. DIV is the same, you can SHR. Maybe processors have overcome that these days with microcode to do it for you but to SHL or SHR is one cycle no matter how far you shift.
I was expecting some political comment on the shift left or right to be honest. I guess not all bait is taken.
I've started playing with arduino for hobby, I'm guessing assembly language is the next level.
Know any links how to get started using assembly language, I'm new to it all.
Learning python but a programmer told should have learned some more useful like C++ or html. So now thinking of starting again.
Depends what you want to do. Languages are written for a reason, they make it easier to talk to/make the processor do what you want. For all intents and purposes a C(??) compiler should do the optimisations for you. All languages have their pros/cons. Learning any language will help you with others. Decide what you want to do, pick the thing that will suit it best, do you want it to integrate with HTML? Stand alone? Have it type checked? Learning assembler these days is probably not worth the effort. My programming days were last century/early this one. One of the reasons assembler was important to me because my hobby was cracking things and I had to read the disassembled code to do that.
How about this, QEMM, a DOS days memory manager encrypted it's registration info so it could not be read in the files. I ran their files through the simplest of encryption/unencryption methods XOR and cracked it, I couldn't believe my luck. I can take photos of my old paper notebook to show. I used to crack games and software, especially BBS software back in the day. I was the first to crack the INJOY PPP dialer for OS/2. I have a book filled with shyte that is useless now beyond showing what I did.
Pick what suits best, does what you want the quickest with the least work. If it's to be deployed online make sure it's the most secure/safe.
Edit: BJ, the guy who wrote Injoy for OS/2 and I had a convo one night on the OS/2 IRC channel. I told him I would refrain from cracking his code if he gave me a copy, he told me "no-one will crack Injoy", two days later I released registrations codes for the level of registration "Friend of BJ".