Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3   Go Down

Author Topic: Where has the AMOS source gone?  (Read 20111 times)

0 Members and 1 Guest are viewing this topic.

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Where has the AMOS source gone?
« Reply #15 on: April 11, 2017, 10:12:41 AM »

Quote
Do you have access to a git client?
https://github.com/sba1/simplegit is an incomplete Git client for AmigaOS 4.  It requires sed and libGit2 so I don't know if it can be ported to OS 3.

https://github.com/vidarh/Git is an attempt at porting the original Git to the Amiga but it uses the Unix fork() function so it is hard to port.
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #16 on: April 21, 2017, 05:30:00 PM »

@Mia, I've been thinking a bit more about how this could be organized most efficiently for development, and I'm curious how you're going to do the full git history.

Your thoughts are appreciated... for the git history i'm litteraly going upload the original from clickteam and do all the changes again, and a commit for each step with a decent description.

the changes i made are purley about rebuilding 2.00 with minor tweaks, which I can't really call bug fixes.

@Bruce - have you got the code for GetChunk? lol - and I must congratulation on rebuilding that data, I didn't know you'd done those bits as well, that's really great, and you know I know how difficult/impossible that was!  8)
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #17 on: April 21, 2017, 05:35:50 PM »

Quote
Do you have access to a git client?
https://github.com/sba1/simplegit is an incomplete Git client for AmigaOS 4.  It requires sed and libGit2 so I don't know if it can be ported to OS 3.

https://github.com/vidarh/Git is an attempt at porting the original Git to the Amiga but it uses the Unix fork() function so it is hard to port.

Anyone ever tried this?

https://pypi.python.org/pypi/GitPython
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Where has the AMOS source gone?
« Reply #18 on: April 21, 2017, 05:41:44 PM »

It might work on a new version of Python.  I think we're on Python 2.3 for OS 3 though.
Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Where has the AMOS source gone?
« Reply #19 on: April 21, 2017, 06:12:58 PM »

Your thoughts are appreciated... for the git history i'm litteraly going upload the original from clickteam and do all the changes again, and a commit for each step with a decent description.

the changes i made are purley about rebuilding 2.00 with minor tweaks, which I can't really call bug fixes.

Excellent!  I eagerly await the results of your work on this!  Thank you for taking on this project.
Logged
- Sidewinder

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: Where has the AMOS source gone?
« Reply #20 on: April 22, 2017, 12:28:45 AM »

@Bruce - have you got the code for GetChunk? lol
I never bothered with GetChunk (it's compiled AMOS, so disassembly would be a nightmare!).  I use Resource's binary save function:

  • When Resource opens, select the load file from which you want to extract the binary.  If you're already in Resource, select 'P/Open load file' from the menu.
  • Set the data type as word (use <Left Amiga>+<W> - gets rid of the clutter).
  • You'll already be at the start of the file, so select 'SV/Partial save/Set start' from the menu.
  • Go to the end of the file (use <Alt>+<DownArrow>).  If it's a long file, Resource may whir away for a few seconds as it examines the rest of the file.
  • Check exactly where the end is.  This is necessary as load files are always multiples of 4 bytes long.  So there may be a few null bytes of padding at the end.  (That's the reason I usually assemble the load file with a longword defining the length at the start so's I can check what the exact length is supposed to be.  If you do that,  skip the four bytes at the start with <Shift>+<RightArrow) four times before setting the start as above.)
  • If there are padding bytes at the end, use 'SV/Partial save/Set End'.  This should be done at the byte following the end.  Bear in mind that most binary inclusions in AMOS need to be word aligned.  So you  might need a single pad byte to achieve that.  Some others (the Editor Config ones for example) ensure word alignments in the source where the 'incbin' directive occurs.
  • If you needed to set start and end to get rid of a length longword at the start, or pad bytes at the end, select 'SV/Save binary image/Partial' from the menu.  If the binary is an exact fit, you can ignore all the above and just use 'SV/Save binary image/All' instead.

Or you can knock up a quick AMOS Pro program to do the same thing:
  • Open the load file to get its length, then close it.
  • Reserve a bank of that length and use Bload to get the file into it.
  • Leek() the longword 28 bytes from the start of the bank.  This is the length of the binary in longwords.  So multiply it by 4 to get length in bytes.
  • Use Bsave to save the binary.  Starting address is the start of the bank + 32 bytes.  End address is that starting address plus the length you just worked out.
  • This method will include any pad byes at the end.  If you assemble the load file with a longword at the start to show exact length, Leek that value at position 32 and add four bytes to your start address for the Bsave.
@Bruce I must congratulation on rebuilding that data, I didn't know you'd done those bits as well, that's really great, and you know I know how difficult/impossible that was!  8)
That comes from having used Messysoft Access and VBA in many versions in my commercial career (+ Sybase, Oracle, etc.).  Plus my all-time favourite Messysoft Windows text editor - CodeWright - which to quote a project manager from way back 'Is as accommodating as an old tart.' (apologies to anyone offended.)  Plus my early hacking career on a forgotten machine called an Hitachi Peach with a Motorola 6809 cpu (everyone was into fruit back then) and of course an Amiga 2000 when it was released.

The original sources were parsed and stored in a database.  This enabled the 'tidied up' sources to be output (with one bug, I forgot the 'OPT' directive, so its parameter is output as an EOL comment - never bothered to fix it as it's an obvious error when it's assembled).  I also use Access (2010) for the Help Files rebuild.  But more content work on that is shelved for a while until I get the rest of V2.10 out.  It can output the files in the new format, but needs a lot more work on content.  Thank goodness for VB6's Treeview OCX to sort the menu hierarchies out.  At least I can see the Help Menus as intended rather than struggling with the flat view when the database was just supplying output for a manual.

And what on earth is a Git or a Github?   :o   I got dragged into a Wintel environment far too soon for my own good (it did earn the money though  ;) ).

Attached is something you guys might find useful for the Editor analysis.  It's a spreadsheet of the relationship between the Editor's jump table, the Editor's Config file Keys table, its Autoload table and the flags accompanying the Editor's jump table.  I included the comments from the sources as indicators as to what was intended.  If you pour over it in conjunction with +Edit.s, +Editor_Config.s and +Editor_Menus_Bin.s it shows how that lot work together.  Some of the source comments need tidying up a bit, but you should get an idea of how it all works together.  Essential if you're going to make any changes to menus or track down spare jump table entries to use.

NOTE - I've already grabbed slots 170 & 171 for scrolling the Editor using a Wheel Mouse, and slot 184 for the Syntax Highlighting menu item.  ::)
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #21 on: April 29, 2017, 12:07:53 PM »

cool,

I can integrate all that...


Or you can knock up a quick AMOS Pro program to do the same thing:

Thanks, I will try this as it'll be good to have a fully automated build process.

And what on earth is a Git or a Github?   :o   I got dragged into a Wintel environment far too soon for my own good (it did earn the money though  ;) ).

Git is like Svn but better - and is actually a linux thing - written by Linus Torvalds to manage the kernel no less...

been using git for continuous integration for about a year - used svn for 5 years before that and I appreciate the improvements... I have to do some complex merge/rebase/fast-forward stuff in work, so i'm used to the processes now - it's pretty easy once you know the lingo and follow a good pattern, and GitHub is just a hosting site for it where you can get a free account - it's got  a community, but unless you are super awesome ninja you won't get that many downloads as it's user base is developers, or is it just my stuff ;-) you can fork branches of other peoples work directly in there, and track issues, add a wiki etc...

« Last Edit: April 30, 2017, 01:20:07 AM by Mia »
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #22 on: April 29, 2017, 02:36:59 PM »

hoorah ;D didn't take long, the new GetChunk works perfectly - to show it off I've attached what I put together, credits are in the source and it will get added to the main repo ::)
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #23 on: May 02, 2017, 01:53:05 PM »

The github page is up and I've got quite far, but hit a build snag with the new editor menu and dialog funcs files - details on https://github.com/AmosFactory/AmosProfessional/issues/6

Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Where has the AMOS source gone?
« Reply #24 on: May 08, 2017, 04:37:23 PM »

How did I NOT see this already!  Great work Mia!

One further question, how shall we proceed with development on the official AMOS codebase?  Do you want to invite other developers here to join the project on GitHub, or shall we each fork the repository and submit pull requests as necessary?

I personally vote for the former setup.  Invite the active coders from here (BrudeUncle, Horace, SamuraiCrow, Lonewolf, Me, etc.) to form a core development team with push access to the repository.  Hopefully in this way the repository won't likely be abandoned and there won't be a confusing array of forks for users to navigate.
« Last Edit: May 08, 2017, 04:52:11 PM by Sidewinder »
Logged
- Sidewinder

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Where has the AMOS source gone?
« Reply #25 on: May 08, 2017, 05:00:56 PM »

@Sidewinder

I've accepted my invitation but it appears only Mia can send additional invitations.

@thread

Does BruceUncle have a GitHub account at all?
Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Where has the AMOS source gone?
« Reply #26 on: May 08, 2017, 05:26:51 PM »

I've accepted my invitation but it appears only Mia can send additional invitations.

I guess that makes sense.  @Mia, I'm known as mness1978 on GitHub.

Is there any way to add another admin to the AmosFactory GitHub account?



Does BruceUncle have a GitHub account at all?

I doubt he has one currently.  But it sounds like he uses a Windows box for some things so there is hope he will join us.  Otherwise we'll have to figure out some other way to merge his changes.
Logged
- Sidewinder

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #27 on: May 08, 2017, 05:45:28 PM »

Great work Mia!

thanks dude, very much appreciated.

all are invited :-)

I think for sake of transparency we should all have push access, but work on branches and do pull reqeusts - i did want to do pull reqeusts from the beginning, but had to puhs to master directly (not advised to move on) - i'm used to makeing a branch for each change...

ok, so here we are -  i really don't want to be the master of the re-development, but I really do want it to progress properly so have done the work needed for the base - it's ready to go with the updates and then do the installer... I took a week off work to do this, thats why it happened so quick - won't be so quick for a while as I've got lots of other things to keep me busy... I've documented every step that it took to get up to 2.00 and when we deploy Bruces work on the Menu.Bin we will have a 100% complete build, all the other bits are done...

for the 1.3 version I did a "Remix" - havn't done this to 2.00 yet out of respect for all those who have worked towards this - It was alot of work and took about year, and I did the re-build maybe 5 times on each project, thats why it looks so clean and simple...

i'll do all the invites asap, I also want to share the AmosFactory account login, hope fully when Bruce takes a look at this he can pull it together with his work..

there is an Issues section, I think anyone can post issues, so if you have any requests or anything then get it on there and it will get dealt with...

cool
Logged

Mia

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 101
  • Generic Amiga User
Re: Where has the AMOS source gone?
« Reply #28 on: May 08, 2017, 06:03:01 PM »


Is there any way to add another admin to the AmosFactory GitHub account?


I just checked and no you can't - but you I can turn the AmosFactory account into an organization - that's what we need, didn't do it straight away as I saw something scary - "Billing email, receipts will be sent here" lol - i'll check first, if doesn't cost too much I don't mind...
Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Where has the AMOS source gone?
« Reply #29 on: May 08, 2017, 06:06:12 PM »

Mia, I absolutely agree with you about working on branches for all future work and using pull requests to merge to master.  We should probably have a doc explaining how this is done for those who aren't familiar with git.  A cheat sheet if-you-will.  I will get to work on that as soon as I am able.

What exactly do you mean by "remix" for AMOS The Creator?

This is an amazing amount of work and well executed.  Your time and effort are greatly appreciated!
Logged
- Sidewinder
Pages: 1 [2] 3   Go Up
 

TinyPortal 2.2.2 © 2005-2022