Go to advanced search

by jahboater
Sun Jul 21, 2019 7:32 am
Forum: Bare metal, Assembly language
Topic: Using the NEON vmvn instruction
Replies: 2
Views: 87

Re: Using the NEON vmvn instruction

Thanks,

It doesn't like that either :(

Error: operand 1 must be an integer register -- `mvn q0,q0'

Edit:

Looks like the intrinsic vmvnq_u8() emits NOT v0.16b,v0.16b which works, but disagrees with the ARMv8_ARM, or at least my copy of it. Without the V prefix as you suggested.
by jahboater
Sat Jul 20, 2019 10:21 pm
Forum: Bare metal, Assembly language
Topic: Using the NEON vmvn instruction
Replies: 2
Views: 87

Using the NEON vmvn instruction

I want to invert 256 bits in memory, so I tried:-

Code: Select all

ldp  q0,q1,[x0]
vmvn q0,q0
vmvn q1,q1
stp  q0,q1,[x0]
But the assembler is rejecting it (called inline from C).

Error: unknown mnemonic `vmvn' -- `vmvn q0,q0'

Yet its in the ARMv8_ARM.

Is this a bug or have I missed something obvious?
by jahboater
Sat Jul 20, 2019 7:12 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1271
Views: 41760

Re: ScriptBasic

Wow, what? I once designed a board with an 8086 and 8087 on it. Had a whole tube of 8087s. No idea what happened to them. There was also space for an 8089 IO coprocessor. That is so rare we never actually got hold of one when they were current! People made ear-rings out of 186's (those with a purpl...
by jahboater
Sat Jul 20, 2019 5:03 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 210
Views: 4945

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Sorry, I took your "yes" above to be an affirmative answer to my question "...have you actually seen the source code of the Windows kernel?" I presume now that it was not. Correct, sorry. Used to have the UNIX source code back in the "version 7" days (educational license, Amdahl UTS), and the IBM V...
by jahboater
Sat Jul 20, 2019 2:08 pm
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 476

Re: Raspberry pi for coding on machine level?

I am impressed at the interest. Not many want to use machine language anymore. There are still a lot of Assembly Language coders out there, though very few Machine Language programmers. I "think" the OP meant assembler. I have programmed Z80's over the years in hex, and wouldn't wish it on my worst...
by jahboater
Sat Jul 20, 2019 1:41 pm
Forum: RISCOS
Topic: Your Pi Zero config
Replies: 6
Views: 161

Re: Your Pi Zero config

Deleted
by jahboater
Sat Jul 20, 2019 1:29 pm
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 476

Re: Raspberry pi for coding on machine level?

If you want to learn Assembler to use on one particular system, you may want to concentrate on that. x86_64 is CISC, ARM and especially A64 (the Pi in 64-bit mode) are RISC. Quite different to learn. But if you like assembler, and are interested in it, then it may be worth learning both. Its all go...
by jahboater
Sat Jul 20, 2019 11:10 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 456
Views: 17957

Re: Introduction to BBC BASIC

ejolson wrote:
Sat Jul 20, 2019 11:04 am
The obvious drawback is not being able to store the NULL character
"abc\0def" is valid of course - if you know what you are doing and have some strange reason for it!

Its often handy to be be able to quickly truncate a string with: str[n] = '\0';
by jahboater
Sat Jul 20, 2019 11:01 am
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 210
Views: 4945

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Heater wrote:
Sat Jul 20, 2019 10:19 am
Wow, amazing, how did that happen?
How did what happen?

If you are talking about relative dates, then things like OS's and surrounding software evolve over time.
by jahboater
Sat Jul 20, 2019 10:21 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 456
Views: 17957

Re: Introduction to BBC BASIC

Given the tiny amounts of memory the machines C was developed on, and the desire for strings of any length it makes sense to do what C did, don't store the length and put a null on the end. Which takes one byte regardless of the length. Also the strings value in an expression is the address of the ...
by jahboater
Sat Jul 20, 2019 9:58 am
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 210
Views: 4945

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Heater wrote:
Sat Jul 20, 2019 9:50 am
By the way, have you actually seen the source code of the Windows kernel? I suspect it's actually C. Or was when it was created. C++ was not a thing until 1998.
Yes. I believe Windows is 98% C, with a little C++ and a tiny amount of C#
by jahboater
Sat Jul 20, 2019 9:00 am
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 476

Re: Raspberry pi for coding on machine level?

As a side note, Would you recommend learning to program on a Raspberry Pi, or on an old Windows laptop? Are there many differences between coding on Python, or C++ in Linux (on a Pi) vs coding on an old Windows laptop? My personal opinion is that its much easier on the Pi (compared to Windows). Lin...
by jahboater
Sat Jul 20, 2019 8:48 am
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 476

Re: Raspberry pi for coding on machine level?

I have some debugging tips for you: Try also "layout reg" (or just "la r" for short). This splits the screen into three windows. The top window contains the registers and their values with the last changed register highlighted. The middle window contains the assembler with the next instruction high...
by jahboater
Sat Jul 20, 2019 8:30 am
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 476

Re: Raspberry pi for coding on machine level?

Thanks for the quick and informative response! Is there a sort of community where examples like these can be found, and where people can share their experiences (more for beginners; and specific to the Pi)? This forum is a great place for help and chat about Pi specific issues. Beginners are welcom...
by jahboater
Sat Jul 20, 2019 8:12 am
Forum: General discussion
Topic: Raspberry pi for coding on machine level?
Replies: 18
Views: 476

Re: Raspberry pi for coding on machine level?

Assuming by "machine code level" you mean assembly language, then yes the Pi is great for that. The official OS called Raspbian comes with an excellent assembler already installed and ready to use. https://www.raspberrypi.org/downloads/raspbian/ Also included is a C/C++ compiler called GCC. You may ...
by jahboater
Fri Jul 19, 2019 11:51 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 210
Views: 4945

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Then allow for extra optimizations to be applied only to portions of the code that it makes good since to so do with, as specified by the programmer. GCC can do that now. The programmer may specify that a function is either "hot" or "cold". The branch prediction stuff for cold is interesting. cold ...
by jahboater
Fri Jul 19, 2019 9:12 am
Forum: C/C++
Topic: sched: RT throttling activated
Replies: 3
Views: 74

Re: sched: RT throttling activated

Then there is the "vcgencmd" that will show if thermal throttling has happened: $ /opt/vc/bin/vcgencmd get_throttled It will also show if there have been low voltage problems too. There is a bit saying its currently throttled and another sticky bit saying its throttled in the past (since the last b...
by jahboater
Fri Jul 19, 2019 8:33 am
Forum: General discussion
Topic: Best OS for raspberry pi as a everyday desktop?
Replies: 19
Views: 746

Re: Best OS for raspberry pi as a everyday desktop?

Try also

apt-cache search xxxx
by jahboater
Thu Jul 18, 2019 2:40 pm
Forum: General discussion
Topic: Is it possible to survive only on raspberry pi 4b4?
Replies: 15
Views: 530

Re: Is it possible to survive only on raspberry pi 4b4?

My cat sleeps on top of my powerful Intel PC. She likes warmth.

Sadly the Raspberry Pi is too small.
by jahboater
Thu Jul 18, 2019 1:53 pm
Forum: Raspbian
Topic: Shut down multiple raspberry pis via SSH at once
Replies: 6
Views: 142

Re: Shut down multiple raspberry pis via SSH at once

You will need password-less authentication.

ssh-keygen -t rsa
ssh-copy-id [email protected]

Do it once for each Pi, then scp and ssh will not require a password (which is obviously bad news in a batch file!)
by jahboater
Thu Jul 18, 2019 1:46 pm
Forum: Raspbian
Topic: Shut down multiple raspberry pis via SSH at once
Replies: 6
Views: 142

Re: Shut down multiple raspberry pis via SSH at once

Yes, that's what I would do:-

ssh [email protected] 'sudo poweroff'

multiple times in a batch file.
by jahboater
Thu Jul 18, 2019 1:07 pm
Forum: General discussion
Topic: Download Problems
Replies: 6
Views: 190

Re: Download Problems

Milliways wrote:
Thu Jul 18, 2019 1:09 am
Since the Buster release it has proved near impossible to download.
I never had the slightest problem, even on day one.
Downloaded Lite several times and "Full with recommended software" once.
by jahboater
Thu Jul 18, 2019 12:58 pm
Forum: General discussion
Topic: 32bits Linux OS on Raspberry Pi 3 B+
Replies: 9
Views: 263

Re: 32bits Linux OS on Raspberry Pi 3 B+

Thanks for your fast reply, are you sure that its 32bits & I can run my custom apps which I am able to do in CentOS 32bits If you spend some time on this forum, you will see many posts about Raspbian being 32-bits when the modern Pi hardware is 64-bit capable. (because the RPF want to support all P...
by jahboater
Thu Jul 18, 2019 12:40 pm
Forum: Off topic discussion
Topic: 1TB microSD Card is real!
Replies: 16
Views: 513

Re: 1TB microSD Card is real!

hippy wrote:
Thu Jul 18, 2019 12:25 pm
It is mostly media which requires large amounts of storage.
Yes, I have around 240GB of music (mostly flac).
Video takes much more.
by jahboater
Thu Jul 18, 2019 12:23 pm
Forum: General discussion
Topic: 32bits Linux OS on Raspberry Pi 3 B+
Replies: 9
Views: 263

Re: 32bits Linux OS on Raspberry Pi 3 B+

Hello, To All, I need help from expert, I want to install 32bits Linux OS on Raspberry Pi 3 B+ , Actually I have some customize apps which is working only in 32bits Linux OS like CentOS 6.10 32bits , so I want to use those customize apps also in Raspberry Pi 3 B+ & 4 as well, Please if there any wa...

Go to advanced search