Go to advanced search

by DexOS
Tue May 22, 2012 8:17 pm
Forum: Other programming languages
Topic: Bare Metal Assembly
Replies: 30
Views: 17063

Re: Bare Metal Assembly

That info is not written by me, its just off the net, but I posted it has a example of what R-PI OS Dev teams need to do to get any clear info. This is from the build.sh cat first32k.bin kernel.img chars_pixels.bin > kernel.img.tmp mv kernel.img.tmp kernel.img Can you see what is put at the start of...
by DexOS
Tue May 22, 2012 6:46 pm
Forum: Other programming languages
Topic: Bare Metal Assembly
Replies: 30
Views: 17063

Re: Bare Metal Assembly

There not much info about the R-PI There is, in fact, a large amount of information about the Pi. More than enough to write your own OS or run applications "on the bare metal". Just because you haven't managed to find out how to do it doesn't mean that the information doesn't exist. jmp to 0x8000 i...
by DexOS
Tue May 22, 2012 1:12 pm
Forum: Other programming languages
Topic: Bare Metal Assembly
Replies: 30
Views: 17063

Re: Bare Metal Assembly

There not much info about the R-PI, but from the bit there is to boot a very basic OS. You need a org 0x0000000 and a jmp to your start code. That is it, remember it needs to be compiled as a flat binary (you will need to find out how to do that yourself, for your compiler) But that it. That will bo...
by DexOS
Tue May 22, 2012 12:24 pm
Forum: Automation, sensing and robotics
Topic: Bare Metal Robots
Replies: 33
Views: 7741

Re: Bare Metal Robots

The idea for FBasic was started by a coder called "rCX " for dos, then Dex (me) Stephen TonyMac Worked on a ver for DexOS (it a OS) most of the work for the dexos ver was done by Stephen, just for fun i knocked up a simple ver x86 32bit linux (less than half a hour). FBasic_L.inc ;==================...
by DexOS
Tue May 22, 2012 11:55 am
Forum: Other programming languages
Topic: Assembly Code
Replies: 60
Views: 18365

Re: Assembly Code

Assembly coders that program fully in ASM, are called "crazy" in the programming world. See more "crazy" people here: http://www.youtube.com/watch?v=jULUGHJCCj4 When i coded my OS for the x86, in 2002 and coded a games console type GUI in stead of the normal windows GUI, everyone said, thats not a r...
by DexOS
Mon May 21, 2012 9:40 pm
Forum: Other programming languages
Topic: Assembly Code
Replies: 60
Views: 18365

Re: Assembly Code

Theses no need to have a war over languages, but every compiler has a Assembler as its back end. Gcc uses gas Read this: http://en.wikibooks.org/wiki/GNU_C_Compiler_Internals/GNU_C_Compiler_Architecture See how they work, there can be no other languages without assemblers. Languages come and go, but...
by DexOS
Mon May 21, 2012 12:27 pm
Forum: Automation, sensing and robotics
Topic: Bare Metal Robots
Replies: 33
Views: 7741

Re: Bare Metal Robots

dexos: http://www.dex-os.com/ - likey looky I looked at assembly language when I had a bbc micro back in the day and got scared. Arm architecture seems to suggest an assembly language that is lower level than x86 (!) Are there modern macro-assemblers that resemble higher level languages that someon...
by DexOS
Mon May 21, 2012 12:07 pm
Forum: Other programming languages
Topic: Assembly Code
Replies: 60
Views: 18365

Re: Assembly Code

And yes you start them off with the basic like language and them start introducing them to asm code as they learn more. Wouldn't it be easier to teach them C with embedded assembler? static bool GetSema(int ms, long* pSema) { double StartTime = Time; WaitForSema: __asm push eax __asm push edi __asm...
by DexOS
Sun May 20, 2012 8:58 pm
Forum: Other programming languages
Topic: Assembly Code
Replies: 60
Views: 18365

Re: Assembly Code

I've been using "as" which is presumably an assembler? Yep, sure is. It's the GNU assembler. Comments on your code : - You don't need the % in front of the register names, and you can use C format (0xdeadc0de) for your hex numbers if you don't like using $. - You probably want a .code 32 at the sta...
by DexOS
Sun May 20, 2012 6:30 pm
Forum: Other programming languages
Topic: Assembly Code
Replies: 60
Views: 18365

Re: Assembly Code

My advice is if you want to code in asm, use a assembler, not a compiler ( yes gcc has got a assembler, as its back end). You need to keep it simple, make sure the tut your learning from is for the assembler your using. Best one i have found is Fasm, theres a ver to out put, for the ARM processor. C...
by DexOS
Sun May 20, 2012 2:38 pm
Forum: General programming discussion
Topic: Best first language choice
Replies: 140
Views: 31881

Re: Best first language choice

The Best first language depend on the person, it depends how you learn.
I have taught a number coders to program in assembly, has there first language.
So the language needs to suit the person, thats why its best to try many different languages, before sticking to one.
by DexOS
Sat May 19, 2012 8:23 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

I think it will be more a case of drawing the fonts pixel by pixel eg: letter A 00#00 0#0#0 ##### #000# 0 = do not draw pixel, just increase one pixel # = draw pixel ( text color) This is a basic example, we will write function and use fonts data of right size, at first the fonts will just be 0 & 1...
by DexOS
Sat May 19, 2012 8:07 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

I have found some info including "screen buff address" [....] 0xC000000 ? I wonder if for text it's similar to the old VGA layout, 2 bytes per character? One byte for the ascii code and the other for the attributes. I think it will be more a case of drawing the fonts pixel by pixel eg: letter A 00#...
by DexOS
Sat May 19, 2012 7:14 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

This is what the basic start code should be, from the little info available. format binary org 0x00000000 use32 ; ------------------------------------------------------- ; Vector table, only _RESET used for now ; others added after this confirmed ; to work. ; ----------------------------------------...
by DexOS
Sat May 19, 2012 5:15 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

That looks about right. I'm not sure why you're worried about this 20K thing, though. Some sort of tool failure? You will probably need to put the reset vector in its own named section, rather than leaving it in the .text section - that way you can ensure (via your linker script) that it's the very...
by DexOS
Sat May 19, 2012 5:00 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

Been doing some more reading and if the reset vector is at 0x0000000 then ignoring interrupts and stack etc for now, then won't simple code like this work as a starting point? Once this is working then support for INTS and Fast INTS, STACK etc can be added. format binary org 0x00000000 use32 ; ----...
by DexOS
Sat May 19, 2012 12:58 pm
Forum: Gaming
Topic: PC and Gaming Console Hybrid - solution with Operating System
Replies: 10
Views: 9511

Re: PC and Gaming Console Hybrid - solution with Operating S

My proposal is not to have a dedicated OS, that boots games off flashdrive like your 'DexOS', but rather to have it as part of each SDcard. DexOS is part of the SD or usb fob etc, It boots from the same SD card as the games are on. Its does not touch your main OS. Its only 64k in size, but it free ...
by DexOS
Fri May 18, 2012 5:44 pm
Forum: Gaming
Topic: PC and Gaming Console Hybrid - solution with Operating System
Replies: 10
Views: 9511

Re: PC and Gaming Console Hybrid - solution with Operating S

BTW - I have a look on the DexOS. It sounds good. When it fits 64kB, I can only imagine that on SD card is a game including the DexOS. So games could be shifted with small operating system. Free or closed? I'm not sure, but I can say every SD card where DexOS is can pay a tiny amount of its price t...
by DexOS
Fri May 18, 2012 1:30 pm
Forum: Gaming
Topic: PC and Gaming Console Hybrid - solution with Operating System
Replies: 10
Views: 9511

Re: PC and Gaming Console Hybrid - solution with Operating S

I spent 10 years making the same thing has you want from the R-PI. But guess what, nobody will use it :shock: I even used the worlds smalls PC (not much bigger than the R-PI ), cheap too = to £60 in USA, so its not price. But no users. See here: http://www.youtube.com/watch?v=mYJx2zZK7c8&feature=you...
by DexOS
Thu May 17, 2012 8:54 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

If it is 0x00000000 then its as simple case of adding the

Code: Select all

b labels 
Jumps labels
Then setting all, but reset, to just loop.
And putting the start of our code at 0x8000, i will look into it more tomorrow.
by DexOS
Thu May 17, 2012 2:31 pm
Forum: Staffroom, classroom and projects
Topic: Is "free" always a good thing?
Replies: 87
Views: 12234

Re: Is "free" always a good thing?

Gotta disagree there. Nothing really difficult in an OS - are you conflating complexity with quantity? An OS with all those stacks is a LOT of work, but none of it hugely difficult. If you want real complexity, try a video encoder (h264), or optimising compilers, or computer vision/AI. Well everyon...
by DexOS
Thu May 17, 2012 1:54 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

I'd just like to point out that the above won't work. a - You don't have a vector table, so nothing will happen when you try to load. Woops. b - 0xc0000000 is way, way above the ARM's physical memory map, which stops at 0x40000000 (0xc0008000 is the *virtual* memory address that the Linux kernel ge...
by DexOS
Thu May 17, 2012 12:29 pm
Forum: Other programming languages
Topic: Programming the ARM chip
Replies: 134
Views: 40926

Re: Programming the ARM chip

People some times make life harder for them selfs FasmArm is so easy, why make life hard. Lets make a quick raspberry pi OS with fasmArm (we can fill the blanks as we get more info) Here our basic code to print to the Uart ;--------------------------------------------------- ;Demo of using Uart func...
by DexOS
Thu May 17, 2012 11:35 am
Forum: Staffroom, classroom and projects
Topic: Is "free" always a good thing?
Replies: 87
Views: 12234

Re: Is "free" always a good thing?

As a hobby, i have coded software in ASM for other 10 years, i have come first in many ASM coding competitions and have coded the hardest thing in the world to coding. What is that? I would love to know what the hardest thing to coding is? The hardest think to code is a OS, not a simple embedded on...
by DexOS
Thu May 17, 2012 12:24 am
Forum: Staffroom, classroom and projects
Topic: Is "free" always a good thing?
Replies: 87
Views: 12234

Re: Is "free" always a good thing?

As a hobby, i have coded software in ASM for other 10 years, i have come first in many ASM coding competitions and have coded the hardest thing in the world to coding. But would not get a job in the UK ( not that i have tried ) because are being devalued by open source hippies. Just see in the abov...

Go to advanced search