flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > Are you making something with fasmg?

Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6509
Location: Kraków, Poland
Are you making something with fasmg?
Once in a while it surprises me to get to know that someone created something interesting with fasmg, like it was in the case of ez80 includes. But generally speaking, I know very little about any people that actually use fasmg for anything, or even simply play with it. If you are one of them and reading this, I would be happy to know about it. Or perhaps we need a better dedicated place for fasmg-specific topics?
Post 13 Jul 2016, 17:25
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1571
Location: Ukraine
I plan to finish the porting of my 8080 package from fasm 1 to fasmg soon. I wish to combine it with 8048, 8051 and ez80 includes to get more general solid 8-bit package (not absolutely universal though Rolling Eyes )
Post 14 Jul 2016, 09:31
View user's profile Send private message Visit poster's website Reply with quote
Akeo



Joined: 19 Aug 2016
Posts: 8
Location: Ireland
I'm going to mention that, with some invaluable help of Tomasz, I have successfully used fasmg to create an EBC (EFI Byte Code) assembler.

For those who don't know, EBC is the instruction set UEFI applications and drivers can use to produce a single binary executable that can run across different architectures (x86_32, x86_64, Arm64 and we're working on adding Arm32). It can be considered as a kind of "Java for UEFI" if you will.

To know more about EBC, please have a look at chapter 21 of the UEFI 2.6 specs.

The project is called fasmg-ebc, and hosted on github.
Post 27 Sep 2016, 11:08
View user's profile Send private message Visit poster's website Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 473
Location: Belarus
I tried fasm g a litle bit and I liked it, but I'm too afraid to move to it. Although it has so many cool features that fasm 1 is missing, and I'm always like "fasm g is cool, I should go master it and use it and move my project source to it" but then I like "it's pretty slow. and it's still new. and Tomasz said it's a sorta example engine. what if it becomes abandoned and not maintained at some point, maybe to the favor of fasm2 or something?" and some months have passed already and I still want to switch and still can't decide
Post 27 Sep 2016, 12:16
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6509
Location: Kraków, Poland

zhak wrote:
"it's pretty slow. and it's still new. and Tomasz said it's a sorta example engine. what if it becomes abandoned and not maintained at some point, maybe to the favor of fasm2 or something?"

fasmg is the engine that was to become the base of fasm 2, so if fasm 2 was ever actually created, it would be mostly compatible with fasmg. However, as vid had once reasonably commented, it is not so certain that fasm 2 is actually needed and wanted, so you should not count on it ever becoming real. Currently I treat fasmg as a supplementary product, it does not seek to completely replace fasm 1 like fasm 2 would (but even fasm 2 might not be successful at this), however it gives us new interesting options. And when you want to implement an instruction set from scratch, fasmg is a much better choice than fasm 1.
Post 27 Sep 2016, 13:50
View user's profile Send private message Visit poster's website Reply with quote
uor99



Joined: 04 Dec 2014
Posts: 41
I am trying to use fasmg for 51/avr/8086/arm32/win32.However,it seems that arm32 cannot be compiled in fasmg yet.
Post 05 Nov 2016, 10:31
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6509
Location: Kraków, Poland
That's what this thread is about - if someone is working on any new macros, for example ones for an ARM32 architecture, I'd recommend letting others know, so anyone interested would be able to find it and maybe even give some feedback.

There is also another thread where I collect links to known projects / macro packages.
Post 05 Nov 2016, 14:54
View user's profile Send private message Visit poster's website Reply with quote
halak



Joined: 29 Jan 2017
Posts: 1
Location: Turka, Lviv, Ukraine

Code:
; FASMG
;
; INTEL MCS-8 (I8008) 1972 MNEMONICS ASSEMBLER
;
; 2017-08-12
;
; VITALIS BASILEUS CHALAK
; DNISTRYK-DUBOVYJ, TUKRA, LVIV, UKRAINE

STRUC   ?       A
        .:      A
END     STRUC

MACRO   ORG?    A*
        RB      A-$
END     MACRO

IRP     <A,B>,  HLT,000,INB,010,INC,020,IND,030,INE,040,INH,050,INL,060,\
                        DCB,011,DCC,021,DCD,031,DCE,041,DCH,051,DCL,061,\
                RLC,002,RRC,012,RAL,022,RAR,032,\
                RFC,003,RFZ,013,RFS,023,RFP,033,RTC,043,RTZ,053,RTS,063,RTP,073,\
                RET,007,\
                ADA,200,ACA,210,SUA,220,SBA,230,NDA,240,XRA,250,ORA,260,CPA,270,\
                ADB,201,ACB,211,SUB,221,SBB,231,NDB,241,XRB,251,ORB,261,CPB,271,\
                ADC,202,ACC,212,SUC,222,SBC,232,NDC,242,XRC,252,ORC,262,CPC,272,\
                ADD,203,ACD,213,SUD,223,SBD,233,NDD,243,XRD,253,ORD,263,CPD,273,\
                ADE,204,ACE,214,SUE,224,SBE,234,NDE,244,XRE,254,ORE,264,CPE,274,\
                ADH,205,ACH,215,SUH,225,SBH,235,NDH,245,XRH,255,ORH,265,CPH,275,\
                ADL,206,ACL,216,SUL,226,SBL,236,NDL,246,XRL,256,ORL,266,CPL,276,\
                ADM,207,ACM,217,SUM,227,SBM,237,NDM,247,XRM,257,ORM,267,CPM,277,\
                NOP,300,LBA,310,LCA,320,LDA,330,LEA,340,LHA,350,LLA,360,LMA,370,\
                LAB,301,LBB,311,LCB,321,LDB,331,LEB,341,LHB,351,LLB,361,LMB,371,\
                LAC,302,LBC,312,LCC,322,LDC,332,LEC,342,LHC,352,LLC,362,LMC,372,\
                LAD,303,LBD,313,LCD,323,LDD,333,LED,343,LHD,353,LLD,363,LMD,373,\
                LAE,304,LBE,314,LCE,324,LDE,334,LEE,344,LHE,354,LLE,364,LME,374,\
                LAH,305,LBH,315,LCH,325,LDH,335,LEH,345,LHH,355,LLH,365,LMH,375,\
                LAL,306,LBL,316,LCL,326,LDL,336,LEL,346,LHL,356,LLL,366,LML,376,\
                LAM,307,LBM,317,LCM,327,LDM,337,LEM,347,LHM,357,LLM,367
        MACRO   A?
                DB      B#O
        END     MACRO
END     IRP

IRP     <A,B>,  ADI,004,ACI,014,SUI,024,SBI,034,NDI,044,XRI,054,ORI,064,CPI,074,\
                LAI,006,LBI,016,LCI,026,LDI,036,LEI,046,LHI,056,LLI,066,LMI,076
        MACRO   A?      C*
                IF      C<-128|255<C
                        ERR     'OUT OF [-128;255]'
                END     IF
                DB      B#O,C
        END     MACRO
END     IRP

MACRO   RST?    A*
        IF      A<0|7<A
                ERR     'OUT OF [0;7]'
        END     IF
        DB      005O+8*A
END     MACRO

IRP     <A,B>,  JFC,100,JFZ,110,JFS,120,JFP,130,JTC,140,JTZ,150,JTS,160,JTP,170,\
                CFC,102,CFZ,112,CFS,122,CFP,132,CTC,142,CTZ,152,CTS,162,CTP,172,\
                JMP,104,\
                CAL,106
        MACRO   A?      C*
                IF      C<0|16383<C
                        ERR     'OUT OF [0;16383]'
                END     IF
                DB      B#O
                DW      C
        END     MACRO
END     IRP

MACRO   INP?    A*
        IF      A<0|7<A
                ERR     'OUT OF [0;7]'
        END     IF
        DB      101O+2*A
END     MACRO

MACRO   OUT?    A*
        IF      A<8|31<A
                ERR     'OUT OF [8;31]'
        END     IF
        DB      101O+2*A
END     MACRO



Last edited by halak on 12 Aug 2017, 04:17; edited 2 times in total
Post 25 Mar 2017, 02:32
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6509
Location: Kraków, Poland
halak: thank you, I'm adding a link to this post to the other thread.
Post 26 Mar 2017, 14:09
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:  


< 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.