flat assembler
Message board for the users of flat assembler.

Index > Heap > Should we learn ARM assembly?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
uart777



Joined: 17 Jan 2012
Posts: 369
uart777
Picnic: I think you've got what it takes Smile

malpolud: Nevermind him. He doesn't know what the Hell he's talking about.

I love posting ARM bare-metal code because it causes the small "programmers" like John, Guru and DOS386 to tremble with fear Wink
Post 20 Sep 2013, 10:46
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
Hi uart,

I'd like to learn bare metal ARM assembly programming
(I have a Raspberry Pi).

Unfortunately, I still couldn't access my Pi from my laptop.
Dex once wrote a nice guide:
http://www.dex-os.com/DexBasic/Lesson2.htm

I couldn't get it to work, though Crying or Very sad
Post 21 Sep 2013, 15:14
View user's profile Send private message Reply with quote
uart777



Joined: 17 Jan 2012
Posts: 369
uart777
Hi. I have not used that method of transferring the PI binary (KERNEL.IMG) through UART ports. Dex was talking about it in the RPI Bare Metal forum. Try asking there.

My RPI OS release includes 4 examples. Setup: Format SD:\ as FAT32. Copy any KERNEL.IMG along with files in \SD\ to SD:\ (BOOTCODE.BIN, CMDLINE.TXT, CONFIG.TXT and START.ELF).

QEMU is currently the best way that I know of to practice writing ARM code. For Windows Mobile (examples), you can use Microsoft Device Emulator V2/V3. Setup: File > Configure > Set "Shared Folder" as the one containing FASMARM and/or your examples. In the emulator, it will appear in Start > File Explorer > Storage Card.
Post 22 Sep 2013, 03:55
View user's profile Send private message Reply with quote
uart777



Joined: 17 Jan 2012
Posts: 369
uart777
Working on an ARM disassembler for X86. Convert to/from raw binary/FASMARM/GCC/Magic-Compiler (. r0=r1+(r2<<r3)). Preview of Settings dialog:


Description:
Filesize: 110.44 KB
Viewed: 2572 Time(s)

settings.jpg


Post 22 Sep 2013, 13:43
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
uart777 wrote:
doesn't know what the Hell he's talking about


About the FUCKING of course Smile
Post 22 Sep 2013, 18:29
View user's profile Send private message Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
uart777 wrote:
Working on an ARM disassembler for X86. Convert to/from raw binary/FASMARM/GCC/Magic-Compiler (. r0=r1+(r2<<r3)). Preview of Settings dialog:


Impressive as hell!

_________________
There's nothing special about it,
It's either there when you're born or not.
Post 23 Sep 2013, 18:41
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: behind the arc
Picnic
uart777 wrote:
Picnic: I think you've got what it takes Smile


That's very kind of you, i take this opportunity and reply accordingly.
I have created an uart777 folder to keep all your stuff. I'll say it again, you are very creative and uploding such advanced material so often, makes me wonder, do you... sleep? Smile
Post 30 Sep 2013, 12:23
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
Good news, I ordered a raspberry pi model B days ago from element14, their sales person called me today info me that I would get my pi tomorrow,

This laptop got no serial port or parallel, don't know yet how it would affect the experiences with raspberry pi,
Post 30 Sep 2013, 13:14
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
sleepsleep wrote:

This laptop got no serial port or parallel, don't know yet how it would affect the experiences with raspberry pi,


If your raspberry pi runs linux, you can connect it to your laptop directly using ethernet cable.
Make sure that avahi already configured and runs properly. And assuming you use Windows on your laptop, don't forget to install Bonjour.

Check this guide: http://elinux.org/RPi_Advanced_Setup
Starting from "1. Install avahi with the following commands on the Pi: "

Quite easy Smile

Now the difficult thing is if your pi doesn't have OS installed (bare metal programming). I still couldn't figure this out Confused
Post 30 Sep 2013, 14:48
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
I thought the pi chip is programmed to loads the OS from memory card?

Or you mean we could flash some sort of firmware OS into pi reserved memory area that available after off/on and no need memory card? Is that what you mean by bare metal?
Post 30 Sep 2013, 15:23
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
Oops sorry.
What I mean by "bare metal" is you don't have any OS installed on the memory card.

Very Happy
Post 01 Oct 2013, 07:21
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i just got my first raspberry pi model B,
kinda excited!

loading dexos, plan9, risc os, all those are great os!

i think dexos is kinda like bare metal os! and that is programming an operating system!!!
Post 01 Oct 2013, 14:40
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i think my arm operating system should be like this,

http://line-mode.cern.ch/www/hypertext/WWW/TheProject.html

line mode browser as main interface,
graphic file view, write support
usb read/write, wireless, ethernet,
high resolution, panel based, wm i3 got some nice concept there.
Post 02 Oct 2013, 10:49
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.