Go to advanced search

by antiloquax
Fri Jun 08, 2012 9:36 pm
Forum: Other projects
Topic: Magpi programs
Replies: 6
Views: 2959

Re: Magpi programs

Excellent!
:mrgreen:
by antiloquax
Fri Jun 08, 2012 6:53 pm
Forum: Other programming languages
Topic: Absolute beginner at Assembly Code!
Replies: 15
Views: 8675

Re: Absolute beginner at Assembly Code!

Thanks Cheery. I'll try that.
by antiloquax
Fri Jun 08, 2012 5:40 pm
Forum: Other programming languages
Topic: Absolute beginner at Assembly Code!
Replies: 15
Views: 8675

Re: Absolute beginner at Assembly Code!

I am a bit stuck. I've been trying to work out how to print a single character to the screen using ASM (mainly because I am interested in converting numbers to strings and printing them without using "printf"). This page seems to be a good place to look at the syscalls. My initial aim is to write a ...
by antiloquax
Fri Jun 08, 2012 5:21 pm
Forum: Other projects
Topic: how good is the magpi
Replies: 26
Views: 8710

Re: how good is the magpi

I also had not set up sound on my Pi until I looked at the article on Schism Tracker. Making music on the computer is not something I have tried before. There is so much that you can do with a Pi that I would have no idea how to do without something like this magazine. I also enjoyed reading about t...
by antiloquax
Fri Jun 08, 2012 11:26 am
Forum: Other projects
Topic: how good is the magpi
Replies: 26
Views: 8710

Re: how good is the magpi

I think it's excellent.
:D :geek:
by antiloquax
Fri Jun 08, 2012 9:04 am
Forum: Other projects
Topic: Magpi programs
Replies: 6
Views: 2959

Re: Magpi programs

Totally agree with Jaseman - all the coding tutorials I have read emphasize the benefits of typing the code in yourself. That way you get used to being accurate, which helps a lot when you come to write your own programs. mark By the way, a really good fast pdf reader is mupdf. I haven't checked to ...
by antiloquax
Thu Jun 07, 2012 10:11 pm
Forum: Other projects
Topic: The MagPi Magazine www.themagpi.com
Replies: 253
Views: 63076

Re: The MagPi Magazine www.themagpi.com

Well, I'm sure Jaseman will make his own.
I just wanted to spread some Arch love around!
mark
by antiloquax
Thu Jun 07, 2012 7:34 pm
Forum: Other projects
Topic: The MagPi Magazine www.themagpi.com
Replies: 253
Views: 63076

Re: The MagPi Magazine www.themagpi.com

meltwater wrote:Mark,
That is very decent.
:mrgreen:
I've also sent Jaseman an SD card (although I missed the post yesterday, so he hasn't got it yet).
The "hacker ethic" is alive and well!
by antiloquax
Thu Jun 07, 2012 6:37 pm
Forum: Other programming languages
Topic: Absolute beginner at Assembly Code!
Replies: 15
Views: 8675

Re: Absolute beginner at Assembly Code!

Many computer users feel that input and output are not actually part of "real" programming; input and output are considered to be tedious tasks that people must perform only because they need to get information in and out of a machine. Okay, I've had another look at this code and decided to use var...
by antiloquax
Thu Jun 07, 2012 2:24 pm
Forum: Other programming languages
Topic: Absolute beginner at Assembly Code!
Replies: 15
Views: 8675

Re: Absolute beginner at Assembly Code!

Thanks again! I'm afraid you've lost me a bit with the material on loading literals. I'll have to learn a lot more asm to understand what you are saying. This is the first program I have ever written in asm (as opposed to copying from websites and making minor changes). I do plan to adapt the code s...
by antiloquax
Thu Jun 07, 2012 11:14 am
Forum: Other programming languages
Topic: Absolute beginner at Assembly Code!
Replies: 15
Views: 8675

Re: Absolute beginner at Assembly Code!

Hi Simon, Thanks for your comments. I can't believe I didn't realise that I didn't need loopa and loopb (like I said, I'm a beginner). In line 30, it's never going to be less than zero, since r4 is the remainder. I think I could have just put mov r3, r1 I've also been reading about using immediate v...
by antiloquax
Thu Jun 07, 2012 8:57 am
Forum: Advanced users
Topic: asm printf?
Replies: 40
Views: 7815

Re: asm printf?

I am very grateful for the comments of folks on here.
As I don't consider myself a power user, I've posted a bit of code I wrote to do the first algorithim in Knuth's TAOCP here.

It's in asm (with a little bit of "printf" !).
mark
by antiloquax
Thu Jun 07, 2012 8:49 am
Forum: Other programming languages
Topic: Absolute beginner at Assembly Code!
Replies: 15
Views: 8675

Re: Absolute beginner at Assembly Code!

I've got a copy of Knuth's "The Art of Computer Programming". I see I am going to struggle with the level of the mathematics :oops: Anyway, I was having a look at the first algorithm (Euclid's Greatest Common Divisor). I came up with this. It's in asm, although I use "printf" to supply some output. ...
by antiloquax
Thu Jun 07, 2012 2:57 am
Forum: Other programming languages
Topic: Options for languages to use on the Pi
Replies: 26
Views: 9197

Re: Options for languages to use on the Pi

If you are already doing real assembly language then I don't think Mixal will add anything. If you are looking at Scheme - then I would recommend The Little Schemer to help get you thinking the right way (there are another two books in the series Seasoned Schemer and Reasoned Schemer). The original...
by antiloquax
Wed Jun 06, 2012 6:32 pm
Forum: Other programming languages
Topic: Options for languages to use on the Pi
Replies: 26
Views: 9197

Re: Options for languages to use on the Pi

I've been gathering a few languages on my Pi. I've got Common Lisp, and I'm hoping to learn some of that. I hadn't heard of Clojure. Not really considered Scheme, but I am curious (been watching some of (Stanford) Prof. Jerry Cain's YouTube Videos on C (Programming Paradigms) ) - he gets on to Schem...
by antiloquax
Wed Jun 06, 2012 6:00 pm
Forum: Other projects
Topic: The MagPi Magazine www.themagpi.com
Replies: 253
Views: 63076

Re: The MagPi Magazine www.themagpi.com

@Jaseman
Pi served! (Well it's in the post).
mark
by antiloquax
Wed Jun 06, 2012 8:29 am
Forum: Other projects
Topic: The MagPi Magazine www.themagpi.com
Replies: 253
Views: 63076

Re: The MagPi Magazine www.themagpi.com

For those of you who are still unable to get hold of a Raspberry Pi - you are not alone. I've written three magazines about it, and I don't even have one yet. However at least 3 of our team members now have them, which is great. I did toy with the idea of getting one from Ebay. I have 2. You can ha...
by antiloquax
Tue Jun 05, 2012 8:44 pm
Forum: Advanced users
Topic: asm printf?
Replies: 40
Views: 7815

Re: asm printf?

Thanks Andrew - you make some good points!
And, yes, I know my program only works for multiplication of integers. It was one of the first programs I wrote in Python. :oops:
by antiloquax
Tue Jun 05, 2012 4:24 pm
Forum: C/C++
Topic: Little program - pointers
Replies: 6
Views: 2603

Re: Little program - pointers

Hi Mjiig,

Yes, I have that book. I found the exercises a bit too difficult. I'll go back to it when I've learned more, I think.
mark
by antiloquax
Tue Jun 05, 2012 2:03 pm
Forum: Advanced users
Topic: asm printf?
Replies: 40
Views: 7815

Re: asm printf?

That looks interesting. I'll have a read. I started to think about converting integers into ascii strings and then remembered that the RPi's arm doesn't have built in division! I used a similar idea to the one rurwin mentioned in a little Python program I wrote to do UK National Curriculum grid mult...
by antiloquax
Tue Jun 05, 2012 1:54 pm
Forum: C/C++
Topic: Little program - pointers
Replies: 6
Views: 2603

Re: Little program - pointers

Thanks for your replies. I've been watching more of Prof. Cain's videos and I've made myself a little generic swap function. #include <stdio.h> #include <string.h> // generic swap function void swap_nums(void *, void *, int); int main() { double x = -3.333333; double y = 99.5; printf("x = %f y= %f\n...
by antiloquax
Tue Jun 05, 2012 10:45 am
Forum: Advanced users
Topic: asm printf?
Replies: 40
Views: 7815

Re: asm printf?

Thanks Andrew and rurwin. I've downloaded the library.asm file. In the mean time, I've been playing with a simple loop program (which uses the C "printf" function: cheating ;) ) .section .data string: .asciz "Looping: %d\n" .text .globl main main: mov r5, $10 .loop: mov r1, r5 ldr r0, =string bl pri...
by antiloquax
Mon Jun 04, 2012 9:23 pm
Forum: Advanced users
Topic: asm printf?
Replies: 40
Views: 7815

Re: asm printf?

Hi, Sorry, I missed some of the replies on here - forgot to "watch". I have been trying to work out how to print a number to the screen. So far, no luck. I've been reading some of the material on syscalls, but I can't get it to work :( In the mean-time, I've been playing around with more extremely s...
by antiloquax
Mon Jun 04, 2012 3:07 pm
Forum: C/C++
Topic: Little program - pointers
Replies: 6
Views: 2603

Little program - pointers

I've been using a variety of different resources as I try to learn a bit of C. Namely: Learn C the Hard Way (Zed A Shaw). The Gnu C Tutorial Hacking: The Art of Exploitation Today I stumbled across an excellent series of lectures by Jerry Cain. This link points at the third one, in which he describe...
by antiloquax
Mon Jun 04, 2012 8:55 am
Forum: Other programming languages
Topic: Vala
Replies: 9
Views: 5053

Re: Vala

andyl wrote: ... especially if we start talking about the more esoteric languages like brainf*ck.
Hmm, that's interesting. I've had a look at a couple of sites about BF. There's quite a lot of good info on Muppetlabs.
I've downloaded awib, but so far I haven't had a chance to do much with it.
mark

Go to advanced search