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 ... 30, 31, 32
Author
Thread Post new topic Reply to topic
igneele



Joined: 26 Dec 2015
Posts: 1
igneele
Hi, i have some strange in this code:
Code:
thumb

struc GPIO_RegMap
{
  .OTYPER dw ?
}

virtual at r1
  gpiob GPIO_RegMap
end virtual
ldr r0, [gpiob.CRL]
str r0, [gpiob.CRL]
    

If field CRL is missing in gpiob, compiler says "Error: (R15) not valid as second parameter" on str instruction, but if delete "thumb" - compiler says "Error: undefined symbol gpiob.CRL" on ldr instruction as it should... why str, r15, thumb?
Post 16 Mar 2020, 18:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17715
Location: In your JS exploiting you and your system
revolution
It's a bug. Thanks for reporting.

There are some other bugs and updates that fasmarm is due for. They ill be fixed soon hopefully.
Post 17 Mar 2020, 01:33
View user's profile Send private message Visit poster's website Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
Are there any instructions how to build FASMARM? I can tell how to combine FASMARM sources with FASM thanks to ProMiNick's fasmpack, however, what about the compatibility? Is v1.43 compatible with the latest FASM version? I read the ReadMe but didn't find this information.

EDIT: just found this post from 2017:
revolution wrote:
revolution wrote:
Note that this version assembles against fasm v1.73.01
I have update the download package with the bug fix from fasm v1.73.02
WHATSNEW.TXT wrote:
Fixed a bug in the storage of "virtual as" blocks.
It would be nice to see this info in ReadMe.
Post 13 May 2020, 07: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: 17715
Location: In your JS exploiting you and your system
revolution
Because of the way the patching works, you need the matching version of fasm.

The most recent build uses 1.72.02
https://board.flatassembler.net/topic.php?p=201689#201689

From there just copy the files from fasmarm into the same folders as fasm. All the files are separate so it doesn't overwrite any files. Then change into the fasmarm folder and use fasm to compile fasmarm/fasmwarm.
Post 13 May 2020, 07:34
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 30, 31, 32

< 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.