Thanks boz, yes the name is a bit misleading as you found out your really coding in ASM, but i hide the assembly with fasm macros , you can add assembly anywhere you want in the code.boz wrote:Dex - Thanks for the work your doing on this.
The term DexBasic got me a bit worried at first as I'm a bit of a low-level microcontroller coder and havent done basic since the ZX81, but now I've seen its just a bunch of smart macros covering assembly language, the tutorials were magic (except tut2 where I didnt get any serial output - I may revisit it sometime) and Macro assembly seems ideal way to get me up to speed quickly while my ARM assembly skills improve !
My ultimate goal is a recreational project to convert an old Atari ST arcade game I wrote back in the 80's but never finished, this had a lot of machine code routines, around the sprite manipulation, and I still have a lot of the notes which I'm looking forward to starting in a few months, having it instant-on is a major criteria for going bare-metal as its going in an old style arcade box
Hopefully once I'm pointed in the right direction with the graphics controller I will give it a go. two things would be nice:
1. if anyone comes up with some nice graphics/sprite assembly routines in the mean time and they could make them available that would be great.
2. The Compile -> write to SD -> boot Pi cycle is a bit slow, I may play with it on the emulator see if it speeds it up
Keep up the good work.
As for the "graphics/sprite assembly routines" i know someone thats working on a bare metal GBA emulator for the PI in full assembly, that will have lot of fast optimized asm routines, i am sure there will be a demo out soon, as he is making great progress.
You can put sprites on the screen at any xy offset by using the DexBasic command:
As for tut 2 not working, can you give me more info, was you for example using windows and what usb to serial did you use.
I have not test it on windows, as i use linux.
And as Cycl0ne pointed out you could test dwelch loader, if it needs a set offset to load to let me know and i will mod a ver of DexBasic for you.
Good luck with your Atari ST arcade games, maybe you could go the emulator route.
And make a case like this for it http://www.skpang.co.uk/blog/archives/152
That would be