Go to advanced search

by Gabgorozco
Mon Dec 10, 2018 2:57 pm
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

Re: HELP! ARM ASSEMBLY PROJECT

I tried what you suggested. But for some reason the button doesn’t seem to respond. That’s why I asked again! But thanks for your help! What exactly did you try (description required with code it should probably be less than 10 lines of code) and what did it do (description required)? We can only h...
by Gabgorozco
Mon Dec 10, 2018 9:10 am
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

Re: HELP! ARM ASSEMBLY PROJECT

I am not sure how anyone can help more as you do not appear to have tried anything suggested. 1.) You are clearly working in linux with wiringpi library so for many of us here not something we generally play with as we would do it raw baremetal ... no linux no wiringpi. Given your current problem t...
by Gabgorozco
Mon Dec 10, 2018 5:25 am
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

Re: HELP! ARM ASSEMBLY PROJECT

.
by Gabgorozco
Mon Dec 10, 2018 2:36 am
Forum: Bare metal, Assembly language
Topic: Urgent help thanks!
Replies: 1
Views: 822

Urgent help thanks!

Question: I am coding up the ladder game on my Raspberry Pi 3. This program is in assembly language. I have... I am coding up the ladder game on my Raspberry Pi 3. This program is in assembly language. I have a breadboard hooked up to the PI There are a set of 6 LEDS and one button. The LEDS will fl...
by Gabgorozco
Mon Dec 10, 2018 1:50 am
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

Re: HELP! ARM ASSEMBLY PROJECT

I just need a piece of code that I can add to the program to make it work how it should! I’m struggling a bit!
by Gabgorozco
Sat Dec 08, 2018 8:02 pm
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

Re: HELP! ARM ASSEMBLY PROJECT

As suggested do a search for C code .. and compile it to verbose assembler so you can work with it If you take a C polled version it does something like this // scanButton .. wait for the button to be let-go void scanButton (int button) { if (digitalRead (button) == HIGH) // Low is pushed return ; ...
by Gabgorozco
Thu Dec 06, 2018 3:41 pm
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

Re: HELP! ARM ASSEMBLY PROJECT

You are using wiring pi library (all be it calling it from assembly) and there are already piles of examples out there ... Do a search "wiringpi button example" it will give you a pile of ideas and code. There is no right and wrong way to do it, you basically just read a GPIO port that is setup wit...
by Gabgorozco
Thu Dec 06, 2018 5:43 am
Forum: Bare metal, Assembly language
Topic: HELP! ARM ASSEMBLY PROJECT
Replies: 16
Views: 2192

HELP! ARM ASSEMBLY PROJECT

Question: I am coding up the ladder game on my Raspberry Pi 3. This program is in assembly language. I have... I am coding up the ladder game on my Raspberry Pi 3. This program is in assembly language. I have a breadboard hooked up to the PI There are a set of 6 LEDS and one button. The LEDS will fl...
by Gabgorozco
Wed Nov 21, 2018 5:13 am
Forum: Bare metal, Assembly language
Topic: Help with this assembly code
Replies: 26
Views: 4941

Re: Help with this assembly code

ldr r0, =response /*r0 contains pointer to response message*/ mov r1, r4 /*r1 contains pointer to value_read1*/ <<< check mov goes right to left ldr r1, [r1] /*r1 contains value dereferenced from r1 in previous instruction*/ mov r2, r5 <<< check mov goes right to left ldr r2, [r2] mov r3, r6 <<<< c...
by Gabgorozco
Wed Nov 21, 2018 4:22 am
Forum: Bare metal, Assembly language
Topic: Help with this assembly code
Replies: 26
Views: 4941

Re: Help with this assembly code

How can we help you haven't told us what it does wrong. :-) It looks like it assumes it has access to the standard C libraries in some manner, I assume a linker command about which you said nothing. I can see it is supposed to print a display message, take 3 numbers from a user and add them up and ...
by Gabgorozco
Wed Nov 21, 2018 3:20 am
Forum: Bare metal, Assembly language
Topic: Help with this assembly code
Replies: 26
Views: 4941

Help with this assembly code

Hello can anyone help me with my code here. I’m not sure what I’m doing wrong! Thanks! .section .data /*Prompt message*/ prompt: .asciz "Enter three integers (separated by a space): " /*Response message*/ response: .asciz "You entered %d, %d, %d, and the sum is %d\n" /*Format pattern for scanf*/ pat...
by Gabgorozco
Fri Oct 12, 2018 7:25 pm
Forum: General discussion
Topic: can I hook up my pi to two Different monitors?
Replies: 7
Views: 528

Re: can I hook up my pi to two Different monitors?

What do you mean by a reboot? Really... ? Well, something like this: To 'boot' (probably a contraction of 'bootstrap') a computer system means, roughly "power it up and get it running". So if it is already running but you need it to reset something (like a video output configuration) that is normal...
by Gabgorozco
Fri Oct 12, 2018 4:16 pm
Forum: General discussion
Topic: can I hook up my pi to two Different monitors?
Replies: 7
Views: 528

Re: New to pi

Imperf3kt wrote:
Fri Oct 12, 2018 7:30 am
If your school has the power and internet always on, you may even be able to leave the Pi at school and SSH into it.

But generally, yes, the Pi will detect the monitor plugged into it and adjust appropriately, but you need to do a reboot.
Thanks! What do you mean by a reboot?
by Gabgorozco
Wed Oct 10, 2018 6:14 pm
Forum: General discussion
Topic: can I hook up my pi to two Different monitors?
Replies: 7
Views: 528

can I hook up my pi to two Different monitors?

Hello can any of you help me with a question I have? So I recently have bought a pi 3 for class and I will utilize it in the lab at school for assignments, but somtimes I might need to take it home to finish and I was wondering if I can hook up my pi to two Different monitors, meaning the one at the...

Go to advanced search