flat assembler
Message board for the users of flat assembler.

Index > Non-x86 architectures > FASMARM v1.43 - Cross assembler for ARM CPUs

Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 30, 31, 32  Next
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17671
Location: In your JS exploiting you and your system
revolution
setrodox wrote:
i have a problem with using fasm-arm on linux, the assembling worked without problems, but when using fasm-arm i get a "error: illegal instruction." for every instruction.
revolution wrote:
I just noticed that the latest "development" version of FASM 1.67 has broken with tradition and the previous "stable" version is no longer available for download, thus breaking the code in my attachment at post #1.
Yes, I wil fix this sometime in the next few days when I get a chance to look into the problem.
Post 27 Aug 2006, 01:05
View user's profile Send private message Visit poster's website Reply with quote
setrodox



Joined: 16 May 2005
Posts: 6
setrodox
Sorry, seems i haven't read the thread well.

Another question, are there any plans about thumb mode yet?
Post 28 Aug 2006, 13:31
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
try reading "readme.txt" in package
Post 28 Aug 2006, 13:34
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
setrodox



Joined: 16 May 2005
Posts: 6
setrodox
thanks, i did look in the readme before, and greped for thumb, forgot the case insensitivity flag though.
Post 28 Aug 2006, 14:06
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
read it entire at least once Wink
Post 28 Aug 2006, 14:42
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
setrodox



Joined: 16 May 2005
Posts: 6
setrodox
yes, i should.
though, the itching in the fingers when wanting to code some gba things was stronger this time Wink
Post 28 Aug 2006, 14:54
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Here is a simple GBA demo, code with fasmarm.
Code:
; GBA Header and test prog by Dex,Coded with FasmARM.; c:\fasmarm test.asm test.gbaformat binaryorg     0                       ; code starts at offset 0.use32                           ; use 32-bit code.    b    rom_startNintendoLogo:    db    0,0,0,0,0,0,0,0,0,0   ; Nintendo Logo space(156 bytes).    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0,0,0,0,0    db    0,0,0,0,0,0GameTitle:    db    "TEAM DEX4U  "        ; Game Title (12 bytes).GameCode:    db    "1234"                ; Game Code (4 bytes).MakerCode:    db    "_$"                  ; Maker Code (2 bytes).FixedValue:    db    0x96                  ; Fixed value (1 byte).MainUnit:    db    0                     ; Main unit code (1 byte).DeviceType:    db    0                     ; Device Type (1 byte).ReservedBytes:     db    0,0,0,0,0,0,0         ; Reserved (7 bytes)SoftwareVersion:      db    0                     ; Software version (1 byte).ComplementCheck:    db    0                     ; Complement check (1 byte).Reserved2:    db    0,0                   ; Reserved (2 bytes).align 4;********************************;; Rom start.                     ;;********************************;rom_start:          mov r0, 0x4000000        mov r1, 0x400        add r1, r1, 3        str r1, [r0]        mov r0, 0x6000000        mov r1, 0xff        mov r2, 0x9600loop1:        strh r1, [r0], 2        subs r2, r2, 1        bne loop1LetsLoop:        b LetsLooptimes 20000- ($-0)  db 0    

I am porting Dex4u OS, to ARM with fasmarm Wink.
http://www.dex4u.com/images/gbademo.jpg
Thanks "Tomasz Grysztar" and "revolution" for both your work.
Post 29 Aug 2006, 04:47
View user's profile Send private message Reply with quote
setrodox



Joined: 16 May 2005
Posts: 6
setrodox
that gba header won't work on a real gba, the logo needs to be the nintendo logo (it's kind of a checksum), and the checsum at the end shouldn't be 0 either. Wink
Post 29 Aug 2006, 08:45
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM
So THAT's why the nintendo logo is garbled when the cartridge is dusty Wink
Post 29 Aug 2006, 15:09
View user's profile Send private message Reply with quote
cloud



Joined: 29 Aug 2006
Posts: 2
cloud
I have tryed this on my real GBA and works fine, i have also seen the code in the screen shot and it uses the same header. They seem to be real GBA and nintendo DS device's to me
All the Flash rom cartridge's that i have heard of come with a some kind of menu which does the checksum! plus it would be border line ileagle to put a real rom logo and checksum ect....but as you can see from the above screenshot does not need it
Post 29 Aug 2006, 15:55
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Well i think you may of been reading the wrong tuts, as it works fine on my real GBA and DS Wink.
And its used in this demo:
http://www.dex4u.com/images/gbademo.jpg
Remember 99% of people that try it, will be using a flash cart that boots to a menu.
Post 29 Aug 2006, 20:10
View user's profile Send private message Reply with quote
setrodox



Joined: 16 May 2005
Posts: 6
setrodox
well, with a menu it works obviously, as the header of that launcher gets checked by the gba, the menu then just jumps into the code of the app/game, without the header. but there are still old cartridges around which don't have a launcher/menu. you disable those people to use dex4u Wink
Post 30 Aug 2006, 15:23
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Your right, But i have a multi-boot compliant header that is much bigger, and can be used for such a old cartrighes, but i tryed to keep it simple for a basic demo Wink.
Post 30 Aug 2006, 18:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17671
Location: In your JS exploiting you and your system
revolution
I have updated the attachment at post #1 in this thread.

Two changes:
1) Support for FASM 1.67.x, now you can compile the LINUX binary with v1.67.7
2) Added the accounting info such as SizeOFCode etc. as dicussed with vid a few days ago.



Dex4u wrote:
I am porting Dex4u OS, to ARM with fasmarm
Nice to see that.

setrodox wrote:
Another question, are there any plans about thumb mode yet?
FASMARM has supported THUMB mode from the very first version. Use either "CODE16" or "USE16" to switch to THUMB mode.
Post 30 Aug 2006, 23:56
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17671
Location: In your JS exploiting you and your system
revolution
FASMARM has it's own webpage http://arm.flatassembler.net

Tomasz Grysztar was kind enough to offer some web space so many thanks go to him for that.

In the interests of keeping this message board free from excess attachments I will remove the attachment at the head of this thread. So if you need to download FASMARM go to the url above.

The page is very basic and minimalistic, so don't expect too much. Just the essentials.

As usual, any problems or question etc. feel free to post them here.
Post 21 Sep 2006, 13:48
View user's profile Send private message Visit poster's website Reply with quote
HyperVista



Joined: 18 Apr 2005
Posts: 691
Location: Virginia, USA
HyperVista
Fantastic!!! Thank you very much revolution and Tomasz!!

[edit] deleted offensive language. sorry vid, got excited about fasmarm and lost control for a minute [/edit]


Last edited by HyperVista on 21 Sep 2006, 18:14; edited 1 time in total
Post 21 Sep 2006, 14:52
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
i miss nick of author there Wink
Post 21 Sep 2006, 15:39
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
WOW!
Post 21 Sep 2006, 18:08
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
dead_body



Joined: 21 Sep 2005
Posts: 187
Location: Ukraine,Kharkov
dead_body
can somebody, post here a link to arm emulators for windows?
Post 24 Sep 2006, 11:06
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you can find "Device Emulator" downloadable from Microsoft, but you will also need ActiveSync, you can download it too. or they are installed with Visual Studio 2005.
Post 24 Sep 2006, 16:01
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 30, 31, 32  Next

< 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 cannot attach files in this forum
You can download files in this forum


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

Website powered by rwasa.