r2fas 0.2.1

radare2 core plugin that loads FASM -s symbolic dumps for named labels, source lines, and comments

; fasm demonstration of assembling object files

; compile the program using commands like:
;   fasm msgdemo.asm msgdemo.o
;   fasm writemsg.asm writemsg.o
;   ld msgdemo.o writemsg.o -o msgdemo

format ELF

section '.text' executable

 public _start
 _start:

 extrn writemsg

	mov	esi,msg
	call	writemsg

	mov	eax,1
	xor	ebx,ebx
	int	0x80

section '.data' writeable

 msg db "Elves are coming!",0xA,0