| Author |
| Thread |
 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10810
Location: Ray's Music Exchange
|
v1.25
Version 1.25 now available:
Quote: |
v1.25 2011-Oct-31
-
Fixed a bug with BKPT handling in IT blocks in ARM mode
|
|
|
31 Oct 2011, 12:47 |
|
forthok
Joined: 09 Nov 2011
Posts: 1
Location: Los Angeles, CA, USA
|
Linux ARM 'interpreter' and 'import'
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.)
|
09 Nov 2011, 02:28 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10810
Location: Ray's Music Exchange
|
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.
|
11 Nov 2011, 04:47 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10810
Location: Ray's Music Exchange
|
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: |
11540 Time(s) |
|
|
09 Dec 2011, 20:42 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10810
Location: Ray's Music Exchange
|
v1.26
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
|
|
|
24 Feb 2012, 07:55 |
|
|
|
Very Nice. Thank you for all the work you've put into this!
_________________ If it's got bits, I'll byte.
http://speedofdark.us
|
02 Jun 2012, 04:06 |
|
Vitor_boss
Joined: 04 Jun 2012
Posts: 3
Location: Brazil
|
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?
|
04 Jun 2012, 02:25 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10810
Location: Ray's Music Exchange
|
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.
|
04 Jun 2012, 02:38 |
|
krom
Joined: 05 Jun 2012
Posts: 8
|
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.
|
05 Jun 2012, 21:28 |
|
Dex4u
Joined: 08 Feb 2005
Posts: 1564
Location: web
|
@krom, Great site, i remember using your site when i was into GBA programing.
|
07 Jun 2012, 02:25 |
|
krom
Joined: 05 Jun 2012
Posts: 8
|
@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
|
08 Jun 2012, 13:33 |
|
Dex4u
Joined: 08 Feb 2005
Posts: 1564
Location: web
|
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.
|
08 Jun 2012, 14:54 |
|
krom
Joined: 05 Jun 2012
Posts: 8
|
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
|
08 Jun 2012, 16:14 |
|
Dex4u
Joined: 08 Feb 2005
Posts: 1564
Location: web
|
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!.
|
09 Jun 2012, 03:23 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10810
Location: Ray's Music Exchange
|
v1.27
Version 1.27 now available:
Quote: |
v1.27 2012-Jun-09
-
Updated for compatibility with fasm v1.70.02, 65-bit values
|
|
|
09 Jun 2012, 04:27 |
|
Dex4u
Joined: 08 Feb 2005
Posts: 1564
Location: web
|
@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.
|
10 Jun 2012, 14:32 |
|
Dex4u
Joined: 08 Feb 2005
Posts: 1564
Location: web
|
Thanks krom, thats just what i was looking for.
|
10 Jun 2012, 17:56 |
|
den_po
Joined: 17 Jul 2006
Posts: 18
Location: Russia, Cheboksary
|
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.
|
10 Jul 2012, 19:50 |
|
|
|
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
|
|
|
|
|
|
Powered by phpBB © 2001-2005 phpBB Group.
|