flat assembler
Message board for the users of flat assembler.

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

Goto page Previous  1, 2, 3 ... 21, 22, 23 ... 31, 32, 33  Next
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 19869
Location: In your JS exploiting you and your system
revolution 31 Oct 2011, 12:47
Version 1.25 now available:
Quote:
v1.25 2011-Oct-31
  • Fixed a bug with BKPT handling in IT blocks in ARM mode
Post 31 Oct 2011, 12:47
View user's profile Send private message Visit poster's website Reply with quote
forthok



Joined: 09 Nov 2011
Posts: 1
Location: Los Angeles, CA, USA
forthok 09 Nov 2011, 02:28
In fasm/examples/elfexe/dynamic there are files like elf.inc and import32.inc, which are very helpful in importing functions from dynamic libraries in an i386 Linux system.

I would like to do the same thing for ARM Linux, but see no equivalents for these files or the macros they contain. Just copying them over looks like it won't work because of the differences between i386 and ELF dynamic imports.

Suggestions on how to do this? (I'm not an ELF expert and I don't to be.)
Post 09 Nov 2011, 02:28
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: 19869
Location: In your JS exploiting you and your system
revolution 11 Nov 2011, 04:47
revolution wrote:
Alphonso wrote:
What's happening with W8 and ARM?
I wonder if it will include a translation layer to run x86 programs? I'm guessing that keeping compatibility with the bajillion existing x86 applications will be quite an important criterion?
Well it seems not. If you want to run applications on an ARM based Windows8 system them they have to be ported.

http://betanews.com/2011/09/19/will-windows-8-have-an-arm-app-gap/
http://www.theregister.co.uk/2011/09/15/sinofsky_windows8_arm_support_x86_apps/

Which is all well and good if your favourite app is still supported by the developer, but for all those older "legacy" apps you'll be out of luck.

My guess is that someone will write a decent emulator/VM and allow x86 app to run on ARM systems. But it would be slow (of course) and perhaps not fully accurate in its emulation.

So for assembly programmers like ourselves we will need to maintain two source files, one for x86 and one for ARM. I've already been doing this for the last six years and it not as big of a hassle as it might first appear to be.
Post 11 Nov 2011, 04:47
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: 19869
Location: In your JS exploiting you and your system
revolution 09 Dec 2011, 20:42
Some more information about the upcoming 64-bit ISA:

https://silver.arm.com/download/download.tm?pv=1199137

I've also attached it here.


Description: ARMv8 Instruction Set Overview
Download
Filename: ARMv8_ISA_Overview_PRD03-GENC-010197-15-0.pdf
Filesize: 455.08 KB
Downloaded: 37398 Time(s)

Post 09 Dec 2011, 20:42
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: 19869
Location: In your JS exploiting you and your system
revolution 24 Feb 2012, 07:55
Version 1.26 now available:
Quote:
v1.26 2012-Feb-24
  • Added support for ARM/THUMB mode v7VE instructions
  • Added support for ARM/THUMB mode VFPv4 instructions
  • Added support for ARM/THUMB mode SIMDv2 instructions
  • Added alternate two operand forms for absolute difference
  • Removed alternate two operand forms for multiply-accumulate
Post 24 Feb 2012, 07:55
View user's profile Send private message Visit poster's website Reply with quote
Tonymac32



Joined: 30 Nov 2009
Posts: 13
Tonymac32 02 Jun 2012, 04:06
Very Nice. Thank you for all the work you've put into this!

_________________
If it's got bits, I'll byte.

http://speedofdark.us
Post 02 Jun 2012, 04:06
View user's profile Send private message Reply with quote
Vitor_boss



Joined: 04 Jun 2012
Posts: 3
Location: Brazil
Vitor_boss 04 Jun 2012, 02:25
First of all thank you for the great work.

I'm using this version as DLL compiler, recently the FASM have updated to 1.70.02 and when I've tried to compile I got a error at line 322 of file 'armv7.inc'.

Previous versions of compiler don't give that error.
Could you help me?
Post 04 Jun 2012, 02:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 19869
Location: In your JS exploiting you and your system
revolution 04 Jun 2012, 02:38
I've got a new version already made for the v1.70 line. Assuming no big problems with testing then I will upload it in a few days.

For the meantime you will have to use the older fasm version. There really isn't that much of a change. Only the 64-bit arithmetic differences.
Post 04 Jun 2012, 02:38
View user's profile Send private message Visit poster's website Reply with quote
krom



Joined: 05 Jun 2012
Posts: 13
krom 05 Jun 2012, 21:28
Thanks so much revolution for all of this, I have updated my homebrew website gbadev's front page, as this is the best ARM assembler, and a great tool for coding the gba =D

I have a rather large gba project, converting a famous p.c game to the gba...
This project is very video & picture intensive, and I have had to code all my own picture/video compression/decompression to be able to fit all the data into the maximum rom cart space (32Mb).

I hit a bug in my fav ARM assembler, so I went hunting for a new one, and yours was the best one I could find...
Not only did your assembler fix the bug, compiling my game code correctly, but it also made my video decompression code perform at least 2% faster! Thanks so much, you are ace =D

I am also getting a Raspberry Pi really soon, I will keep you updated with what I do on that using your amazing assembler.
Post 05 Jun 2012, 21:28
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 07 Jun 2012, 02:25
@krom, Great site, i remember using your site when i was into GBA programing.
Post 07 Jun 2012, 02:25
View user's profile Send private message Reply with quote
krom



Joined: 05 Jun 2012
Posts: 13
krom 08 Jun 2012, 13:33
@Dex4u Cheers for the great comment. I looked up your DexOS work... very interesting stuff. I have always wanted to code a bare metal OS myself, especially for an ARM based device =D
Post 08 Jun 2012, 13:33
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 08 Jun 2012, 14:54
With your Arm GBA asm knowledge, you will find it very much like programming on the gba, as gba is as good as bare metal programming.
Are thinking about the possibility of a gba bare metal emulator on the Arm, as i think it would not be too hard.
Post 08 Jun 2012, 14:54
View user's profile Send private message Reply with quote
krom



Joined: 05 Jun 2012
Posts: 13
krom 08 Jun 2012, 16:14
Yep it should not be too hard, I am helping byuu implement gba emulation into the bsnes emulator at the mo =D
I would love todo a high level gba emu, translating all the gfx io calls to opengles etc, and using the main cpu to step thru the code...
I just have to wait for my Raspberry Pi, to see how far I can get using the gpu in ARM assembly...
Also I will have to code my own usb interface if I want to use a joystick!

*EDIT

Just saw your efforts on the Raspberry Pi thread, great work =D
Post 08 Jun 2012, 16:14
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 09 Jun 2012, 03:23
krom wrote:
Yep it should not be too hard, I am helping byuu implement gba emulation into the bsnes emulator at the mo =D
I would love todo a high level gba emu, translating all the gfx io calls to opengles etc, and using the main cpu to step thru the code...
I just have to wait for my Raspberry Pi, to see how far I can get using the gpu in ARM assembly...
Also I will have to code my own usb interface if I want to use a joystick!

*EDIT

Just saw your efforts on the Raspberry Pi thread, great work =D

Thanks, i am work on interfacing one of those cheap bluetooth serial module (from ebay) to the R-PI for keyboard, could just as well be use with a bluetooth joystick!.
Post 09 Jun 2012, 03:23
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 19869
Location: In your JS exploiting you and your system
revolution 09 Jun 2012, 04:27
Version 1.27 now available:
Quote:
v1.27 2012-Jun-09
  • Updated for compatibility with fasm v1.70.02, 65-bit values
Post 09 Jun 2012, 04:27
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: 19869
Location: In your JS exploiting you and your system
revolution 09 Jun 2012, 04:40
This site might be useful to those of you that are still not sure what ARM is or how it works:

http://www.davespace.co.uk/arm/introduction-to-arm/index.html
Post 09 Jun 2012, 04:40
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 10 Jun 2012, 14:32
@krom, or any one else that may have a answer, do you know of any jpeg decode code written in asm arm, that i can port to my ARM projects ?.
I am sure there was some for GBA.
Post 10 Jun 2012, 14:32
View user's profile Send private message Reply with quote
krom



Joined: 05 Jun 2012
Posts: 13
krom 10 Jun 2012, 17:42
@Dex4u I remember asm arm jpeg decoding in the GBA GfxLib v1.0318 by Jeff Frohwein http://www.devrs.com/gba/asmcode.php, there was a port to FASMARM by ghoshi here: http://board.flatassembler.net/topic.php?t=11721
Check out the subs\jpeg5.asm file inside fasmarm_gba_gfxlib.tar.gz
I hope this helps =D
Post 10 Jun 2012, 17:42
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 10 Jun 2012, 17:56
krom wrote:
@Dex4u I remember asm arm jpeg decoding in the GBA GfxLib v1.0318 by Jeff Frohwein http://www.devrs.com/gba/asmcode.php, there was a port to FASMARM by ghoshi here: http://board.flatassembler.net/topic.php?t=11721
Check out the subs\jpeg5.asm file inside fasmarm_gba_gfxlib.tar.gz
I hope this helps =D

Thanks krom, thats just what i was looking for.
Post 10 Jun 2012, 17:56
View user's profile Send private message Reply with quote
den_po



Joined: 17 Jul 2006
Posts: 23
Location: Russia, Cheboksary
den_po 10 Jul 2012, 19:50
Code:
format ELF dwarf executable

code16

;error
section 'test' executable readable writeable at 0x14B1172C align 1

;no error
;section 'test' executable readable writeable at 0x1000 align 1

ldr r3, [labelname]
bx  r3
;align 4
labelname dw 1
    


flat assembler for ARM version 1.70.02 (1306211 kilobytes memory)
b.asm [12]:
ldr r3, [labelname]
error: value out of range.
Post 10 Jul 2012, 19:50
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 21, 22, 23 ... 31, 32, 33  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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.